How to unbrick Your phone, decrypt it, and flash everything right way - Lenovo P2 Guides, News, & Discussion

Okay, if Your device is bricked, decryption failed or 'Force Close' pops-up every second, You are in right place.
Because I'm not active here, just add those underlined words to bit(dot)ly/
1. Resources:
Rescue Package:
P2RescueXDA
OpenGapps:
GappsXDA
Magisk:
MagskXDA
ADB and Fastboot:
ADB_Fastboot_XDA
ABD and Fastboot Drivers:
MinimalADBXDA
Before You try to unbrick - install ADB + Fastboot Package and Minimal Drivers
2. Unbrick and install Stock Firmware
Go to Bootloader:
if You have TWRP use [Power] + [Vol-] + [Vol+] (Recovery) > Advanced > Terminal > 'reboot bootloader'
Plug Phone to PC and open CMD or PowerShell
run 'flashall - twrp.bat' and wait few minutes
Your device is now unbricked
3. If You've tried to fix something on Your own or want to do Super-Clean Flash
USB Debugging is need! If not activated, do it now!
In CMD/PowerShell type 'adb reboot bootloader'
type 'fastboot oem unlock'
I know, You for sure have already done this, but trust me and do it again
now type 'fastboot flash recovery [recovery.img]' and 'fastboot boot [recovery.img]' where [recovery.img] is path to Your recovery file
Your phone should automatically reboot to recovery.
check 'never show this message again' box and swipe right
[!!!] You are going to reboot to recovery a lot, don't ask - just do it!
after swiping right go to [Reboot] > [Recovery]
[Wipe] > [Factory Reset]
[Wipe] > [Advanced Wipe] > select [Data] > change Filesystem > F2FS
[Reboot] > [Recovery]
[Wipe] > [Advanced Wipe] > select [Data] > change Filesystem > EXT4
[Reboot] > [Recovery]
[Wipe] > [Format Data] > type 'yes' and press Enter on Phone keyboard
[Reboot] > [Recovery]
[Wipe] > [Advanced Wipe] > select [Data] > change Filesystem > EXT4
[Reboot] > [Recovery]
press 3 lines (bottom right, on nav bar)
check if there's no errors (red lines)
[Wipe] > [Advanced Wipe] > select [System] > Wipe (swipe right)
[Reboot] > [Recovery]
4. How to flash everything
Method 1: Using TWRP Install
Method 2: Using ADB Sideload (faster, because You don't copy zips to SD)
To use sideload, in TWRP press [Advanced] > [Sideload] and swipe right
First install ROM.zip and GAPPS.zip
After that, REBOOT to system and set everything up (google account, fingerprint, blah blah blah)
Go back to TWRP
NOW flash Magisk and other stuff such as custom boot animations and other flashable zip's
Happy modding, wiping and flashing, friends

my phone is stuck on lenovo logo...not getting into recovery mode...i tried P2RescueXDA but after successful completion it again get stuck on lenovo logo screen...not able to go to recovery...its just booting into bootloader...m helpless please suggest some solution...i also tried flashing stock by fastboot method by flashing system chunk 0-12 boot.img recovery.img & userdta.img still facing same issue....please help

bhupeshbb said:
my phone is stuck on lenovo logo...not getting into recovery mode...i tried P2RescueXDA but after successful completion it again get stuck on lenovo logo screen...not able to go to recovery...its just booting into bootloader...m helpless please suggest some solution...i also tried flashing stock by fastboot method by flashing system chunk 0-12 boot.img recovery.img & userdta.img still facing same issue....please help
Click to expand...
Click to collapse
Try 'fastboot oem unlock' in bootloader mode (forced wipe). If not working, try using first method and leaving phone in this loop for an hour - maybe it need time

JurijTMC said:
Try 'fastboot oem unlock' in bootloader mode (forced wipe). If not working, try using first method and leaving phone in this loop for an hour - maybe it need time
Click to expand...
Click to collapse
so i will give fastboot oem unlock command and then method 1 right ? or i should do method 1 and then give command fastboot oem unlock ?

while flashing i am getting an error 'partition table doesn't exist'

bhupeshbb said:
while flashing i am getting an error 'partition table doesn't exist'
Click to expand...
Click to collapse
hi have you found the solution yet? i also have face same issue

fingerprint option is missing in security menu and fingerprint gestures stopped working. Any solution ?
How to check whether its fingerprint sensor hardware issue?

Related

Cubot King Kong custom ROM or Android go?

Hi everyone,
First post here. I purchased a Cubot Kingkong. I liked the toughness and the price. Has Android Nougat, 2gb of Ram, 16gb ROM, MT 6580 quad core processor.
What I don't like is that it's slow, in my opinion. I tried to find a custom ROM, but couldn't find one.
Do you a custom ROM that can work? Thought about Android go, but it would need to be updated to Oreo first.
Thanks for your help.
Slow? I have this phone and I find it very reasonably snappy for its specs. The MT6580 is a 2016 entry-level processor. Not any great performer and no firmware will do miracles.
Besides, its Nougat Android is 100% bloat-free (a good surprise I must say). And the 2 Gb of RAM are enough to run it correctly. Don't think Android One would make much of a change here.
Your expectations might be too high for a sub-100€ phone.
does anyone have a scatter file or custom recovery for this phone? how did you root?
CUBOT KING KONG B-1 (X511) Android 7.0 quick TWRP + rooting guide
WARNING: You do a factory reset! all data lost! unlocking - warranty lost!
edit: With locked bootloader, you can not flash from fastboot. BUT - Yippee! - SP Flash Tool is able to flash twrp.img for encrypted device with locked bootloader (and FRP / OEM lock!) without data loss. TWRP is then able to decrypt data with default_password. Before you unlock bootloader, flash TWRP, Back up your /data from TWRP and manually copy Internal Storage (/data/media/0) via USB-MTP (not included in TWRP Backup). Backup is not described in this Tutorial, but feel free to ask
- first you need adb and fastboot, in Windows represented as adb.exe and fastboot.exe which run in command line terminal (cmd.exe) - (for adb and fastboot Windows XP click here)
- install MediaTek MT65xx USB VCOM Preloader USB Drivers for Windows
- this phone is locked. to unlock the bootloader, enable usb-debugging:
Settings -> About Phone -> tap Build number seven (7) times
Settings -> Developer options -> OEM unlocking -> Turn on
Settings -> Developer options -> USB debugging -> Ok
WARNING: You do a factory reset! all data lost!
- connect the phone to pc and type in command console:
- confirm with Yes (Volume UP)
Code:
adb reboot bootloader
fastboot oem unlock
Phone is now in Orange State - warranty lost!
(if you wanna get rid of the waiting time flash the 'Orange State disabler' see below)
- reboot the phone:
Code:
fastboot reboot
i have created a scatter file using this very cool program WwR MTK v2.30 from Ilya Aleksandrovich
then i have ported this TWRP v3.2.2-0 from S. M. Nahid Emon Generic TWRP v3.3.1-0 from Samad Segmane meanwhile
- on Phone, download SR3-SuperSU-v2.79-SR3-20170114223742.zip flashable zip
- on PC, download the scatter file and the twrp-3-3-1-0-recovery from this thread
flash recovery with MediaTek SP Flash Tool
- in SP Flash Tool, go to Download and select the following files:
Download-Agent: MTK_AllInOne_DA.bin
Scatter-loading File: MT6580_cubot_king_kong_7081c_scatter.txt
Flash Mode: Download Only
- uncheck all checkboxes
- double click on recovery.img and select twrp.img
- press Download
- type in command console:
Code:
adb reboot bootloader
(flashing starts as soon as phone is connected in download mode)
- after successfully flashing, press and hold Volume UP, disconnect the phone, connect again, wait until you see the Orange State message appears, then release the Volume UP Button
- you can start TWRP each time from command console:
Code:
adb reboot recovery
edit: Fixed! unfortunately, when flashed and booted from recovery, touch screen is not working unless someone will fix the kernel (Patryk did with IDA Pro but this tutorial drives me crazy) - at moment you can only boot as boot.img
- boot into TWRP recovery from fastboot without flashing recovery (working touch screen)
Code:
adb reboot bootloader
fastboot boot "C:\Download\twrp.img"
<-- see here
- from TWRP you can now install SuperSU.zip flashable zip
- if you want install Busybox binary, download Busybox-1.29.0-YDS-UNIVERSAL.zip from github and install this flashable zip from TWRP
- if you don't like SuperSU better use Magisk i have tested successfully too, it is easy to install, no TWRP required. MediaTek SP Flash Tool has a readback mode where you can make a backup of boot.img and copy to phone (or use the one attached). Then, all you have to do is install the Magisk Manager apk and patch the boot image, then flash the patched_boot.img and you are rooted
- this phone is encrypted by default - disable encryption may increase performance
WARNING: You do a factory reset! all data lost!
first install adb and fastboot, connect the phone and unlock the bootloader,
then follow instructions for disable encryption (do everything in TWRP):
- on Phone, download Disable Force Encrypt zip and SuperSU zip files
- boot into TWRP recovery from fastboot without flashing recovery (see above)
- copy Disable Force Encrypt zip to cache partition
Advanced -> File Manager
navigate to /data/media/0/Download
select file Disable_Dm-Verity_ForceEncrypt_v1.4.zip
press Copy File
navigate to /cache
confirm blue check mark on the right bottom
Swipe to Confirm
- repeat this copy SR3-SuperSU-v2.79-SR3-20170114223742.zip to /cache
go back to main menu
- Wipe -> Format Data -> type yes
if Format Data fails, reboot TWRP and try again:
go back to main menu
- Reboot -> Bootloader
- boot into TWRP recovery from fastboot without flashing recovery (see above)
- Wipe -> Format Data -> type yes
go back to main menu
- flash Disable Force Encrypt zip and SuperSU zip files
Install -> (Up A Level) -> /cache
select file Disable_Dm-Verity_ForceEncrypt_v1.4.zip
uncheck all checkboxes
Swipe to confirm Flash
go back
select file SR3-SuperSU-v2.79-SR3-20170114223742.zip
uncheck all checkboxes
Swipe to confirm Flash
Reboot System
- finish the initial android setup assistant
- enable usb-debugging (see above unlock bootloader)
- boot into TWRP recovery from fastboot without flashing recovery (see above)
- clear cache partition
Wipe -> Advanced Wipe -> Cache -> Swipe to Wipe
instead of SuperSU you can flash Magisk after Disable Force Encrypt. The SuperSU v2.79 is the latest release from Chainfire and it is Pro-Version. Do not update to V2.82 from Coding Code (it is the same version)
- new: 'Orange State' disabler
if you wanna get rid of the waiting time flash the 'Orange State disabler'
WARNING: experts only! do not try this if you don't know how to unbrick your device
- make a backup of lk.bin (bootloader)
- install orange_state_disabler_v0.3.zip from TWRP
- flash lk.bin from SP Flash Tool (in case you bricked your device)
--- 'Orange State' disabler v0.3 ---
##### Created by XopmoH97 : ) #####
source: orange_state_disabler_v0.3.zip
aIecxs said:
Patryk did with IDA Pro but this tutorial drives me crazy
Click to expand...
Click to collapse
Please post here:
Result of:
Code:
echo 0 > /proc/sys/kernel/kptr_restrict
cat /proc/kallsyms | grep tpd_i2c_probe
Dump of:
Code:
cat /proc/kallsyms
Code:
CUBOT_KING_KONG:/ # echo 0 > /proc/sys/kernel/kptr_restrict
CUBOT_KING_KONG:/ # cat /proc/sys/kernel/kptr_restrict
0
CUBOT_KING_KONG:/ # cat /proc/kallsyms | grep tpd_i2c_probe
c07d2970 t tpd_i2c_probe
CUBOT_KING_KONG:/ #
see attachment
https://drive.google.com/file/d/1YmOF9IRJhOEHLFHXgjBcBi74kvKrna0s
What is the kernel architecture? (you can check that in CPU-Z) nevermind
Try this:
twrp-3.2.2.0-cubot_king_kong_7081c-20180831-2340.img (updated)
If it'll not work then this:
twrp-3.2.2.0-cubot_king_kong_7081c-20180831-2356.img
i have tested, both not booting. i think we should just give up. maybe this method does not working for MT6580. i have requested kernel source code from Cubot but they denied
Lannig said:
Besides, its Nougat Android is 100% bloat-free (a good surprise I must say).
Click to expand...
Click to collapse
Cubot King Kong has data mining spy app in OTA updater
https://www.xda-developers.com/report-android-phones-transmit-data-to-adups-a-chinese-firm
dont expect any firmware updates (they wont provide Oreo for sure) - better disable OTA updater instead:
Code:
pm disable --user 0 com.adups.fota
pm disable --user 0 com.adups.fota.sysoper
edit: do not update to V24 battery drain increases dramatically. Just stay at V16
Whats the touch driver here?
1. *#*#3646633#*#*
2. Other extra
3. Device info <-- result
LosTigeros said:
Whats the touch driver here?
1. *#*#3646633#*#*
2. Other extra
3. Device info <-- result
Click to expand...
Click to collapse
the code in dialer did not work, but i could enter Service Mode with MTK Engineering Mode apk. unfortunately there is no device info in Others. is there another way to check, maybe dump some file?
Use an app from google play called Device Info HW
Hey,
thanks for your support and time! I have downloaded this app and this are the results. it shows Touchscreen gt1x (i2c 1-005d)
Will it boot up after just decompressing and compressing it again? Try: twrp-3.2.2.0-cubot_king_kong_7081c-20180902-2017.img (not patched).
Thanks a lot for providing a usable TWRP, even if only one you can boot from fastboot and not flash. It serves its purpose of installing SuperSU or Magisk, good enough for me.
I'm no Android kernel wizard but I fail to see how booting from a flashed partition or in-memory through fastboot makes a difference as far as the touch driver is concerned?
EDIT : wanted to provide the requested information but it's been done already.
In gt1x its because of this:
So get_boot_mode() returns a different value depending on how TWRP was started, from the recovery partition or in-memory from fastboot? and the touchscreen driver basically disables itself in the former case? I've learned something new today, thanks for enlightening us (and I'm impressed by your knowledge of this source code BTW).
EDIT: @aIecxs: unfortunately you're right. Dr. Web has spotted them as the infamous Downloader adware. Guess I'll have to take care of these once I have root.
And what about custom ROMs? Is it possible to build Lineage OS for this device?
I'm thinking of buying one, but if there won't be any OS updates it'll be much worse than I expected.
aIecxs said:
CUBOT KING KONG B-1 (X511) Android 7.0 quick TWRP + rooting guide
- boot into TWRP recovery from fastboot without flashing recovery (working touch screen)
Code:
adb reboot bootloader
fastboot boot "C:\Android\Backup\Cubot King Kong\twrp-3-2-2-0-recovery-for-MT6580_cubot_king_kong_7081c.img"
Click to expand...
Click to collapse
I unlocked the bootloader and tried booting the recovery using this method, but the TWRP logo shows up and the phone is stuck in a bootloop (TWRP logo shows up and disappears over and over again) .
I have tried flashing with SPFlash tool with no results. Every other recovery in this thread simply does not boot at all. What can I do to debug it? I have tried every possible method to root this phone with no success (neither TWRP nor "one click root" apps work). If anyone knows something, please help. I really want to root this phone in order to remove the malware that is preinstalled on it (adups fota). Note that I am not a developer and don't know much about these things beyond flashing custom ROMs. Thank you in advance
please do a read back for boot.img and recovery.img with SP Flash Tool

