[Recovery][TWRP][EMUI8.x] [P20 Lite] Testing

Search This thread

Pretoriano80

Senior Member
Jun 9, 2010
3,259
2,940
Disclaimer
This software comes wth no warranty,XDA staff ,myself or TeamWin staff can't be hold responsible for any damage it may cause to your device.

Note: Currently Oreo 8.1 custom roms are not supported,only stock EMUI 8.x .

Download and Installation

* Download twrp recovery
* Start your device in fastboot mode
* Install the recovery using the following command:

Code:
fastboot flash recovery_ramdisk [filename].img --> ex: fastboot flash recovery_ramdisk twrp_p20_lite_0.1.img
* Restart with this command:
Code:
fastboot reboot
* As soon as you execute the restart command,remove the USB cable and keep pressing Volume UP,so the device will boot to TWRP.This is to avoid that the device boot to OS,overwritting TWRP recovery.

Features

Internal storage decryption = working
MTP and OTG connection = working
Backup&Restore = working


Note: There are no sources for this yet,because is based on the work of @zxz0O0 ,from Honor 9.

Contributors
**** Pretoriano80
**** @zxz0O0 - This wouldn't be possible without this guy,so big big thank to him.I used his base to make this recovery work ,so in sign of respect his nick will also be on the TWRP boot screen.Thank again buddy!
**** TeamWin project ,obviously.

**** Team OpenKirin - thanks for the "Oem Path wipe esclusion" code

Download links
twrp_p20_lite_0.1.img - initial release
 
Last edited:

fabio87

Senior Member
Feb 4, 2011
283
67
Samsung Galaxy S21
OnePlus 9 Pro
Bootloader says:

PHONE Unlocked
FRP Lock

I get writing to ramdisk error:

sending 'recovery_ramdisk' (24952 KB)...
OKAY [ 0.624s]
writing 'recovery_ramdisk'...
FAILED (remote: Command not allowed)
finished. total time: 0.640

Update: nevermind, forgot to enable oem unlock to remove FRP. (I will leave the original message for other users)

Update 2: Works.
- Data decryption and backup were successful
- MTP works
- Zip flashing successful
- OTG connection works
 
Last edited:

Pretoriano80

Senior Member
Jun 9, 2010
3,259
2,940
Bootloader says:

PHONE Unlocked
FRP Lock

I get writing to ramdisk error:

sending 'recovery_ramdisk' (24952 KB)...
OKAY [ 0.624s]
writing 'recovery_ramdisk'...
FAILED (remote: Command not allowed)
finished. total time: 0.640

Update: nevermind, forgot to enable oem unlock to remove FRP. (I will leave the original message for other users)
Update 2: Works. Data decryption and backup were successful. MTP works. Zip flashing successful.
Thank you for testing Fabio, i will edit the OP in this case. If you can, please also test OTG connection.
 
  • Like
Reactions: Montelion2004

JamesBott

Senior Member
Feb 2, 2011
240
97
Ansbach
@Pretoriano80

YOU ARE THE BEST !!!

my test
flash twrp
twrp/Backup data + system to internal storage : work
twrp/Backup data + system to external_sd : work
reboot to system
install test-app
reboot to twrp
twrp/Restore data + system : work
reboot to system
phone work and test-app is out

NOW is this phone a very good phone
NOW can i test other rom and "short restore" (if i use new phone i need minimum 1h for settings and app install, now twrp/restore = 2..3 minutes)

Many thank's for your good work (and your helping friends) !!!

Excuse me, with my joy i forgot recovery.log View attachment recovery.log
 
Last edited:

Pretoriano80

Senior Member
Jun 9, 2010
3,259
2,940
Thanks for testing! A recovery.log would also be useful.
Beware that this recovery might not work with custom roms. However, it can still be used to restore your data after testing custom roms, in case you want to go back to EMUI.
 
  • Like
Reactions: ABRmotor

Pretoriano80

Senior Member
Jun 9, 2010
3,259
2,940
Here are the logs.

I installed a zip file containing a titanium backup app+data to test it out and it jammed and reverted back to stock recovery.

I flashed the recovery again and works, but I'm not sure what happened.
Thanks, logs look fine.
Try to flash that titanium backup and then reboot to recovery instead of android system.
 

mchtt

Senior Member
Jun 12, 2013
472
71
Samsung Galaxy S22
Thanks a lot for this !
If i wanna go back to stock recovery, should i flash "recovery_ramdis.img" ? (no typo error this is the dump i get from the stock firmware)
 

mchtt

Senior Member
Jun 12, 2013
472
71
Samsung Galaxy S22
Thx a lot, it's time to flash !
edit: fastboot reboot not working on my device, but a Power+Volume Up did the job.

Is the "Failed to unmount /system" normal ?

---------- Post added at 02:58 PM ---------- Previous post was at 02:30 PM ----------

Also got a "Unable to locate /boot partition for backup calculations"

