TWRP for Android 9 Pie? - Xiaomi Mi 8 Lite Questions & Answers

My phone just got the android 9 update, I already had installed root with twrp on my device with android 8.0
So when I tried to re-root my phone I needed to reinstall the TWRP but it couldn't decrypt the data
I tried all of the posible solutions to this but nothing
I think that is the TWRP version that can't decrypt data in android 9.0
But in the web isn't any version that support the Mi 8 LIte with Android 9.0
Do I need to wait until someone update the TWRP version or what can I do?
Thanks in advance

Sebaxe07 said:
My phone just got the android 9 update, I already had installed root with twrp on my device with android 8.0
So when I tried to re-root my phone I needed to reinstall the TWRP but it couldn't decrypt the data
I tried all of the posible solutions to this but nothing
I think that is the TWRP version that can't decrypt data in android 9.0
But in the web isn't any version that support the Mi 8 LIte with Android 9.0
Do I need to wait until someone update the TWRP version or what can I do?
Thanks in advance
Click to expand...
Click to collapse
Formatting data have to decrypt it, you have to be sure that TWRP is able to mount data partition.

SubwayChamp said:
Formatting data have to decrypt it, you have to be sure that TWRP is able to mount data partition.
Click to expand...
Click to collapse
So I need to erease all of my phone data to be able to use twrp? But why it didn't have this problem the first time?

Sebaxe07 said:
So I need to erease all of my phone data to be able to use twrp? But why it didn't have this problem the first time?
Click to expand...
Click to collapse
You are upgrading now; for this you need to decrypt it for first time and probably every time that you switch from a miui to an AOSP rom. Be sure that your data partition is mounted and I guess you can´t see the files under TWRP. Try first with this zip https://forum.xda-developers.com/android/software/universal-dm-verity-forceencrypt-t3817389

Stock Miui re-encrypt data on first boot after factory reset, so you need to flash Universal DM-Verity

I also need TWRP for pie.

Try this recovery, It has more features than TWRP https://sourceforge.net/projects/orangefox/files/test_builds/OrangeFox-R9.0-1-platina.zip/download

SubwayChamp said:
Try this recovery, It has more features than TWRP https://sourceforge.net/projects/orangefox/files/test_builds/OrangeFox-R9.0-1-platina.zip/download
Click to expand...
Click to collapse
Thanks

SubwayChamp said:
Try this recovery, It has more features than TWRP https://sourceforge.net/projects/orangefox/files/test_builds/OrangeFox-R9.0-1-platina.zip/download
Click to expand...
Click to collapse
Would you happen to know if opengapps aroma works with this recovery. I have tried 3 or 4 other revoveries and once options are selected and install starts recovery reboots. After that I have to hold power to force reboot because no matter what reboot option I choose it just goes back to recovery.

cidxtc said:
Would you happen to know if opengapps aroma works with this recovery. I have tried 3 or 4 other revoveries and once options are selected and install starts recovery reboots. After that I have to hold power to force reboot because no matter what reboot option I choose it just goes back to recovery.
Click to expand...
Click to collapse
Unfortunately I can't tell you for sure cause left 3 days to unlock my bootloader but I used this recovery in two Xiaomi devices (R5Plus and Mi Max) and was the best I ever tried, never had issue flashing Aroma zips.
Be sure that once finished the installation Reboot box in Aroma be unticked

SubwayChamp said:
Unfortunately I can't tell you for sure cause left 3 days to unlock my bootloader but I used this recovery in two Xiaomi devices (R5Plus and Mi Max) and was the best I ever tried, never had issue flashing Aroma zips.
Be sure that once finished the installation Reboot box in Aroma be unticked
Click to expand...
Click to collapse
Never had an issue with redmi note 4x and aroma either. The reboot box does not make a difference because the install never happens. I will download and try.

Sebaxe07 said:
I think that is the TWRP version that can't decrypt data in android 9.0
But in the web isn't any version that support the Mi 8 LIte with Android 9.0
Click to expand...
Click to collapse
If you are using the wzsx150 3.2.3 twrp found under the ROM/recovery section, versions 0121 and 0212 are both supposed to be for Android 9. I haven't tried myself though, as I am still on 8.

I can confirm version 0212 does indeed decrypt data partition, making it mountable it inside TWRP. Of course phone's now running on official Android 9 MIUI 10, updated on Wednesday.

So heads up for anyone trying to use open gapps aroma installer. No recovery will install it. Tried batik, orange fox, perp, and wzsx150 twrp and all do the same. After all the selections when the actual installation starts the device reboots (installs nothing but does save setting options) back to recovery. All reboot options (system, fastboot, etc) all reboot back to recovery only holding power button will allow device to boot into system.

MetallicGR said:
I can confirm version 0212 does indeed decrypt data partition, making it mountable it inside TWRP. Of course phone's now running on official Android 9 MIUI 10, updated on Wednesday.
Click to expand...
Click to collapse
I am using wzsx150 3.2.3-1003 and it does not decrypt data, even with proper password.. Where can I find 0212. I cannot find it in this forum. ..only the bad one I am using.
EDIT: Nevermind. Found it.

MetallicGR said:
I can confirm version 0212 does indeed decrypt data partition, making it mountable it inside TWRP. Of course phone's now running on official Android 9 MIUI 10, updated on Wednesday.
Click to expand...
Click to collapse
Any idea why is 0212 half the size of 0121, and the others for that matter (28MB vs 60MB).

I believe it's somehow compressed. If you open these files with something like 7zip you'll see the size is very close between the two.

MetallicGR said:
I believe it's somehow compressed. If you open these files with something like 7zip you'll see the size is very close between the two.
Click to expand...
Click to collapse
Oh okay. That would make sense.

lexridge said:
I am using wzsx150 3.2.3-1003 and it does not decrypt data, even with proper password.. Where can I find 0212. I cannot find it in this forum. ..only the bad one I am using.
EDIT: Nevermind. Found it.
Click to expand...
Click to collapse
Can yo share the 0212 img to Pie I'm stll in Oreo and the Pie update notification is a little annoying so I want to update but I haven't found the twpr 0212 for mi 8 lite.