[CWM/Philz Touch 6 Recovery] for Cherry Mobile Flare S7 [MT6739, MT6739WA]

*C.M FLARE S7 CMW/PHILZ TOUCH CUSTOM RECOVERY*
[Tutorial]
Root not necessary*
No need to: ro.secure = 0 /off
REQUIREMENTS LISTED BELOW:
*Enable Developer Options [Turn On*]
*OEM Unlock [Optional*]
*Enable USB Debugging [Turn On*]
*Download C.M Flare S7 Recovery [Complete Set*]: https://drive.google.com/open?id=1SzTbVQ_dIiWdqj7cuB_17b9P5J1la4-C
------------------
Option 1: [Through SP FLASH]
Step1: Open SP FLASH Flash_tool.exe make sure to run as Administration.
Step2: On Scatter loading file, Choose MT6739_Android Scatter.txt file.
Step3: Select Download Only.
Step4: Uncheck all and Check the recovery only
Step5: Locate and Choose custom recovery.img file
Step6: After selecting the recovery.img file, press the DOWNLOAD button
Step7: Power off your phone and then remove the battery
Step8: Connect the phone USB cable and wait for 30 seconds
Step9: if the flashing has been successful, disconnect the cable then Press VOLUME UP + POWER Button.
Option 2: [Through ADB]
Step1: You should Enable USB Debugging mode before using adb
(Located in "Settings", "System", and tap 'About Phone' 7 times)
Go back to System Settings
Turn on: DEVELOPER OPTIONS.
Turn on: OEM UNLOCK & USB DEBUGGING.
Step 2: On your Computer, install "ADB-Setup-1.4.3" then after this software has been installed
Before you can use ADB you should Unlock the BOOTLOADER before flashing (this will wipe or reset the phone)
*make sure that the "OEM UNLOCK" is turned on*
On you computer open 'CMD' command.
-----------------------
Unlocking the OEM BOOTLOADER to enable the Flash feature on Fastboot*
you can use VOLUME UP + POWER BUTTON to go to Fastboot by selecting BootLoader Or ADB.
Option 1: using adb
Type:
adb devices
(Phone id will pop up in cmd with the list of 'DEVICES' attached)
adb reboot bootloader
(*in Fastboot type*)
fastboot oem unlock
(*Message will pop-up on your phone then Press VOLUME UP*)
(*To enable Flashing Custom Recovery Type command *)
fastboot flashing unlock_critical
(*Again Press VOLUME UP to enable*)
fastboot flashing get_unlock_ability
(*Queries bootloader to see if the device is unlocked*)
-----------------------
after unlocking the fastboot and oem bootloader
you can now Flash the Custom Recovery [CWM/Philz Touch 6]
in C.M FLARE S7 Folder Locate the CWM-Philz Touch 6 Custom Recovery
and copy the recovery.img file then
Type:
fastboot flash recovery recovery.img
(after flashing succeeded*)
Type:
fastboot reboot
(it will automatically reboot your phone)
-------------------------
*[End of tutorial]*
Tutorial
I flash it via flashify and ends with successful.
But i have notice that the recovery not working on touch button, anyway thanks for making this recovery.
How to fix?
Sir please tell me on How to fix Can't mount data on this custom recovery. I try to full backup using this recovery but its ended can't mount data. Sorry for my bad english I hope you can help me sir.

