TWRP Decrypt password - Redmi K20 / Xiaomi Mi 9T Questions & Answers

Hi i have successfully installed EU rom last week, now I wanted to root my phone, but when i enter twrp its asking me for password to decrypt but i never set any password for that. Any ideas? I tried my PIN but it doesnt work. I don't want more format data...
I have last twrp from official site

L3v1X said:
Hi i have successfully installed EU rom last week, now I wanted to root my phone, but when i enter twrp its asking me for password to decrypt but i never set any password for that. Any ideas? I tried my PIN but it doesnt work. I don't want more format data...
I have last twrp from official site
Click to expand...
Click to collapse
It works perfectly with your pin/password you use in Android for unlocking the screen. It can also work with your pattern for unlocking the screen in Android, if you use ir.
Make sure to use the latest official TWRP 3.5.1_9-0
If neccessary, reset your pin/password in Android, Settings
But if you switched the ROM - you HAD to Format data

ill try reset pin
EDIT: I used pattern lock and now it works

zgfg said:
It works perfectly with your pin/password you use in Android for unlocking the screen. It can also work with your pattern for unlocking the screen in Android, if you use ir.
Make sure to use the latest official TWRP 3.5.1_9-0
If neccessary, reset your pin/password in Android, Settings
But if you switched the ROM - you HAD to Format data
Click to expand...
Click to collapse
Hi ,
I was using PE rom , but it was stuck on "NO OS installed".
So i tried flashing another rom and now it doesn't accept my decryption pattern.
Any solution except formatting data ?
Please help.