Here you go. https://forum.xda-developers.com/showpost.php?p=78876979&postcount=46
Another member replied to your other thread as well.

Related

TWRP not installing/Stuck on Stock Recovery after a Revert to Stock

Hello,
I've unlocked my bootloader and subsequently had installed TWRP (months ago).
Not long after, I decided to go back to stock for a while, and went back to CM a month ago.
However, I realized back then that I was loading into stock recovery even after taking the steps to install TWRP (http://forum.xda-developers.com/honor-5x/development/root-kiw-l24-usa-kiwi-t3305190)
During these steps, there were no errors (fastboot/adb logs show all things were done successfully).
However, some funky quirk (that I don't remember) got me loaded with TWRP once, which gave me the window to install CM (I remember it involving having to be connected to the PC).
Now I'm trying to install a new CM build, but I can't get it loading TWRP.
I've downloaded the TWRP Manager App, which tells me that I have TWRP 3.0.0.0, but when I reboot to recovery, I am given the stock EMUI recovery.
Does anyone know what is happening in this case? Has anyone experienced a similar issue?
Thank you!
undesputed said:
Hello,
I've unlocked my bootloader and subsequently had installed TWRP (months ago).
Not long after, I decided to go back to stock for a while, and went back to CM a month ago.
However, I realized back then that I was loading into stock recovery even after taking the steps to install TWRP (http://forum.xda-developers.com/honor-5x/development/root-kiw-l24-usa-kiwi-t3305190)
During these steps, there were no errors (fastboot/adb logs show all things were done successfully).
However, some funky quirk (that I don't remember) got me loaded with TWRP once, which gave me the window to install CM (I remember it involving having to be connected to the PC).
Now I'm trying to install a new CM build, but I can't get it loading TWRP.
I've downloaded the TWRP Manager App, which tells me that I have TWRP 3.0.0.0, but when I reboot to recovery, I am given the stock EMUI recovery.
Does anyone know what is happening in this case? Has anyone experienced a similar issue?
Thank you!
Click to expand...
Click to collapse
Reinstallt it try this TWRP http://www.mediafire.com/download/15g5i63gke9ddgp/kiwi_twrp_3-21_recovery.img its version 3.0.2.0 (Most recent)
The most recent is 5-14 (also based on v3.0.2.0 ).
TWRP 5.14
3-21 was built on March 21, and 5-14 on May 14.
mooms said:
The most recent is 5-14 (also based on v3.0.2.0 ).
TWRP 5.14
3-21 was built on March 21, and 5-14 on May 14.
Click to expand...
Click to collapse
Just for the record I'm using a even newer one than the 5-14 posted above
@yuweng posted a version of 3.0.2.0 that will make images of many partitions on the phone that even 5-14 ignores
you can download it here >> https://www.androidfilehost.com/?fid=24588212152305793
please note it was discovered early on that you cannot share the oeminfo partition on the phone, it's locked to your device and can / will brick a phone it's not from. just be careful what you restore with such a powerful version of TWRP.
@undesputed
I have seen this before where flashing TWRP does not seem to stick.
boot to the bootloader and see if frp is unlocked ... if not you need to
boot to your OS and remove your google account from the device
reboot to the bootloader and attempt the flash again. if it still fails to stick you can always just use
fastboot boot twrp.img and it will work just fine... just not installed
Arobase40 said:
Do you mean 3.0.2.0 is newer and supports more partitions than 5-14 ???
Click to expand...
Click to collapse
Their both 3.0.2.0 the one I just posted has more features
Sent from my SM-N920T using Tapatalk
clsA said:
Just for the record I'm using a even newer one than the 5-14 posted above
@yuweng posted a version of 3.0.2.0 that will make images of many partitions on the phone that even 5-14 ignores
you can download it here >> https://www.androidfilehost.com/?fid=24588212152305793
please note it was discovered early on that you cannot share the oeminfo partition on the phone, it's locked to your device and can / will brick a phone it's not from. just be careful what you restore with such a powerful version of TWRP.
@undesputed
I have seen this before where flashing TWRP does not seem to stick.
boot to the bootloader and see if frp is unlocked ... if not you need to
boot to your OS and remove your google account from the device
reboot to the bootloader and attempt the flash again. if it still fails to stick you can always just use
fastboot boot twrp.img and it will work just fine... just not installed
Click to expand...
Click to collapse
@clsA
frp is labeled as "UNLOCK" as oppsed to bootloader labeled as "UNLOCKED".
If it's just about removing my google account, will this be resolved the next time I do a factory reset?
Nevertheless, thank you so much for the command fastboot boot twrp.img, I realized that that was what I had used the last time.
I'm currently able to boot into TWRP this way. Awesome!
@clsA
Thanks for the link & infos.
Can you tell which features are added in this new TWRP ? name of the partitions ?
Thanks.
mooms said:
@clsA
Thanks for the link & infos.
Can you tell which features are added in this new TWRP ? name of the partitions ?
Thanks.
Click to expand...
Click to collapse
it would be much easier to just install it and test it for yourself
I did find a bug it would not backup to my OTG stick
clsA said:
it would be much easier to just install it and test it for yourself
I did find a bug it would not backup to my OTG stick
Click to expand...
Click to collapse
I don't use all the features, so i will maybe miss the changes.
Never used OTG to made a backup (I use ext_SD), I don't know if it works with other builds of TWRP.
mooms said:
I don't use all the features, so i will maybe miss the changes.
Never used OTG to made a backup (I use ext_SD), I don't know if it works with other builds of TWRP.
Click to expand...
Click to collapse
USB-OTG works flawlessly on the 5-14 version I was not able to use it with the newer one @yuweng posted in his guide
the screen shots show all the partitions it's able to work with
Arobase40 said:
I thought 3.0.2.0 was just an interim version between twrp_2-27 and twrp_5-14... ^^
Click to expand...
Click to collapse
your confusing TWRP versions with TWRP release dates
2-27 and 5-14 are release dates where as 3.0.2.0 is the version of TWRP not the date
the first version of TWRP for this device was actually 2.8.7.0 and was released on 2-16-2016
Same issue
Hey so I have the same exact issue umm did you ever resolve this problem becuSe I can't seem to crack it and it's a bit frustrating cuz by no means am I a pro but coming from using the OnePlus one the OnePlus 2 the OnePlus x and the Nexus 6 rooting them and restoring them after many failed attempts resulting in bricking my phone and even eventually unbrick them I do know a thing or two and I am stumped please help you are the only other person in this world other then my self that seems to be having this issue if you don't mind would you be so kind and email gmail me cuz I don't use or check this forum often thanks millerfamily805
clsA said:
Just for the record I'm using a even newer one than the 5-14 posted above
@yuweng posted a version of 3.0.2.0 that will make images of many partitions on the phone that even 5-14 ignores
you can download it here >> https://www.androidfilehost.com/?fid=24588212152305793
please note it was discovered early on that you cannot share the oeminfo partition on the phone, it's locked to your device and can / will brick a phone it's not from. just be careful what you restore with such a powerful version of TWRP.
@undesputed
I have seen this before where flashing TWRP does not seem to stick.
boot to the bootloader and see if frp is unlocked ... if not you need to
boot to your OS and remove your google account from the device
reboot to the bootloader and attempt the flash again. if it still fails to stick you can always just use
fastboot boot twrp.img and it will work just fine... just not installed
Click to expand...
Click to collapse
Can it be used with other honor devices?
Got my answer... Thanks...
Sent from my PLK-L01 using XDA Labs
It depend on the device

[Recovery][BKL][EMUI 8.x only][Unofficial]TWRP 3.2.1-0 [14/04/2018]

Disclaimer​This software comes wth no warranty,XDA staff ,myself or TeamWin stuff can't be hold responsible for any damage it may cause to your device.
Note: Currently Oreo 8.1 custom roms are supported only on BKL-L04 with EMUI 8.1
Download and Installation​
* Download twrp recovery
* Start your device in fastboot mode
* Install the recovery using the following command:
Code:
fastboot flash recovery_ramdisk [name of the file].img --> ex: fastboot flash recovery_ramdisk twrp_blanc_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 forum.
Credits
**** @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.
Download links
twrp_blanc_0.1.img - initial test release
twrp_bkl_0.2.img - OEMinfo partition is available for backup
twrp_bkl_0.3.img - /cache mounting is fixed,backup /vendor as image (vendor still can't be mounted)
twrp_bkl_0.4.img - /vendor mounting/unmounting is now fixed (thx @ante0 for the script)
twrp_bkl_0.5.img - mounting/unmounting issues shound be fixed , added a new option to exclude OEM path from wiping with Factory Reset and can be enabled/disabled in settings (thx Team OpenKirin for this), this version will work even with newer updates that bump security patch version.
twrp_bkl_0.6.img - Cache wiping issue is now fixed
twrp_bkl_0.7.img - fixed decryption on EMUI 8.1 (now you can use the same password/pin/pattern to decrypt in TWRP), /recovery_ramdisk no longer available for backup./vendor no longer available for backup (use /vendor_image instead),/system and /data can be unmounting issue with 8.1 devices is now fixed.
Pretoriano80 said:
Internal storage decryption = working
MTP and OTG connection = working
Backup&Restore = working
Click to expand...
Click to collapse
Thanks man! :laugh: Need to test this!
IcipherPT said:
Thanks man! [emoji23] Need to test this!
Click to expand...
Click to collapse
No problem! Please report back if it's working or not.
Pretoriano80 said:
No problem! Please report back if it's working or not.
Click to expand...
Click to collapse
wipe everything to decrypt?
ngoralph said:
wipe everything to decrypt?
Click to expand...
Click to collapse
Nope, just decrypting, like you do when your phone is starting and asks for PIN! [emoji6]
Pretoriano80 said:
No problem! Please report back if it's working or not.
Click to expand...
Click to collapse
Just tested on my honor view 10. It was asking for a password to decrypt. I entered my lockscreen pass and everything was decrypt.
so TWRP CAN decrypt
@youtuber123
did you try a nandroid backup?
youtuber123 said:
Just tested on my honor view 10. It was asking for a password to decrypt. I entered my lockscreen pass and everything was decrypt.
so TWRP CAN decrypt
Click to expand...
Click to collapse
Ok, so it's working!Great,please let me know if something it's broken (backup, restore, MicroSD mounting, etc).
Pretoriano80 said:
Ok, so it's working!Great,please let me know if something it's broken (backup, restore, MicroSD mounting, etc).
Click to expand...
Click to collapse
nandroid (backup and restore) is working
mtp is working too
and micro usb mounting is working
didn't tested to flash something using twrp
youtuber123 said:
nandroid (backup and restore) is working
mtp is working too
and micro usb mounting is working
didn't tested to flash something using twrp
Click to expand...
Click to collapse
There's not much stuff to flash for this device! [emoji16]
Good, finally a useful twrp....
Can we flash LOS using this now?
@Pretoriano80
tried your recovery at my view 10. flashed it via fastboot. had no success. your twrp is hanging at the start screen. tried to flash it via the twrp of dees_troy, the same result. recovery is not booting completely, remains at the twrp start screen. any ideas?
kurvenmeister said:
@Pretoriano80
tried your recovery at my view 10. flashed it via fastboot. had no success. your twrp is hanging at the start screen. tried to flash it via the twrp of dees_troy, the same result. recovery is not booting completely, remains at the twrp start screen. any ideas?
Click to expand...
Click to collapse
Which version? Another user reported that is working.
Edit: More details about your device?Which version do you have exactly?
the twrp_blanc_0.1.img
the dl-link of twrp_bkl_0.2.img is not working
kurvenmeister said:
the twrp_blanc_0.1.img
the dl-link of twrp_bkl_0.2.img is not working
Click to expand...
Click to collapse
Ok thank,link is fixed .but if the initial one didn't booted ,i don't think this will do.Which version of Honor 10 do you have (european,usa,etc)?I'm not sure it will work on the US version or any other version which is based on Oreo 8.1.
@Pretoriano80
dl-link worked. tried the second version of your recovery. still no success. it is hanging at the start screen. nothing else happend. european bkl-l09, resurrection remix, oreo 8.1
kurvenmeister said:
@Pretoriano80
dl-link worked. tried the second version of your recovery. still no success. it is hanging at the start screen. nothing else happend. european bkl-l09, resurrection remix, oreo 8.1
Click to expand...
Click to collapse
The custom rom might be the culprit!I didn't tested on custom roms.
Pretoriano80 said:
Ok thank,link is fixed .but if the initial one didn't booted ,i don't think this will do.Which version of Honor 10 do you have (european,usa,etc)?I'm not sure it will work on the US version or any other version which is based on Oreo 8.1.
Click to expand...
Click to collapse
Hey mate nice to see you here
Nice job with the recovery! I've been handed out an US View 10 a couple weeks ago (with Android 8.1 pre-release stuff), I'll test it out for you.
twrp-3.2.1-0-berkeley.img didn't boot on BKL-L04 (dark screen and reboot), but Ethan made some changes and twrp-3.2.1-1-berkeley.img does work fine.
I've been told that some selinux changes were needed to boot 8.1 stuff, some critical service that fails to run because it can't find the right policy, something related to recovery_vendor partition that runs it.
It will work in 8.0 setups also just fine.
I'll let you know how it goes :fingers-crossed:
Hope we get 8.1 kernel sources soon so I blu_spark this blue beauty
Rommco05 said:
I succesfuly make full backup (except data) and flashed busybox. I dont need decrypted data all seems to be fine. In backup section just missing OEM
Click to expand...
Click to collapse
Latest version should have Oeminfo available for backup! Did you tested that version?
eng.stk said:
Hey mate nice to see you here
Nice job with the recovery! I've been handed out an US View 10 a couple weeks ago (with Android 8.1 pre-release stuff), I'll test it out for you.
twrp-3.2.1-0-berkeley.img didn't boot on BKL-L04 (dark screen and reboot), but Ethan made some changes and twrp-3.2.1-1-berkeley.img did.
I've been told that some selinux changes were needed to boot 8.1 stuff, some critical service that fails to run because it can't find the right policy, something related to recovery_vendor partition that runs it.
It will work in 8.0 setups also jsut fine.
I'll let you know how it goes :fingers-crossed:
Click to expand...
Click to collapse
Hi! My favourite kernel developer is here, nice!
I have a guess on what may be wrong, but i'm not sure. Let me know if you figure out! [emoji6]

[How to] Decrypt data on P10 and other kirin devices (EMUI, OREO and PIE roms)

Well, first of all, this is not my work, I'm just sharing this guide that worked for me, it should work on any kirin device.
I have a P10 (VTR-L29C432), don't ask me if it works on X device, just try it for yourself as I did.
1) You need an unlocked bootloader and FRP
2) If you don't want to lose any data, backup your internal memory, because you'll need to do some wipes on stock recovery.
3) Reboot into TWRP and flash the "Huawei_remove_encyption_data_2.zip", here's the link: https://forum.xda-developers.com/mate-9/how-to/guide-how-to-decrypt-data-mate-9-hi3660-t3834748, you can use blackball's TWRP (p10 plus) or twrp from Honor 9 lite forum (both works on any emui and pie's rom, but you'll need and sdcard in order to flash the file)
4) After that, reboot into bootloader and flash your stock recovery and wipe data and cache
5) Reboot again into bootloader and flash again your favorite Twrp.
Some Twrps:
https://forum.xda-developers.com/showpost.php?p=77262856&postcount=166 P10 plus TWRP
https://forum.xda-developers.com/9-lite/development/recovery-twrp-3-2-1-0-t3789306 Honor 9 Lite TWRP
https://forum.xda-developers.com/honor-view-10/development/recovery-twrp-3-2-1-0-t3769917 Honor View 10 TWRP
https://forum.xda-developers.com/p10-plus/development/recovery-twrp-3-2-1-0-oreo-t3734993 P10 plus TWRP (blackball)
https://forum.xda-developers.com/android/themes/theme-twrp-materialised-dark-light-play-t2915584 Themes for TWRP, download and flash as a normal zip.
If your device isn't hi3660 (kirin 960), you'll need to do it manually, first go to vendor/etc and look for a file called "fstab......" (you'll need to remember that name), go to the zip file that you previously downloaded and extract it, go to the folder vendor/etc and you'll see the fstab.hi3660 file, rename it with the name of your fstab and paste it into vendor/etc (if it ask for overwrite, hit the YES button), reboot and do the wipes on stock
If it was useful for you, go and say thanks / donate to @micky387 for their work and to the Devs that made possible the tools that we use. :highfive:
did it work on oreo 8.1 based roms ? (problem is with encrypted data partition)
yes, it works.
for me it wont work... TWRP stuck at TWRP screen
Edit
ok, i flashed recomended recovery from tutorial and now works
thanks
doktor29 said:
for me it wont work... TWRP stuck at TWRP screen
Edit
ok, i flashed recomended recovery from tutorial and now works
thanks
Click to expand...
Click to collapse
The p10plus recovery?
sfoot13 said:
The p10plus recovery?
Click to expand...
Click to collapse
nope, this dont work for me... it stuck on TWRP logo
i flash one from tutorial, twrp_recovery.img
in order to make any twrp working, first you need to reboot into fastboot and type fastboot -w, after that flash any twrp and follow the steps, I tried it with many recoveries, even with p10plus version.
Actually I'm using one from PRA forum, it works with custom roms
but internal memory is encrypted, but is not a problem for me.
i flash 3.1.1 twrp for oreo 8.0 based roms
this one see more partition to backup like others
@micky387 updated the files and the process, so I updated the thread all the credits to him
sfoot13 said:
Well, first of all, this is not my work, I'm just sharing this guide that worked for me, it should work on any kirin device.
I have a P10 (VTR-L29C432), don't ask me if it works on X device, just try it for yourself as I did.
1) You need an unlocked bootloader and FRP
2) If you don't want to lose any data, backup your internal memory, because you'll need to do some wipes on stock recovery.
3) Reboot into TWRP and flash the "Huawei_remove_encyption_data_2.zip", here's the link: https://forum.xda-developers.com/mate-9/how-to/guide-how-to-decrypt-data-mate-9-hi3660-t3834748, you can use blackball's TWRP (p10 plus) or twrp from Honor 9 lite forum (both works on any emui and pie's rom, but you'll need and sdcard in order to flash the file)
4) After that, reboot into bootloader and flash your stock recovery and wipe data and cache
5) Reboot again into bootloader and flash again your favorite Twrp.
Some Twrps:
https://forum.xda-developers.com/showpost.php?p=77262856&postcount=166 P10 plus TWRP
https://forum.xda-developers.com/9-lite/development/recovery-twrp-3-2-1-0-t3789306 Honor 9 Lite TWRP
https://forum.xda-developers.com/honor-view-10/development/recovery-twrp-3-2-1-0-t3769917 Honor View 10 TWRP
https://forum.xda-developers.com/p10-plus/development/recovery-twrp-3-2-1-0-oreo-t3734993 P10 plus TWRP (blackball)
https://forum.xda-developers.com/android/themes/theme-twrp-materialised-dark-light-play-t2915584 Themes for TWRP, download and flash as a normal zip.
If your device isn't hi3660 (kirin 960), you'll need to do it manually, first go to vendor/etc and look for a file called "fstab......" (you'll need to remember that name), go to the zip file that you previously downloaded and extract it, go to the folder vendor/etc and you'll see the fstab.hi3660 file, rename it with the name of your fstab and paste it into vendor/etc (if it ask for overwrite, hit the YES button), reboot and do the wipes on stock
If it was useful for you, go and say thanks / donate to @micky387 for their work and to the Devs that made possible the tools that we use. :highfive:
Click to expand...
Click to collapse
Why would you need to unlock the data ?
haddadadam35 said:
Why would you need to unlock the data ?
Click to expand...
Click to collapse
why you quote the whole post?
That's annoying.
Do you know MP? Just asking because it's out of context. If you want to teach lessons, why do it on public instead of MP which is ethical.
And yes I'm doing the same mistake, but I hope to prevent many.
Will I be able to enrcypt my system on a ROM Basis afterwards? I want an encrypted device but I also want to be able to do backups in TWRP.
hansiohne said:
Will I be able to enrcypt my system on a ROM Basis afterwards? I want an encrypted device but I also want to be able to do backups in TWRP.
Click to expand...
Click to collapse
I experimented similarly on two P9 phones with Oreo, and was able to encrypt back by doing:
Install latest + Factory reset from eRecovery
Of course, before eRecovery, you must revert to stock Recovery (and stock eRecovery, Kernel if they were flashed over) and unroot (stock Ramdisk) - without you risk a brick
Edit: Also, while having decrypted Data and internal memory, successfully received an OTA patch (Huawei stopped updating but sent a smalll OTA patch to the existing firmware)
zgfg said:
I experimented similarly on two P9 phones with Oreo, and was able to encrypt back by doing:
Click to expand...
Click to collapse
But as I said I don't want to encrypt back because if I had no need to permanently decrypt (for TWRP backup reasons, I have berkeley and encryption doesn't work there on TWRP) I wouldn't do it. Instead, I want to decrypt and then do a normal device encryption in AICP. Or am I getting it wrong and it's the same type of encryption in the end?