[GUIDE]Installation of LineageOS 14.1 in Lenovo Vibe B A2016b30 dual sim al732row

Instructions for Unlock bootloader, Root and Installation of LineageOs 14.1 in Lenovo Vibe B A2016b30 dual sim al732row variant by lexiyuri
Credits to: getdroidtips, EduardaMonteiro and CarlosArriaga
Necessary files are uploaded in my androidhostfile space
MTK Drivers:
https://androidfilehost.com/?fid=4349826312261627234
https://androidfilehost.com/?fid=4349826312261627236
Minimal ADB and TWRP 3.1.1.0 Recovery:
https://androidfilehost.com/?fid=4349826312261627232
Stock ROM for Lenovo Vibe B (just in case) of:
https://www.androidfilehost.com/?w=files&flid=303573
Lineage OS 14.1 ROM (Nougat 7.1.2) :
https://androidfilehost.com/?fid=4349826312261627242
SuperSU Root:
https://androidfilehost.com/?fid=4349826312261627240
Gapps (choose ARM 7.1 Stock package):
download from https://opengapps.org/
Make a entire backup of your device, syncing Google and WhatsApp accounts before doing something.
First part: Unlocking bootloader and installing TWRP 3.1.1.0 recovery.
0. Install necessary MTK Drivers from my uncompressed file.
Windows XP to 8.1: uncompress files, and follow on screen instructions
Windows 10 enforces driver signatures by default. This can be disabled to install drivers that are not digitally signed. Use the following steps to disable driver signature enforcement.
Click the Start Start menu and select Settings.
Click Update and Security.
Click on Recovery.
Click Restart now under Advanced Startup.
Click Troubleshoot.
Click Advanced options.
Click Startup Settings.
Click on Restart.
On the Startup Settings screen press 7 or F7 to disable driver signature enforcement. Your computer will restart and you will be able to install non-digitally signed drivers.
Install your mtk unsigned drivers. In this point dont restart computer again. After finishing all the following steps, you can restart your computer again, and the driver signature enforcement will be re-enabled.
Note: Windows XP/7/8 users don't need to do this.
1. Uncompress and pick the minimal adb and twrp provided from the zip file.
Alternatively, you can Download Minimal ADB tool from https://androidmtk.com/download-minimal-adb-and-fastboot-tool
or Download the full setup Android Studio from its official source https://developer.android.com/studio/?gclid=EAIaIQobChMIpdiIlpfh5QIVks13Ch2bUw8REAAYASAAEgJW9PD_BwE
Note: please dont forget do a complete backup of your data before start!
2. In your Lenovo Vibe B, enter Settings and Enable Developer Options:
Settings -> About Phone -> Tap on the Build Number around 7-8 Times until you see a message "Developer option enabled"
Now, you need to enable the OEM Unlock. Go to Settings -> Developer Option and Enable OEM Unlock. Just as simple as you hear!
3. Go to the folder you uncompressed the Adb tools.
Open a command tool right there (CMD or powershell). After that, turn off your phone.
Now press and hold power and volume up button keys at the same time and you'll see three options: Fastboot mode, Normal mode and Recovery mode.
Confirm Fastboot mode pressing Volume up until you point/reach to the fastboot option and confirm pressing volume down to enter, wait for the fastboot message in your phone. Now, connect your phone to the pc using an good usb cable.
4. Type in the cmd screen
Code:
fastboot devices
command and check if the phone is being recognized. This command list the connected devices.
If your phone serial number shows up everything is fine, but if the phone serial number doesn't appear, you must reinstall mtk drivers or choose another usb cable.
5. Check the unlock oem
typing the command
Code:
fastboot oem unlock
and press enter.
Alert: This procedure will erase your data and reset to the default configuration. Be careful! Check unlocked oem confirmation message on your phone screen.
6. Now is the moment of install the TWRP recovery.
To flash, type the following command in the cmd window:
Code:
fastboot flash boot boot.img
Press enter and wait for a confirmation message.
Code:
fastboot flash recovery recovery.img
Press enter and wait for a confirmation message.
7. Turn off the phone. Press and hold power and volume up button keys at the same time and you'll see three options.
With the volume up key, point to the Recovery mode option and confirm with the Volume down key. Wait a little and now you are into twrp 3.1.1.0 recovery. In the finishing touches, configure the twrp recovery and choose power off option.
Second part: install LineageOS 14.1, Gapps and SuperSu to the Lenovo Vibe B
8. Uncompress the LineageOs folder and copy to an external SD the Lineage Os, Gapps and SuperSU zip files.
9.Turn off your phone, pull out the battery, insert your microSD to the phone. Turn on your phone and start it in recovery mode just as stated before in step 7. Now, you are into TWRP
10. Do a wipe in order to delete the Stock rom. Tap Wipe option, then choose advanced wipe and pick the following ones:
Code:
Dalvik /ART Cache
System
Cache
Data
Confirm the wipe option swiping to the right and wait the confirmation message. Press back option and return to the main twrp window
11. In the main twrp window, tap the Install option, locate your microSD as externalSD tapping in the select storage to activate the external SD. Now search the files into the SD, pressing in the "up a level" zone and after you reach it, install the following things in the exact order:
Choose the Lineage OS 14.1 Rom zip file (swipe to confirm) and wait. Dont restart the phone.
After that, choose the Gapps zip file, swipe again to confirm and wait.
Finally, choose the SuperSu zip file included in the folder, do a swipe, wait.
If you want, its possible install all the zip files as a bunch using the "add more zip option" that twrp offers to you, but I prefer do it each one by one.
12. Do a final wipe choosing "wipe Dalvik and Cache".
13. Now choose the restart/reboot option. Wait for the phone initial setup (around a couple of minutes)
14. Configure the phone with your android account preferences. install your favorite apps, sync your info, etc.
15. Configure the SuperSU, install it, and verify the root with the Root checker app (you can found it in the Play store) and you are done!! Enjoy!!