altafharsh60 said:
Hi ,
I was using PE rom , but it was stuck on "NO OS installed".
So i tried flashing another rom and now it doesn't accept my decryption pattern.
Any solution except formatting data ?
Please help.
Click to expand...
Click to collapse
When you change a ROM, you MUST Format Data (mot Wipe Data)
But your problem might be also something else, wrong flashing ROM, who knows (there are guudes how to do that - seems people don't find them and don't read, because the guide must definitely say about Formatting Data, hence it wouldn't be later questions about - unfortunately, common issue)

Related

[Q] How to enable Fingerprint Scanner with full device encryption??

Hi,
I bought the Samsung Galaxy S5 and the fingerprint reader works reasonably well (as in it works, nothing in comparison to apple though, so don't buy it for the fingerprint reader ) for unlocking the screen...
However its a work requirement that my phone has full device encryption, as phones are regularly stolen where I travel.... it seems when I enable encryption I lose the ability to use the fingerprint reader to unlock the phone .... I bought this hoping that I could avoid having to type in my complex password just to unlock the screen, as I got so tired of doing that with my S2
Is there any mods to enable finger print reader screen unlock + full device encryption at boot time for the Galaxy S5 yet? ... I saw some references to pattern unlock / pin with device encryption... but I would think the fingerprint reader is different...
Thanks!
S5 Full disk encryption with fingerprint unlock
I also have this question. I believe on the Nexus 5 it at leasts lets you use face unlock with full device encryption. And I read on one article that you should be able to do this but i do not think the author actually tried this. I will say from my own personal experience that you can infact decrypt the device after encrypting it without doing a complete wipe of the device and you can restore the use of fingerprints to unlock your phone. It seems like for security minded people this would be a great feature but if it is unable to be used with full device encryption it seems a little pointless to me. Being forced to use a PIN or password to use encryption is a big pain point for android users who want some type of security.
Yes I can't believe that no one has really complained about this yet - but I guess encryption isn't' that important to people as I imagined
androidpleb said:
Yes I can't believe that no one has really complained about this yet - but I guess encryption isn't' that important to people as I imagined
Click to expand...
Click to collapse
I am having the same pain, as I use my S5 for BYOD.
It makes no sense when you can use fingerprint to make payments with paypal but not unlocking the phone when it is encrypted.
Hope Samsung can enable this feature in next update.
I'd like this too.. as well as, the iPhone has a cydia app (that a friend of mine showed me), that you can basically disable the power button from turning off the phone while it is fingerprint locked. That would definately be nice to have on the S5 (since it's done through an app). That would have stopped the person who stole my wife's S4 from turning it off when it was blasting the locator ring at them!
sorphin said:
I'd like this too.. as well as, the iPhone has a cydia app (that a friend of mine showed me), that you can basically disable the power button from turning off the phone while it is fingerprint locked. That would definately be nice to have on the S5 (since it's done through an app). That would have stopped the person who stole my wife's S4 from turning it off when it was blasting the locator ring at them!
Click to expand...
Click to collapse
I can't believe that the fingerprint sensor can't be used if encryption is enabled whatsoever. I could understand the iPhone model, requiring a pin before a fingerprint can be used, but by disabling fingerprint lockscreen, boot unlock, and SD unlock, the fingerprint sensor is now wholly useless for convenience.
It's too trivial to extract data from an unencrypted Android. By not supporting encryption with a measure of covenieve, I don't see the point in including a fingerprint sensor whatsoever given the current software limitations.
Please, someone, figure out what sqlite/settings need to be changed so we can make decent use of our phones fingerprint sensor.
After some experiments, i found out a procedure to enable FDE and fingerprint lockscreen. Root is required (or at least I guess, I didn't try with a non-rooted system...).
These are the steps:
1) set up fingerprint lockscreen
2) with a root explorer, go to /data/system folder, and backup locksettings.db, locksettings.db-shm and locksettings.db-wal to sd card
3) set up password lockscreen
4) encrypt the device
5) when encryption is done, restore the backed-up files to /data/system: you should have fingerprint lockscreen again (no reboot needed, just turn the screen off, and magically the password should be vanished )
CAVEAT 1: with my system configuration, I wasn't able to encrypt the device directly: the encryption procedure started, but after reboot nothing happened, the device just booted normally. I don't know the exact reason, in some forums they suppose that it happens on kitkat when the device is rooted. I was able to bypass the problem only adding these steps to the procedure:
...
3b) with TWRP, backup the /system partition, and restore the stock non-rooted /system
4) encrypt the device
4b) restore the original rooted /system partition
...
I don't know if steps 3b) and 4b) are always necessary, let me know...
If you need these steps, don't worry if before restoring your custom /system partition the encryption password isn't recognized, just restore the partition and all will work fine
CAVEAT 2: once encrypted, I didn't find a way to unencrypt the device, because the unencrypt ion procedure starts, but after reboot the device is still encrypted, similar to what described in caveat 1. I tried to replace the /system partition with the stock one, but the encryption password was no longer recognized.
CAVEAT 3: the current TWRP (2.7.1) isn't able to mount S5 encrypted data partition, and restoring an image made with online nandroid backup doesn't seem to work either. So, if you want to make an image of your phone (and I suggest to do it ), do it before encryption
Boot Loop
fabiokino said:
After some experiments, i found out a procedure to enable FDE and fingerprint lockscreen. Root is required (or at least I guess, I didn't try with a non-rooted system...).
These are the steps:
1) set up fingerprint lockscreen
2) with a root explorer, go to /data/system folder, and backup locksettings.db, locksettings.db-shm and locksettings.db-wal to sd card
3) set up password lockscreen
4) encrypt the device
5) when encryption is done, restore the backed-up files to /data/system: you should have fingerprint lockscreen again (no reboot needed, just turn the screen off, and magically the password should be vanished )
CAVEAT 1: with my system configuration, I wasn't able to encrypt the device directly: the encryption procedure started, but after reboot nothing happened, the device just booted normally. I don't know the exact reason, in some forums they suppose that it happens on kitkat when the device is rooted. I was able to bypass the problem only adding these steps to the procedure:
...
3b) with TWRP, backup the /system partition, and restore the stock non-rooted /system
4) encrypt the device
4b) restore the original rooted /system partition
...
I don't know if steps 3b) and 4b) are always necessary, let me know...
If you need these steps, don't worry if before restoring your custom /system partition the encryption password isn't recognized, just restore the partition and all will work fine
CAVEAT 2: once encrypted, I didn't find a way to unencrypt the device, because the unencrypt ion procedure starts, but after reboot the device is still encrypted, similar to what described in caveat 1. I tried to replace the /system partition with the stock one, but the encryption password was no longer recognized.
CAVEAT 3: the current TWRP (2.7.1) isn't able to mount S5 encrypted data partition, and restoring an image made with online nandroid backup doesn't seem to work either. So, if you want to make an image of your phone (and I suggest to do it ), do it before encryption
Click to expand...
Click to collapse
I get samsung boot loop using the above instructions
Pierreseoul said:
I get samsung boot loop using the above instructions
Click to expand...
Click to collapse
Hi guys! Did someone try this solution? I unfortunately have the same issue and unlock my device each time make me crazy!
Thanks in advance.
Same problem
I purchased a Galaxy S5 and I have the same problem, unfortunately I cannot root my phone due to security policies in my company. :crying:
I hope Samsung will solve the issue. :fingers-crossed:
Have anyone contacted to Samsung Support Center?
Pierreseoul said:
I get samsung boot loop using the above instructions
Click to expand...
Click to collapse
What is the consequence of boot loop if you are using stock boot loader? Odin mode required to recover? Something less drastic? What device model are you using?
I found a possible solution that involves deactivating SuperSU and running encryption from there. Still investigating. I am thinking that the solution from @fabiokino will work in this case too.
I'm curious about this aswell.
Doesn't anyone know a working solution?...
It is really frustrating the very least. I can't believe there isn't a way (or if there is, a guide) to do this (with or without root access).
I have also heard it is doable on the Note 4. See this post for example http://forum.xda-developers.com/showpost.php?p=57103664&postcount=7.
I just flashed the stock Lollipop ROM and guess what: It works!!
Samsung finally did it. No tweaking needed and it also works without root access.
How?
healpowah said:
I just flashed the stock Lollipop ROM and guess what: It works!!
Samsung finally did it. No tweaking needed and it also works without root access.
Click to expand...
Click to collapse
Can you explain how please? I'm on stock lollipop as well and cannot use fingerprint scanner with FDE. Wondering if there's a process to it?
Thanks!
healpowah said:
I just flashed the stock Lollipop ROM and guess what: It works!!
Samsung finally did it. No tweaking needed and it also works without root access.
Click to expand...
Click to collapse
Nice to see this, hope it will work on my Galaxy tab S too
Did you see this?
https://www.jethrocarr.com/2013/12/29/encrypting-disk-on-android-4/
GermanDoerksen said:
Can you explain how please? I'm on stock lollipop as well and cannot use fingerprint scanner with FDE. Wondering if there's a process to it?
Thanks!
Click to expand...
Click to collapse
Unluckily the trick showed in the previous link only encrytps the main device and not the micro SD
Joker87 said:
Unluckily the trick showed in the previous link only encrytps the main device and not the micro SD
Click to expand...
Click to collapse
Well for me that really wouldn't be a problem. I don't have an SD card so I'm okay with just FDE. Thing is I really really don't want to root my phone... No particular reason other than every older android device I've done it on always ends up slow and buggy after a few months use until I reflash with stock ROM. I would like my phone to stay buttery smooth for once..
GermanDoerksen said:
Well for me that really wouldn't be a problem. I don't have an SD card so I'm okay with just FDE. Thing is I really really don't want to root my phone... No particular reason other than every older android device I've done it on always ends up slow and buggy after a few months use until I reflash with stock ROM. I would like my phone to stay buttery smooth for once..
Click to expand...
Click to collapse
You could root then unroot it after you have encrypted it
Joker87 said:
You could root then unroot it after you have encrypted it
Click to expand...
Click to collapse
you're right... plus it's not really the "rooting" process that makes it slow, it's installing another ROM. Having a rooted phone doesn't necessarily have any performance impact... just opens up a few things for me. Interesting. Thanks! Unfortunately I've already encrypted so now I have to find that thread about how to decrypt lol.
Thanks!