View attachment recovery.log.zip
 
Last edited:

fabio87

Senior Member
Feb 4, 2011
283
67
Samsung Galaxy S21
OnePlus 9 Pro
Thanks, logs look fine.
Try to flash that titanium backup and then reboot to recovery instead of android system.

It wouldn't let me. TWRP just gets stuck at 'Done!' and nothing happens, when I hard reset it just goes back into system and when I reboot into recovery it is back to stock.

Anyway, it's really not a big deal at the moment, I was just pointing out some sort of bug.
 

Pretoriano80

Senior Member
Jun 9, 2010
3,259
2,940
It wouldn't let me. TWRP just gets stuck at 'Done!' and nothing happens, when I hard reset it just goes back into system and when I reboot into recovery it is back to stock.

Anyway, it's really not a big deal at the moment, I was just pointing out some sort of bug.
Well, it might be an issue with the updater script that Titanium Backup is using.

After a twrp backup, i flashed a rom, then went back to twrp to do a wipe but it is stuck at the TWRP logo.
Custom Roms are not supported for now, some may work, others not.
 
  • Like
Reactions: mchtt

mchtt

Senior Member
Jun 12, 2013
472
71
Samsung Galaxy S22
Yes i reverted to stock rom and now TWRP boots again....
I tried a treble rom by the way.

---------- Post added at 04:11 PM ---------- Previous post was at 04:05 PM ----------

But i can confirm that backup / restore functions are working :D
 
  • Like
Reactions: Pretoriano80

Pretoriano80

Senior Member
Jun 9, 2010
3,259
2,940
Yes i reverted to stock rom and now TWRP boots again....
I tried a treble rom by the way.

---------- Post added at 04:11 PM ---------- Previous post was at 04:05 PM ----------

But i can confirm that backup / restore functions are working :D
Yes, but it would be great to have the same functionality with custom roms, too.
If anyone is testing custom roms, please provide me the /system/build.prop and /vendor/build.prop.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 18
    Disclaimer
    This software comes wth no warranty,XDA staff ,myself or TeamWin staff can't be hold responsible for any damage it may cause to your device.

    Note: Currently Oreo 8.1 custom roms are not supported,only stock EMUI 8.x .

    Download and Installation

    * Download twrp recovery
    * Start your device in fastboot mode
    * Install the recovery using the following command:

    Code:
    fastboot flash recovery_ramdisk [filename].img --> ex: fastboot flash recovery_ramdisk twrp_p20_lite_0.1.img
    * Restart with this command:
    Code:
    fastboot reboot
    * As soon as you execute the restart command,remove the USB cable and keep pressing Volume UP,so the device will boot to TWRP.This is to avoid that the device boot to OS,overwritting TWRP recovery.

    Features

    Internal storage decryption = working
    MTP and OTG connection = working
    Backup&Restore = working


    Note: There are no sources for this yet,because is based on the work of @zxz0O0 ,from Honor 9.

    Contributors
    **** Pretoriano80
    **** @zxz0O0 - This wouldn't be possible without this guy,so big big thank to him.I used his base to make this recovery work ,so in sign of respect his nick will also be on the TWRP boot screen.Thank again buddy!
    **** TeamWin project ,obviously.

    **** Team OpenKirin - thanks for the "Oem Path wipe esclusion" code

    Download links
    twrp_p20_lite_0.1.img - initial release
    3
    Bootloader says:

    PHONE Unlocked
    FRP Lock

    I get writing to ramdisk error:

    sending 'recovery_ramdisk' (24952 KB)...
    OKAY [ 0.624s]
    writing 'recovery_ramdisk'...
    FAILED (remote: Command not allowed)
    finished. total time: 0.640

    Update: nevermind, forgot to enable oem unlock to remove FRP. (I will leave the original message for other users)

    Update 2: Works.
    - Data decryption and backup were successful
    - MTP works
    - Zip flashing successful
    - OTG connection works
    2
    Im making a video on how to root the 2018 devices (with emui 8)
    2
    i have P20 Lite on android 9,,,,i can't install twrp on it to downgrade to emui 8 and android 8,,,please help me.

    look for the twrp_p10_lite_0.4.img of pretoriano80, this twrp works on my p20lite with emui 9.0
    I'm sorry but I can't publish links
    2
    @Pretoriano80

    YOU ARE THE BEST !!!

    my test
    flash twrp
    twrp/Backup data + system to internal storage : work
    twrp/Backup data + system to external_sd : work
    reboot to system
    install test-app
    reboot to twrp
    twrp/Restore data + system : work
    reboot to system
    phone work and test-app is out

    NOW is this phone a very good phone
    NOW can i test other rom and "short restore" (if i use new phone i need minimum 1h for settings and app install, now twrp/restore = 2..3 minutes)

    Many thank's for your good work (and your helping friends) !!!

    Excuse me, with my joy i forgot recovery.log View attachment recovery.log