How to Flash Custom Roms on G7 River {Noob Friendly}

I suppose you have a healthy RIVER running Android 10 stock , cool ! Let's get started.
Prerequisites :
1] River , USB-C Cable and a PC.
2] ADB and fastboot installed (system-wide preferred)
3. Unlocked Bootloader
4] i] Rom - Rom.zip
ii] Custom Recovery - recovery.img & recovery.zip [TWRP]
iii] copypartitions.zip
iv] gapps.zip (optional)
5] Make sure you've backed up your data.
Procedure :
1] Remove the Sim Card(s) from the Phone and Power it OFF.
2] Boot your Phone into Bootloader Mode by long pressing Volume Down + Power Button.
3] Once you're in the Bootloader Mode, locate the twrp.img on your PC , open a command prompt there , type in fastboot boot twrp.img , for example : fastboot boot twrp-3.4.0.1.img
4] Once you're booted into the TWRP , Click on WIPE > FORMAT DATA > TYPE YES , If it's done , Return to the Home Screen of TWRP , Click on REBOOT > BOOTLOADER.
5]Boot the twrp.img again like you did earlier , Once you're booted , Click on WIPE > ADVANCED WIPE > tick "INTERNAL STORAGE , SYSTEM , DATA , CACHE" , basically everything except "MICRO-SD and USB OTG" , After wiping , return back to the Home screen of TWRP , REBOOT > BOOTLOADER.
6] Boot twrp.img once again , like you did earlier , Now locate copypartitions.zip , rom.zip , twrp.zip and gapps.zip on your PC and move it to your river , Click on INSTALL > locate the files which you moved to your river ; possibly in /sdcard/ <here>.
7] [FLASHING]
i] First, flash copypartitions.zip , After flashing > Home Screen of TWRP > REBOOT > BOOTLOADER.
ii] Boot twrp.img once again , INSTALL > Now flash rom.zip along with twrp.zip , you can select multiple zips. > Home Screen of TWRP > REBOOT > RECOVERY.
iii] [SKIP THIS STEP IF YOU DONT WANT TO INSTALL GAPPS] ; Once you're into TWRP , INSTALL > gapps.zip , if it's done > Home screen of TWRP > REBOOT > BOOTLOADER.
8] We're Almost done! [IF YOU'RE A GAPPLESS GUY , I SUPPOSE YOU ARE IN TWRP RECOVERY , BOOT INTO BOOTLOADER!] Open Command Prompt on your PC and type fastboot -w , then just power your device OFF , disconnect the cable , manually power it ON , you've successfully installed a custom rom.
9] Once you're booted into the rom , insert your Sim Card(s) , and the phone will prompt which sim to use for data.
Just wanted to say thanks and that following this worked perfectly after I hit errors at the recovery boot stage of the official LineageOS guide.

