TWRP asking for password - Xiaomi Mi 9 Questions & Answers

Hey guys I'm on Xiaomi EU Rom and TWRP keeps asking me for a password whenever I boot into it I've tried formatting the data it works but then when I need to boot into the recovery again i need to format it again
Don't know what's causing this

Try using the pin number that is used to unlock your phone.

When you want to update the Rom, disable fingerprint et PIN. After, boot to recovery and no need to enter password.

Strykar said:
Try using the pin number that is used to unlock your phone.
Click to expand...
Click to collapse
Thank you so much man this actually worked, it decrypted the data and let me update the phone

CleverFogs said:
Thank you so much man this actually worked, it decrypted the data and let me update the phone
Click to expand...
Click to collapse
Yep, it works like designed. The moment you set a pin under android, the data gets encrypted and twrp will ask for that pin.

Related

[Q] Nexus 6 Won't Boot Into Recovery

Hello. Sorry if this issue already exists and I'm being negligent, but I have an interesting issue with TWRP. Whenever I try to boot to recovery, the screen stays at the teamwin splashscreen for a short time as it should, but then the device reboots normally and never allows me into the recovery. I've tried reflashing numerous older versions of TWRP via "fastboot flash recovery..." but the reboot still occurs. Just before this started happening I tried doing an "adb push..'" and that resulted in a permission denied. So I remounted using "mount -o rw,remount,rw /system" and the push succeeded. I'm pretty sure that this is at fault because I was able to get into recovery one time after playing with the writable and read only forms of the aforementioned command and wiping the cache via fastboot. Any ideas?
try deleting it first, via fastboot, then reflash it.
simms22 said:
try deleting it first, via fastboot, then reflash it.
Click to expand...
Click to collapse
I ran "fastboot erase recovery", reflashed TWRP, and the reboot still occured at the splashscreen.
It might be a long shot. Try and flash within Android using an app called Flashify.
https://play.google.com/store/apps/details?id=com.cgollner.flashify
Very simple app to use. :good:
Maverick-DBZ- said:
It might be a long shot. Try and flash within Android using an app called Flashify.
https://play.google.com/store/apps/details?id=com.cgollner.flashify
Very simply app to use. :good:
Click to expand...
Click to collapse
Good news. That actually worked. I am able to use TWRP now. There's just one problem though. It asks for a password to decrypt the data partition. I've never seen this before. Any way to work around it?
Astrophysicist789 said:
Good news. That actually worked. I am able to use TWRP now. There's just one problem though. It asks for a password to decrypt the data partition. I've never seen this before. Any way to work around it?
Click to expand...
Click to collapse
Yeah, enter your password.
Astrophysicist789 said:
Good news. That actually worked. I am able to use TWRP now. There's just one problem though. It asks for a password to decrypt the data partition. I've never seen this before. Any way to work around it?
Click to expand...
Click to collapse
Glad to hear it.
Sure, it's really simple, use your lock screen password. If you have a pattern lock you need to envision your pattern lock into numbers. The below example should help you out.
1 2 3
4 5 6
7 8 9
If you're still having problems, then just turn off pattern lock or use a regular numbered password. On the off chance what I said doesn't solve your problems, you can try one last thing.
Backup anything important on your phone before doing any of these steps below. Make sure lockscreen password is off. You can turn it back on once you've confirmed this worked.
1) Flash a modded stock boot image via Flashify, this will disable forced encryption.
2) Boot into bootloader and use fastboot format userdata
The command will wipe your phone to factory setting, so make sure you backed up! Flash a custom kernel after if you want.
Maverick-DBZ- said:
Glad to hear it.
Sure, it's really simple, use your lock screen password. If you have a pattern lock you need to envision your pattern lock into numbers. The below example should help you out.
1 2 3
4 5 6
7 8 9
Click to expand...
Click to collapse
I thought they got rid of this method and replaced it with something more pattern-lock like, in latest 2 versions?
danarama said:
I thought they got rid of this method and replaced it with something more pattern-lock like, in latest 2 versions?
Click to expand...
Click to collapse
It has been awhile since I've checked, so I had a look at the change logs and you're right, pattern lock was added in build 2.8.6.0. This should make it easier for @Astrophysicist789
Maverick-DBZ- said:
It has been awhile since I've checked, so I had a look at the change logs and you're right, pattern lock was added in build 2.8.6.0. This should make it easier for @Astrophysicist789
Click to expand...
Click to collapse
Further, if he hasn't set a lock, there should be a default TWRP one somewhere in the thread.