[SOLVED] - Moto G4 Plus - Encrpytion PIN/PATTERN/PASSWORD Problem

Hi all,
I have encrypted my device and using PATTERN as the security. I do restart device once in a week and it asks encryption pattern to start Android. Today when i restarted, it asked me PASSWORD instead of PATTERN. I tried Google password here but it does not work. I dont understand y its asking for PASSWORD when i have selected PATTERN.
I cannot start my device now. I cannot afford to factory reset as the data is imp to me
Please help/advice/guide.
SOLUTION - http://forum.xda-developers.com/moto-g4-plus/help/phone-password-instead-pattern-solution-t3424457
Guys, Do not encrypt your phone. Motorola dont have any resolution for this problem.
Infact their Engineer told there is no such option which enables pattern/password at the boot up (Can u believe it?). They have such ppl on their support.
My only options are:
1. Delete all data
2. Install custom recovery to access encrypted data. But i believe that will void my warranty.
If anybody has any other solution, please advise.
Solved it
Guys i have solved the issue
Saved my data too. no need for custom recovery.
Fir3lordZuk0 said:
Guys i have solved the issue
Saved my data too. no need for custom recovery.
Click to expand...
Click to collapse
how didyou? i have same problem, my moto g4 plus is locked, and i cant afford to delete data, so what you did? please guide me too.
losthopelessly said:
how didyou? i have same problem, my moto g4 plus is locked, and i cant afford to delete data, so what you did? please guide me too.
Click to expand...
Click to collapse
@losthopelessly
follow these steps
http://forum.xda-developers.com/moto-g4-plus/help/phone-password-instead-pattern-solution-t3424457
@losthopelessly
Did it work?
Fir3lordZuk0 said:
@losthopelessly
Did it work?
Click to expand...
Click to collapse
no bro my problem is bit different, my niece locked the phone with pincode only which she forgot, now phone is locked for many days, though internet is on but usb debugging disabled, i cant find any way to unlock my phone except to factory reset :[
if you have any solution then do inform.

forgot pattern and stuck

i forgot the pattern of my xiaomi and now im stuck in ''to launch android write the pattern''
is there a way to avoid losing my data? android device manager isnt detecting the phone
most likely not. As far as I know AndroidOne devices are encrypted by default and without the pattern you can not decrypt the data.
I 'm facing the same issue. Could you tell me how did you get over it? Please somebody reply fast.
https://forum.xda-developers.com/showpost.php?p=38147605&postcount=72
You need to unlock your bootloader and boot in twrp
Remove pattern lock by boot in TWRP and remove all security and patterns with the TWRP file manager.
Localhorst86 said:
most likely not. As far as I know AndroidOne devices are encrypted by default and without the pattern you can not decrypt the data.
Click to expand...
Click to collapse
This is correct. If it shows "To start Android..." on boot, your phone is encrypted with full disk encryption, and the only way to decrypt is to enter the correct pattern.
There is however a scenario which had occurred when I re-encrypted the phone by changing the password (which I believe didn't work as Magisk was installed, or possibly another reason), where even if the correct password was entered, Android would not accept it. In this case, try entering the password or pattern in TWRP. If it works, backup the data partition, as well as /sdcard separately, then erase it to remove the password and then restore the backup.

Question about wiping with twrp, dont know lock code

Hi, I'm trying to get my phone back. I lost my phones password that is used to unlock the phone.
I dont know my google account im using on the phone either. Yes this is my phone.
I dont want to get locked out with google frp either
If i put twrp on and do a factory wipe, will i still need the pin?
Also, my phone doesn't need the pin to boot. thanks in advance
nebula37 said:
Hi, I'm trying to get my phone back. I lost my phones password that is used to unlock the phone.
I dont know my google account im using on the phone either. Yes this is my phone.
I dont want to get locked out with google frp either
If i put twrp on and do a factory wipe, will i still need the pin?
Also, my phone doesn't need the pin to boot. thanks in advance
Click to expand...
Click to collapse
No you won't need a pin in twrp if you have not encrypted the device..no you won't need pin to boot, but frp might get you..not sure how that works, I also feel like there are files you can delete through twrp to remove lock code, someone else will have to confirm this though, just something I heard
thanks but its not a concern now. I was on latest official ota update, flashed twrp but cant get lineage, or any custom rom to fully boot. It just gets to the logo screen and wont go any further. I have not used my moto a while.
nebula37 said:
Hi, I'm trying to get my phone back. I lost my phones password that is used to unlock the phone.
I dont know my google account im using on the phone either. Yes this is my phone.
I dont want to get locked out with google frp either
If i put twrp on and do a factory wipe, will i still need the pin?
Click to expand...
Click to collapse
FRP is disabled on unlocked bootloader.
PIN can be deleted with twrp's file manager.
LOS - you flashed wrong build. You need custom rom for N Modem. LOS by Hashbang works on N modem.

Help: Removing PIN from TWRP and System

Hello,
I need help: my note 7 asks me for a PIN when I start the system (Android) and also when I enter TWRP, and I want to remove these PIN requests.
In the 1st rom change (from Miui to pure Android - HavocOS), I did, in the following order:
-format data
-Wipe: system, dalvick, cache and date
When the system started for the first time, I configured the fingerprint sensor together with a 4 digit PIN and it is this PIN that I have to put in the system and the TWRP.
I tested other roms (Bootleggers, crDroid) and it happens the same. I've tried other recoverys, including OrangeFox and the same happens.
I've also tried reinstalling the rom by doing only format data (not doing Wipes) and doing the same.
I received the device with the rom: MIUI 10.3 Stable (10.3.5.0) [PFGMIXM]
The model name is: M1901F7G.
The Android version: 9 PKQ1. 180904.001
What else can I do?
Try not to setup pin after flashing rom and see bro...
I have managed to solve half of the problem: it is no longer encrypted and in TWRP it no longer asks for any PIN.
But on Android I do not accept the PIN that I set up along with the digital print, tell me that it is wrong.
Now the problem is to use PIN + fingerprint. I set up a PIN and when using that same PIN, tell me the PIN is wrong.
If you do not configure PIN, I can not use it without problems, but I lose access to the use of the print sensor
I rooted my device and installed magisk on the stock rom miui 10.3.5 for redmi note 7 will i receive ota updates?
and if not in order to flash newer miui versions of the rom do I need to flash vb meta?
P.Rabbit said:
I have managed to solve half of the problem: it is no longer encrypted and in TWRP it no longer asks for any PIN.
But on Android I do not accept the PIN that I set up along with the digital print, tell me that it is wrong.
Now the problem is to use PIN + fingerprint. I set up a PIN and when using that same PIN, tell me the PIN is wrong.
If you do not configure PIN, I can not use it without problems, but I lose access to the use of the print sensor
Click to expand...
Click to collapse
i am in the same situation man, i don't understand what is the problem and what is wrong...
In my case it was bad configuration, because I set up safe boot and this way I mistakenly assumed that this was related to encryption, but the error was only mine.
Check if you have set safe boot. With safe, always-on boot (a pin, a pattern or a password) every system boot and every time you enter TWRP.
Sorry my English.

Categories

Resources