Password in all recoveries except TWRP 3.3.0.0

First of all I must apologize for my low level of English.
I will try to explain something strange that happens to my Pocophone since the arrival of the OTA with Android 10 and Miui11
Since I bought the Poco I have always used TWRP as recovery.
I currently use the 3.3.0.0 official TWRP version downloaded from its official app and I have no problem until the past weekend-
However, I have tried installing OrangeFox Recovery Project (OFRP), PitchBlack Recovery Project (PBRP) and an unofficial TWRP mod whose name is twrp-3.3.1-2-beryllium-adil2.img
And now I tell you I miss it.
If I boot into recovery using TWRP 3.3.0.0 it does not ask me for password, but if I flash OFRP, PBRP or mod 3.3.1.2 adil 2, it always asks me for a password when booting and tells me that the partition /data is encrypted. I do not know the password and I have never encrypted the Poco. Also the 3 revoveries show that is not installed any Tom, but when a reboot the system works perfectly.
Some colleagues have indicated to me that the data partition had been encrypted so I followed the next process to try to install a clean rom.
1. Boot in bootloader with Power + Vol-
2. Via fastboot flash OFRP
3. Boot in recovery (OFRP)
4. Format data and factory reset
5. Reboot recovery OFRP
6. Wipe: cache, Dalvik/Cache, Data and System partitions
7. Install rom XiaomiEU V11.0.4.0.QEJMIXM.zip
8. Flash DFE + Magisk
9. Reboot system
10. Complete ROM configuration
When I start again in recovery, it asks me for a password, informs me that data is encrypted and I cannot mount it, and I can't install anything.
However, if I flash TWRP 3.3.0.0 via fastboot, it no longer asks me for a password and I can mount the data partition and work normally.
If I flash again OFPR, PBRP or twrp-3.3.1-2-beryllium-adil2.img, ask me for a password again and it tells me that / data is encrypted
I tried to delete from /data/system the files locksettings.db, locksettings.db-shm and locksettings.db-wal but it continues asking me for a password if the recovery is always different of TWRP 3.3.0.0
otraver said:
First of all I must apologize for my low level of English.
I will try to explain something strange that happens to my Pocophone since the arrival of the OTA with Android 10 and Miui11
Since I bought the Poco I have always used TWRP as recovery.
I currently use the 3.3.0.0 official TWRP version downloaded from its official app and I have no problem until the past weekend-
However, I have tried installing OrangeFox Recovery Project (OFRP), PitchBlack Recovery Project (PBRP) and an unofficial TWRP mod whose name is twrp-3.3.1-2-beryllium-adil2.img
And now I tell you I miss it.
Click to expand...
Click to collapse
First off, your post belongs in the Q & A section. Please ask a moderator to move it as it has nothing to do with ROMs or development. Secondly, if official TWRP works, use it. Stop switching between recoveries and getting yourself all flustered.
PS: your English is fine. Don't sweat it.
Sent from my Galaxy Tab S5e using XDA Labs
Thank's for your answer.
guhvanoh said:
First off, your post belongs in the Q & A section. Please ask a moderator to move it as it has nothing to do with ROMs or development.
Click to expand...
Click to collapse
I don't know how conctact with the moderator. I'm a veteran user of the XDA-forums but I don't usually write frequently because my difficulty with the English language.
Secondly, if official TWRP works, use it. Stop switching between recoveries and getting yourself all flustered.
PS: your English is fine. Don't sweat it.
Click to expand...
Click to collapse
You're right. Here, in my country, we usually use this saying "if something works, don't touch it"
I wanted to try other recoveries because the official TWRP does not support USB-OTG access well.
About one year ago, I tried using a 256GB flashdrive with a m.2 ssd to perform a faster backup of the rom, but TWRP don't recognize the drive.
I read in these forums that TWRP had a problem managing USB-OTG and installed PBRP and it worked fine until last week I received the Miui11/Android10 OTA. After flashing it, PBRP started asking me for the password and displaying the message "I don't detect any rom installed". Despite having a recent backup (I always do it before flashing) I was a little scared.
I decided to reinstall TWRP by fastboot and I was surprised that the rom had been updated and everything worked ok.
As some colleagues tell me that I have the encrypted / data partition, I tried to make a format of the / data partition and new installation, with the result I commented above.
However, when I received the previous OTA, which was Android9 and Miui11, there was no problem.
I just wanted to share this strange situation.
I appreciate your message.
otraver said:
Thank's for your answer.
I don't know how conctact with the moderator. I'm a veteran user of the XDA-forums but I don't usually write frequently because my difficulty with the English language.
I appreciate your message.
Click to expand...
Click to collapse
Not a problem. If you view this in a web browser there is a button at the bottom left or right to report a post. Use that and ask for this thread to be moved.
PS: your English is still great.
Sent from my Galaxy Tab S5e using XDA Labs
otraver said:
First of all I must apologize for my low level of English.
I will try to explain something strange that happens to my Pocophone since the arrival of the OTA with Android 10 and Miui11
Since I bought the Poco I have always used TWRP as recovery.
I currently use the 3.3.0.0 official TWRP version downloaded from its official app and I have no problem until the past weekend-
However, I have tried installing OrangeFox Recovery Project (OFRP), PitchBlack Recovery Project (PBRP) and an unofficial TWRP mod whose name is twrp-3.3.1-2-beryllium-adil2.img
And now I tell you I miss it.
If I boot into recovery using TWRP 3.3.0.0 it does not ask me for password, but if I flash OFRP, PBRP or mod 3.3.1.2 adil 2, it always asks me for a password when booting and tells me that the partition /data is encrypted. I do not know the password and I have never encrypted the Poco. Also the 3 revoveries show that is not installed any Tom, but when a reboot the system works perfectly.
Some colleagues have indicated to me that the data partition had been encrypted so I followed the next process to try to install a clean rom.
1. Boot in bootloader with Power + Vol-
2. Via fastboot flash OFRP
3. Boot in recovery (OFRP)
4. Format data and factory reset
5. Reboot recovery OFRP
6. Wipe: cache, Dalvik/Cache, Data and System partitions
7. Install rom XiaomiEU V11.0.4.0.QEJMIXM.zip
8. Flash DFE + Magisk
9. Reboot system
10. Complete ROM configuration
When I start again in recovery, it asks me for a password, informs me that data is encrypted and I cannot mount it, and I can't install anything.
However, if I flash TWRP 3.3.0.0 via fastboot, it no longer asks me for a password and I can mount the data partition and work normally.
If I flash again OFPR, PBRP or twrp-3.3.1-2-beryllium-adil2.img, ask me for a password again and it tells me that / data is encrypted
I tried to delete from /data/system the files locksettings.db, locksettings.db-shm and locksettings.db-wal but it continues asking me for a password if the recovery is always different of TWRP 3.3.0.0
Click to expand...
Click to collapse
Hi bro I also facing same issue my problem is I m using orange fox recovery 10.0.1 version and when I flash miuiQ stable global with dfe it ask me to enter password when I boot to recovery don't know what happened. By the way is twrp official work perfectly????
---------- Post added at 04:07 PM ---------- Previous post was at 04:01 PM ----------
otraver said:
Thank's for your answer.
I don't know how conctact with the moderator. I'm a veteran user of the XDA-forums but I don't usually write frequently because my difficulty with the English language.
You're right. Here, in my country, we usually use this saying "if something works, don't touch it"
I wanted to try other recoveries because the official TWRP does not support USB-OTG access well.
About one year ago, I tried using a 256GB flashdrive with a m.2 ssd to perform a faster backup of the rom, but TWRP don't recognize the drive.
I read in these forums that TWRP had a problem managing USB-OTG and installed PBRP and it worked fine until last week I received the Miui11/Android10 OTA. After flashing it, PBRP started asking me for the password and displaying the message "I don't detect any rom installed". Despite having a recent backup (I always do it before flashing) I was a little scared.
I decided to reinstall TWRP by fastboot and I was surprised that the rom had been updated and everything worked ok.
As some colleagues tell me that I have the encrypted / data partition, I tried to make a format of the / data partition and new installation, with the result I commented above.
However, when I received the previous OTA, which was Android9 and Miui11, there was no problem.
I just wanted to share this strange situation.
I appreciate your message.
Click to expand...
Click to collapse
So bro twrp official never give encryption error if I flash miuiQ using it right ?
Hey there!
I have the same Situation here and I figured at least some points out:
- the Upgrade to Android 10 encrypted the data Partition. You can see that in in your phone settings under security and password. For some security reasons of Android Q I guess.
But what password and how to change is a mystery. There are tons of articles out there which are related to "encrypt with lock screen password" but thats something different. We have this Option too in developer settings but it is not Set. So the way of our New encrypted device is still a Secret.
- Official twrp is the only one to decrypt the data correct. If you go to the "save logs" section in twrp and save it you can see the log and it says that it decrypts with Standard password. But I wasnt able to find out that this is. And as I stated before we dont use the lockscreen password to decrypt, I tried to change and disable it but guess what... I didn't change anything.
I hope we can figure out as a community what's exactly going on here.
THE PASSWORD IS:
"default_password"​
guhvanoh said:
Not a problem. If you view this in a web browser there is a button at the bottom left or right to report a post. Use that and ask for this thread to be moved.
Click to expand...
Click to collapse
Reported, thanks
sachin5555 said:
Hi bro I also facing same issue my problem is I m using orange fox recovery 10.0.1 version and when I flash miuiQ stable global with dfe it ask me to enter password when I boot to recovery don't know what happened. By the way is twrp official work perfectly????
Click to expand...
Click to collapse
I'm ussing the 3.3.0.0 and works perfectly...
So bro twrp official never give encryption error if I flash miuiQ using it right ?
Click to expand...
Click to collapse
In my case I have not had any problems.
I am currently using the global stable 11.0.4.0 QEJMIXM + TWRP 3.3.0.0 + Magisk 20.3
Fritzko said:
Hey there!
I have the same Situation here and I figured at least some points out:
- the Upgrade to Android 10 encrypted the data Partition. You can see that in in your phone settings under security and password. For some security reasons of Android Q I guess.
But what password and how to change is a mystery. There are tons of articles out there which are related to "encrypt with lock screen password" but thats something different. We have this Option too in developer settings but it is not Set. So the way of our New encrypted device is still a Secret.
Click to expand...
Click to collapse
I have checked what you say about ""encrypt with lock screen password" in developer settings and in my case it is disabled.
- Official twrp is the only one to decrypt the data correct. If you go to the "save logs" section in twrp and save it you can see the log and it says that it decrypts with Standard password. But I wasnt able to find out that this is. And as I stated before we dont use the lockscreen password to decrypt, I tried to change and disable it but guess what... I didn't change anything.
I hope we can figure out as a community what's exactly going on here.
Click to expand...
Click to collapse
Where can I find the logs you comment to check?
fraggy2 said:
THE PASSWORD IS:
"default_password"​
Click to expand...
Click to collapse
Seriously?
I will not be able to try it until tomorrow. The motherboard of my PC has said that it doesn't work anymore and I am waiting for the arrival of a new one.
Where can I find the logs you comment to check?
Click to expand...
Click to collapse
Go to Twrp > advanced > copy logs. They are saved on your sd card.
fraggy2 said:
THE PASSWORD IS:
"default_password"​
Click to expand...
Click to collapse
I tried wit "default_password" (without quotes) and don't work
Fritzko said:
Hey there!
- Official twrp is the only one to decrypt the data correct. If you go to the "save logs" section in twrp and save it you can see the log and it says that it decrypts with Standard password. But I wasnt able to find out that this is. And as I stated before we dont use the lockscreen password to decrypt, I tried to change and disable it but guess what... I didn't change anything.
Click to expand...
Click to collapse
I checked the TWRP logs and have you reason
Code:
I:Unmounting main partitions...
Successfully decrypted with default password.
I:Decrypt adopted storage starting
I:PageManager::LoadFileToBuffer loading filename: '/data/system/storage.xml' directly
I:successfully loaded storage.xml
Updating partition details...
I am using SHRP recovery for poco for 2 months now and I haven't faced any encryption problem (recovery asking for password). I would recommend you to try it buddy.
Champ16 said:
I am using SHRP recovery for poco for 2 months now and I haven't faced any encryption problem (recovery asking for password). I would recommend you to try it buddy.
Click to expand...
Click to collapse
If i flash it over twrp will it ask me to enter password?
sachin5555 said:
If i flash it over twrp will it ask me to enter password?
Click to expand...
Click to collapse
No
Champ16 said:
No
Click to expand...
Click to collapse
Done ! Thank u
Champ16 said:
I am using SHRP recovery for poco for 2 months now and I haven't faced any encryption problem (recovery asking for password). I would recommend you to try it buddy.
Click to expand...
Click to collapse
I don't think it works, but sure I will try it.
I have already tried everything I have been reading through many forums and I always get the same result.: the ****ing password
I have tried to deactivate the PIN, screen pattern, passwords, I have even logged off the Mi account and then I have tried to flash OFRP, PBRP and a TWRP mod and always, always ask me for password
I've tried booting on TWRP
1. Factory reset
2. Format data (not only wipe) (I answer "yes")
3. Reboot recovery
4. wipe cache, Dalvik / cache, Data and System
5 Install rom (miui_POCOF1Global_V11.0.4.0.QEJMIXM_74f88e6c8f_10.0.zip)
5. Flash twrp
6. Flash orange fox + DFE + magisk
7. Start rom and configure.
And without entering a PIN or blocking pattern, only gmail and Mi account and when returning to reboot in recovery it asks me again for a password.
SOLUTION:
I removed lockscreen password and flashed official TWRP.
Now it's decrypted successfully
The same kind of thing happened to me. I wish that I had seen this thread before. Lost all my data. ???
You can check it here
https://forum.xda-developers.com/poco-f1/help/miui-11-eu-android-10-encrypted-data-t4049421