Encryption password help

Hello, I'm using official CM 13 on my Mi5 as my daily driver and I was very satisfied with it. I encrypted it with a pattern and the encryption was working fine. But today, I powered it on and suddenly instead of asking for a pattern, it asks for a password! I never used a password to lock or encrypt a device. How can I decrypt it? Is there some kind of defaut password? What could cause the password change? Or the only possible solution is just format data?
Note: TWRP also asks for a decryption password instead of the pattern.
You Need to format data, in wipe section.... Write Yes and After flash ROM.
By the way every dot on your pattern is a number, so u just need to figure out your password
Thank you, I tried to figure it out and it worked!
Davidkrch said:
Thank you, I tried to figure it out and it worked!
Click to expand...
Click to collapse
Cool! To definitely eliminate encryption just make a twrp back up, save it on your PC or USB. Format Data, and after restore your back up!! I was in your situation, now I can boot without password
Philb90 said:
Cool! To definitely eliminate encryption just make a twrp back up, save it on your PC or USB. Format Data, and after restore your back up!! I was in your situation, now I can boot without password
Click to expand...
Click to collapse
What should i bakckup? System? System image? Or what?

How to decrypt my OP3T?

is very annoying that whenever I reboot my phone or enter TWRP my phone asks me for code, I just restore my phone, clean flash a new ROM, but still it is asking me for the code, is there a way to get rid of this?
Thanks
Deleted
carlinleos said:
is very annoying that whenever I reboot my phone or enter TWRP my phone asks me for code, I just restore my phone, clean flash a new ROM, but still it is asking me for the code, is there a way to get rid of this?
Thanks
Click to expand...
Click to collapse
Are you using secured lockscreen like pin or password
If you are then you have to type that pin or password in there

Stuck With Secure Start-Up !

