TWRP asking for password to decrypt data partition

dwl99

Senior Member
Sep 22, 2008
753
87
0
My Mi 8 Lite had stock, rooted (Magisk) MIUI Oreo and I dirty flashed MIUI Pie with TWRP 3.2.3. It booted up again with no problems and everything works but when I boot into recovery it now asks for a password to decrypt the data partition. Needless to say, the PIN for unlocking the screen is not accepted by TWRP. I'm hoping I won't need to wipe the data partition to fix this. Any ideas?

Thanks
 

dwl99

Senior Member
Sep 22, 2008
753
87
0
If you are using the wzsx150 TWRP, notice that versions 1003/1203 are for Oreo only. You need to upgrade to versions 0121, 0212 or 0330 for Pie.
Thanks a million, that fixed the problem. This information should be made available on the existing TWRP posts. I had a job finding the updated recoveries to download but came across a Google Drive folder that someone had posted https://drive.google.com/drive/folders/1780TJvn-ZHPBtgDdNjrN8i9YRlqPy38v - I went with the 0330 version which seems to be working fine.
 

vagoybostero

Senior Member
Mar 1, 2012
150
40
0
Thanks a million, that fixed the problem. This information should be made available on the existing TWRP posts. I had a job finding the updated recoveries to download but came across a Google Drive folder that someone had posted https://drive.google.com/drive/folders/1780TJvn-ZHPBtgDdNjrN8i9YRlqPy38v - I went with the 0330 version which seems to be working fine.
I had the same problem (TWRP asking for password to decrypt data partition) and I have the 1003 version. So I am going to flash 0121, 0212 or 0330. Which do you recommend?
 

cidxtc

Senior Member
Mar 31, 2016
779
294
63
When I flashed 0330 the touchscreen is not working in twrp. How do I fix this?
This device has 3 different touchscreen panels (that I know of) and one of them is not fully supported. Which seems to be the one you have. To fix the problem the recovery needs some additions on source and then compiled. I suggest connecting to a pc and copying what you need off the internal storage and then use a recovery that your touchscreen works with and format the data partition using the option that asks you to type yes. This will remove encryption and allow you to access data no matter what recovery you use.
 
Last edited:
  • Like
Reactions: obvious

redblack68

Member
May 15, 2017
18
0
0
I tried to flash this TWRP several times : TWRP-3.2.3-1003-XIAOMI8LITE-CN-wzsx150.img
but asks me for the password to decrypt the partition
later I read this trhead and tried to flash 0330 but now it returns the following error: Sending 'recovery' (63448 KB) FAILED (Write to device failed (Invalid argument))
What is the problem ?
Thank you
 

cidxtc

Senior Member
Mar 31, 2016
779
294
63
I tried to flash this TWRP several times : TWRP-3.2.3-1003-XIAOMI8LITE-CN-wzsx150.img
but asks me for the password to decrypt the partition
later I read this trhead and tried to flash 0330 but now it returns the following error: Sending 'recovery' (63448 KB) FAILED (Write to device failed (Invalid argument))
What is the problem ?
Thank you
Looks like you typed something wrong
 

cidxtc

Senior Member
Mar 31, 2016
779
294
63
it seems that adb / fastboot command no works
not even FASTBOOT ERASE CACHE
with FASTBOOT DEVICES the phone is seen
the phone runs normally
do I do a factory reset?
Do you have root access in rom? If so you can flash rhe recovery image with an app called flashify. You can use the free version from playstore.
 
  • Like
Reactions: redblack68

redblack68

Member
May 15, 2017
18
0
0
Your bootloader was unlocked with mi unlocker?
Yes exactly
but now if i turn on my phone in fastboot, when i give an adb / fastboot command, the screen goes black and in the top left there is a very very small image " any key to shutdown". The same if i connect my phone in fastboot mode with mi unlocker