How to Fix Anti Rollback

I flashed Mi 10 Indian with Xiaomi.eu Miui 12 beta. Now i want to back to Stock Miui 11 but when i use Mi Flash Tool Its give
'antirollback check error'. there is any way to back Miui 11 stock
rashmi0733 said:
I flashed Mi 10 Indian with Xiaomi.eu Miui 12 beta. Now i want to back to Stock Miui 11 but when i use Mi Flash Tool Its give
'antirollback check error'. there is any way to back Miui 11 stock
Click to expand...
Click to collapse
https://www.xda-developers.com/xiaomi-anti-rollback-protection-brick-phone/
Format phone viai TWRP, install any ROM you want!
head_djmusic said:
Format phone viai TWRP, install any ROM you want!
Click to expand...
Click to collapse
thank but i read some ware :if you have anti rollback protection than you should not install stock rom viai TWRP its hard brick your phone"
so i want to know you try this before and its 100% safe use TWRP
how to install xiaomi.eu on Indian Mi 10
rashmi0733 said:
thank but i read some ware :if you have anti rollback protection than you should not install stock rom viai TWRP its hard brick your phone"
so i want to know you try this before and its 100% safe use TWRP
Click to expand...
Click to collapse
Hi rashmi0733, can u explain me how to install xiaomi.eu on Indian Mi 10
How to install xiaomi.eu on Indian Mi 10
rashmi0733 said:
I flashed Mi 10 Indian with Xiaomi.eu Miui 12 beta. Now i want to back to Stock Miui 11 but when i use Mi Flash Tool Its give
'antirollback check error'. there is any way to back Miui 11 stock
Click to expand...
Click to collapse
How to install xiaomi.eu on Indian Mi 10
rashmi0733 said:
thank but i read some ware :if you have anti rollback protection than you should not install stock rom viai TWRP its hard brick your phone"
so i want to know you try this before and its 100% safe use TWRP
Click to expand...
Click to collapse
Hi.
Do it like this, install TWRP and then the operating system of your choice. There is also the question of how you could install the ROM without TWRP.
Hardbrick with TWRP, never, I don't think so.
I have now easily shot my device 20 times and put it on again and again, definitely shot 100 devices over 10,000 times over the years and never suffered a hard brick.
You can do it, otherwise the heroes will help you here. :highfive:
sudhakar.ksvn said:
Hi rashmi0733, can u explain me how to install xiaomi.eu on Indian Mi 10
Click to expand...
Click to collapse
Unlock Bootloader
flash TWRP
boot Twrp
format Data
copy rom on phone
install rom
reboot and enjoy new rom
Thank For all suggestion i found one way to back stock Miui 11 without twrp
its working now i installed miui 11 and lock bootloader again.
rashmi0733 said:
Thank For all suggestion i found one way to back stock Miui 11 without twrp
its working now i installed miui 11 and lock bootloader again.
Click to expand...
Click to collapse
Oh really nice!
Do you mind to share your solution?
I don't need it but it's the purpose of forum ....
Greetings
Failed to mount '/system_root'
rashmi0733 said:
Unlock Bootloader
flash TWRP
boot Twrp
format Data
copy rom on phone
install rom
reboot and enjoy new rom
Click to expand...
Click to collapse
thanks for ur reply, bur i am getting .....
Updater process ended with ERROR: 7
Failed to mount '/system_root' ( No such file or directory)
can u help me regarding this, what twrp version have u used
sudhakar.ksvn said:
thanks for ur reply, bur i am getting .....
Updater process ended with ERROR: 7
Failed to mount '/system_root' ( No such file or directory)
can u help me regarding this, what twrp version have u used
Click to expand...
Click to collapse
i Used this TWRP
https://androidfilehost.com/?fid=4349826312261728614
https://gsmhostingfiles.com/index.php?a=downloads&b=file&id=14217
sudhakar.ksvn said:
thanks for ur reply, bur i am getting .....
Updater process ended with ERROR: 7
Failed to mount '/system_root' ( No such file or directory)
can u help me regarding this, what twrp version have u used
Click to expand...
Click to collapse
Hi,
this happens because your system partition is "broken".
If you go to "Wipe" and select "Format Data" there it will delete all partitions and the system of your device.
Then you start again in the TWRP and connect the device via USB to a PC or via OTG to a stick on which you have the operating system of your choice and drag it to your device.
Then select the ZIP / OS in the TWRP under "Install" and have it installed. It also creates the new partitions that he could not find with you.
I wish you success:fingers-crossed:
Ner0o1 said:
Hi,
this happens because your system partition is "broken".
If you go to "Wipe" and select "Format Data" there it will delete all partitions and the system of your device.
Then you start again in the TWRP and connect the device via USB to a PC or via OTG to a stick on which you have the operating system of your choice and drag it to your device.
Then select the ZIP / OS in the TWRP under "Install" and have it installed. It also creates the new partitions that he could not find with you.
I wish you success:fingers-crossed:
Click to expand...
Click to collapse
Don't think format data wipes the system partition does it?
Unless Xiaomi have really changed things, data should be completely separate. Format data should wipe the internal storage only which includes cache partition.
Twrp can wipe system, but shouldn't do unless specifically chosen to do so via several steps, not a single button press.
fards said:
Don't think format data wipes the system partition does it?
Unless Xiaomi have really changed things, data should be completely separate. Format data should wipe the internal storage only which includes cache partition.
Twrp can wipe system, but shouldn't do unless specifically chosen to do so via several steps, not a single button press.
Click to expand...
Click to collapse
no data format dont touch system
Yes, of course not the whole system partition, sorry.
From German into English is sometimes not that easy.?
In this case, TWRP will of course only delete the data as it stands there.
Otherwise everyone will find a step by step guide for almost every device a thousand times, thanks to you. So it should be also possible for everyone here.
Best regards and thank you two.:highfive:
rashmi0733 said:
Unlock Bootloader
flash TWRP
boot Twrp
format Data
copy rom on phone
install rom
reboot and enjoy new rom
Click to expand...
Click to collapse
Thanks for ur reply .. now i am able to successfully install the .eu ROM on my Indian Mi10
rashmi0733 said:
Thank For all suggestion i found one way to back stock Miui 11 without twrp
its working now i installed miui 11 and lock bootloader again.
Click to expand...
Click to collapse
Hello rashmi0733 I am also stuck in the same situation can you help me how u rolled back the beta update. Please help
Arif shaikh said:
Hello rashmi0733 I am also stuck in the same situation can you help me how u rolled back the beta update. Please help
Click to expand...
Click to collapse
I also want to go back to stable ROM
Its very simple to bypass the Anti rollback on miflash, just download the fastboot version of the ROM you want to install, unzip it and you'll have to edit this file (flash_all.bat), with for instance note++. And you remove 5 or 6 lines that does not begin by FASTBOOT. You can't miss it.
You can close and save.
Afterwards, just flash that same file that you just edited, and no more anti rollback error!
A second tip that I have when you just can't install custom firmwares on the mi 10, just flash stock firmware with miflash, reboot and flash TWRP. Transfer your custom firmware to your phone, flash it and ONLY format data afterwards! It was the only way to get a custom firmware on my mi10. It's my 5th xiaomi device and never experienced something like this...tried all TWRP available for the mi 10, but only by doing this way, I was able to succesfully install xiaomi.eu.
Good luck!

Categories

Resources