Hi Friends,
I setted-up secure start up ( i.e a pattern lock appear when booting the device) when i installed lineage os, but i soon got annoyed with it. My problem is I don't know how to turn it off.
SOLUTIONS tried:-
1. I checked Each and every setting on my phone to turn it off but couldn't found any on lineage os
2.I tried flashing even a different rom , Havoc OS but the secure start up pattern lock still persist
3.when setting up havoc os , i tried disabling it by clicking 'no' when havoc os startup asked to enable secure start up but nothing happened
And Now even my TWRP recovery has a pattern lock due this problem and Wiping my phone didn't solve it.
Any Help PLease????
Solved:
goto>fastboot mode (bootloader)>connect to pc with adb running>type in cmd>fastboot erase userdata
PreciousPulkit said:
Hi Friends,
I setted-up secure start up ( i.e a pattern lock appear when booting the device) when i installed lineage os, but i soon got annoyed with it. My problem is I don't know how to turn it off.
SOLUTIONS tried:-
1. I checked Each and every setting on my phone to turn it off but couldn't found any on lineage os
2.I tried flashing even a different rom , Havoc OS but the secure start up pattern lock still persist
3.when setting up havoc os , i tried disabling it by clicking 'no' when havoc os startup asked to enable secure start up but nothing happened
And Now even my TWRP recovery has a pattern lock due this problem and Wiping my phone didn't solve it.
Any Help PLease????
Click to expand...
Click to collapse
Some people can clear the password by setting a new password and selecting No for secure boot. But that has never worked for me.
See the discussion here https://forum.xda-developers.com/on...ageos-15-1-oneplus-3-3t-t3739169/post76890649
So, try that first and if it doesn't work, the only other option is to reformat the data partition. You'll lose everything in your internal storage, so back it up on external storage.
Sent from my OnePlus3T using XDA Labs
The only way to make it go away is to wipe your phone. Including the internal storage.
I was pissed when I found out.
BillGoss said:
Some people can clear the password by setting a new password and selecting No for secure boot. But that has never worked for me.
See the discussion here https://forum.xda-developers.com/on...ageos-15-1-oneplus-3-3t-t3739169/post76890649
So, try that first and if it doesn't work, the only other option is to reformat the data partition. You'll lose everything in your internal storage, so back it up on external storage.
Sent from my OnePlus3T using XDA Labs
Click to expand...
Click to collapse
Thanks For the reply But I have Tried wiping my phone, everything including internal storage but nothing seems to help. Any other solution?
ast00 said:
The only way to make it go away is to wipe your phone. Including the internal storage.
I was pissed when I found out.
Click to expand...
Click to collapse
Thanks For the reply But I have Tried wiping my phone, everything including internal storage but nothing seems to help. Any other solution?
PreciousPulkit said:
Thanks For the reply But I have Tried wiping my phone, everything including internal storage but nothing seems to help. Any other solution?
Click to expand...
Click to collapse
Plug your phone into a computer, go to bootloader mode and then use cmd to type "fastboot erase userdata".
This should decrypt your device. Be careful though, booting a stock ROM or anything with the stock kernel will auto encrypt it again without warning you.
ast00 said:
Be careful though, booting a stock ROM or anything with the stock kernel will auto encrypt it again without warning you.
Click to expand...
Click to collapse
But it won't set boot password up on its own though
przemcio510 said:
But it won't set boot password up on its own though
Click to expand...
Click to collapse
True. But I consider encryption itself a curse. There really should be a way to decrypt without wiping the phone.
ast00 said:
True. But I consider encryption itself a curse. There really should be a way to decrypt without wiping the phone.
Click to expand...
Click to collapse
Consider that if you lose your unencrypted phone or it gets stolen, a thief can read your data, access all your accounts and bypass FRP.
przemcio510 said:
Consider that if you lose your unencrypted phone or it gets stolen, a thief can read your data, access all your accounts and bypass FRP.
Click to expand...
Click to collapse
If it's rooted encryption doesn't help. Secure startup does, but it introduces so many problems with simple things like restoring a backup that it's not worth it for me.
And like I said, encryption alone doesn't make a difference as long as you TWRP.
ast00 said:
Secure startup does, but it introduces so many problems with simple things like restoring a backup that it's not worth it for me.
Click to expand...
Click to collapse
Never had such issues
ast00 said:
And like I said, encryption alone doesn't make a difference as long as you TWRP.
Click to expand...
Click to collapse
Actually encryption without secure startup doesn't make sense at all
przemcio510 said:
Never had such issues
Actually encryption without secure startup doesn't make sense at all
Click to expand...
Click to collapse
Which is exactly why forced encryption on every single damn phone is stupid. Ask the user on the first startup if they want this or not. If someone is too stupid to decide this for themselves after a simple, one paragraph explanation, they don't deserve a smartphone.
But the current implementation is unreliable and frustrating to anyone looking to modify the software on their phone. Granted, we are the minority.
ast00 said:
Plug your phone into a computer, go to bootloader mode and then use cmd to type "fastboot erase userdata".
This should decrypt your device. Be careful though, booting a stock ROM or anything with the stock kernel will auto encrypt it again without warning you.
Click to expand...
Click to collapse
Thanks This Worked Very well
ast00 said:
Plug your phone into a computer, go to bootloader mode and then use cmd to type "fastboot erase userdata".
This should decrypt your device. Be careful though, booting a stock ROM or anything with the stock kernel will auto encrypt it again without warning you.
Click to expand...
Click to collapse
Does this mean a Gapps ROM as stock would encrypt it too?
SchwarZWeiSs said:
Does this mean a Gapps ROM as stock would encrypt it too?
Click to expand...
Click to collapse
Not sure what you mean by gapps rom.
Stock Oxygen OS is the only thing that will encrypt it. You can use custom roms based on Oxygen OS though.
ast00 said:
Not sure what you mean by gapps rom.
Stock Oxygen OS is the only thing that will encrypt it. You can use custom roms based on Oxygen OS though.
Click to expand...
Click to collapse
Thanks!

TWRP locked