Ulefone Power Armor 13 - Android 13 Stable GSI

I found that android 13 with the fingerprint and cell service eventually worked with the Android 13 Stable GSI, so I plan on using that:
I made some instructions on how to if anyone was curious.
Grab Android 13 stable GSI from: https://developer.android.com/topic/generic-system-image/releases
Download ADB and fastboot tools: https://developer.android.com/tools/releases/platform-tools
Install Ulefone ADB drivers: https://gsmusbdriver.com/ulefone-power-armor-13
-> For the drivers, you may need to manually install and select the Android Device driver in Device Manager once in one of the secondary fastboot modes. There are two fastboot modes, one will allow flashing vbmeta.img and the other system.img
-> enable developer options (Tab about phone 10 times)
Configure on-device developer options | Android Studio | Android Developers
Learn how to configure system behaviors that help you profile and debug your app performance.
developer.android.com
-> Go to system -> developer options and allow OEM unlocking
-> power off phone
-> Hold power + volume up until bootloader appears (If you see a menu with three options, select enter recovery)
-> select enter fastboot
-> in command line type fastboot.exe reboot bootloader
-> Once rebooted into first fastboot menu, in command line type fastboot.exe flashing unlock
(At this point you may be ready to flash vbmeta.img (or you will see a menu to select fastboot, if so, use volume down to select fastboot)
-> in command line, flash vbmeta.img from the GSI image folder: fastboot.exe flash vbmeta vbmeta.img
-> Reboot into second fastboot menu, type: fastboot.exe reboot fastboot
-> you may need to hit power key to bypass vbmeta check
-> flash system.img
-> in command line type: fastboot flash system system.img
-> Once completed, Enter recovery from this fastboot menu
-> Wipe Data/Factory Reset device -> Factory reset
-> Enter bootloader fastboot menu again
-> reboot into bootloader: fastboot.exe reboot bootloader
-> wipe userdata: fastboot.exe -w
-> reboot: fastboot.exe reboot
-> Go through setup (or skip everything)
-> Connect to wifi
-> Log into google
-> install google phone and google messages apps
-> Go into Settings -> Network and Internet -> SIMs -> Access Point Names -> Set your correct APN or add one
Enter hidden menu in phone app: *#*#4636#*#*
-> Phone information
-> Set preferred network type/may need to play with to get calls working (I set it to the most bands then it automatically set itself and calls started working)
After playing with a few ROMS I found the best one was Project Elixir:
ProjectElixir Download
Works great, looks like a pixel.
Had to erase product partition so it would fit, then just install the IMS mediatek apk, enable volte etc after rebooting in the treble settings.
How to Resize System Partition to Install GSI ROM
In this tutorial, we will show you the detailed steps to Resize the System Partition on your Android device to install a GSI ROM.
droidwin.com
I had to however flash to the stock ulefone 12 in the SP flash tool to get the boot working, and it does take awhile to boot though.

Categories

Resources