I tried installing a couple of custom ROMs in my Mi Max 2. When setting one of these ROMs, I set PIN lock to its screen.
After that, my TWRP is PIN locked as well. I must enter PIN to unlock my TWRP and to access it.
So the question is: How to unset TWRP lock? Is there in TWRP itself a command/option to unset TWRP lock?
(TWRP is official 3.2.3.0, ROM I using is EU Nougat.)
zost said:
I tried installing a couple of custom ROMs in my Mi Max 2. When setting one of these ROMs, I set PIN lock to its screen.
After that, my TWRP is PIN locked as well. I must enter PIN to unlock my TWRP and to access it.
So the question is: How to unset TWRP lock? Is there in TWRP itself a command/option to unset TWRP lock?
(TWRP is official 3.2.3.0, ROM I using is EU Nougat.)
Click to expand...
Click to collapse
maybe u can try and flash twrp again, see if it resets and removes that PIN. also try other twrp versions to see if that helps.
you set encryption > then the lock is the pin to encryption and that has nothing to do with twrp .. it just trying to decrypt storage to work on it
try using that pin
if it didn't work you can always factory reset from twrp and it will recognize the storage.. provided that nothing valuable on the storage
also if you can boot to the system i had a pretty bizzare bug the can be useful for you
i installed reachability cursor app on xtended rom and force closing the app makes it lose the accessibility permission
after enabling it for the second time freezes the device and then if you force restart with power long press it stops asking for the code in twrp and while booting..
maybe specific to the rom but worth a shot if that's your case
jbmc83 said:
maybe u can try and flash twrp again, see if it resets and removes that PIN. also try other twrp versions to see if that helps.
Click to expand...
Click to collapse
I tried flashing same TWRP again as well as almost dozen of other TWRP versions for Oxygen. Nothing changed, I still must enter PIN password when entering TWRP and the same password when booting into system (from TWRP or from phone turned off).
kalawy said:
you set encryption > then the lock is the pin to encryption and that has nothing to do with twrp .. it just trying to decrypt storage to work on it
try using that pin
if it didn't work you can always factory reset from twrp and it will recognize the storage.. provided that nothing valuable on the storage
also if you can boot to the system i had a pretty bizzare bug the can be useful for you
i installed reachability cursor app on xtended rom and force closing the app makes it lose the accessibility permission
after enabling it for the second time freezes the device and then if you force restart with power long press it stops asking for the code in twrp and while booting..
maybe specific to the rom but worth a shot if that's your case
Click to expand...
Click to collapse
I must enter same PIN password when booting into TWRP and when booting into system (from a) TWRP, or b) from phone turned off, or c) after resetting the phone when in system).
It is needless to say that phone screen is not locked in any way - by PIN/phrase password or by fingerprint. That leads me to conclusion that something should be (re)set/changed in TWRP itself.
Factory reset in TWRP didnot help. I will try to repeat the trick with xtended ROM and reachability cursor app.
you need perform format data
zost said:
I must enter same PIN password when booting into TWRP and when booting into system (from a) TWRP, or b) from phone turned off, or c) after resetting the phone when in system).
It is needless to say that phone screen is not locked in any way - by PIN/phrase password or by fingerprint. That leads me to conclusion that something should be (re)set/changed in TWRP itself.
Factory reset in TWRP didnot help. I will try to repeat the trick with xtended ROM and reachability cursor app.
Click to expand...
Click to collapse
i wonder what will happen if you set a new pin in the current rom you running and made it ask for it at boot
then removed it?!
Or you may try this https://forum.xda-developers.com/doogee-mix/how-to/fixed-how-to-remove-data-encryption-twrp-t3757595
rino64a said:
you need perform format data
Click to expand...
Click to collapse
Thank you. I will try that tomorrow.
kalawy said:
i wonder what will happen if you set a new pin in the current rom you running and made it ask for it at boot
then removed it?!
Click to expand...
Click to collapse
"...and made it ask for it at boot" - I already tried that. EU ROM has the option to PIN lock the screen, but it hasnot the option to ask a PIN at boot. So with EU ROM, at boot it will ask for same PIN as for the TWRP an after a boot it will ask for screen PIN as set in EU ROM.
zost said:
"...and made it ask for it at boot" - I already tried that. EU ROM has the option to PIN lock the screen, but it hasnot the option to ask a PIN at boot. So with EU ROM, at boot it will ask for same PIN as for the TWRP an after a boot it will ask for screen PIN as set in EU ROM.
Click to expand...
Click to collapse
as far as i can remember it was present in mi-globe and mi globe is the same as EU
it's there .. maybe in another place
Please post a screenshot or just shoot your screen.
P.S. You should ask in
"Xiaomi Mi Max 2 Questions & Answers"
or
"Xiaomi Mi Max 2 Guides, News, & Discussion" .

Categories

Resources