Failed to decrypt data with the good password ! help ! - Android Q&A, Help & Troubleshooting

Hello,
Since 2 months my phone (redmi note 4 with twrp and miui 9 based on android 7.0) is encrypted without any problem.
Every boot or into twrp, phone ask password and accept it and decrypt data. Into andoid, I just use fingerprint to unlock mobile.
Yesterday, I reboot my phone into twrp and he prompt for password (normal procedure for decrypt data). I enter it and twrp say : "E: Decrypt took too long, killing process Failed to decrypt data"
I try to reboot and enter into android, and same problem. The phone does not accept password in order to decrypt data.
Ok probably I don't remember my password and make a mistake. I decide to search for my password into my keepass, and it's the same !
I got a twrp full backup, and into "/data/system/device_policies.xml" I can see length, uppercase,lowercase, letters, numeric,symbols,nonletter of my stored password. And do you know what, ALL IS CORRECT !
Why did my phone does not accept password ?
What can I do ?
Thanks
sorry for my bad english, it's not my native language.

neo_mat said:
Hello,
Since 2 months my phone (redmi note 4 with twrp and miui 9 based on android 7.0) is encrypted without any problem.
Every boot or into twrp, phone ask password and accept it and decrypt data. Into andoid, I just use fingerprint to unlock mobile.
Yesterday, I reboot my phone into twrp and he prompt for password (normal procedure for decrypt data). I enter it and twrp say : "E: Decrypt took too long, killing process Failed to decrypt data"
I try to reboot and enter into android, and same problem. The phone does not accept password in order to decrypt data.
Ok probably I don't remember my password and make a mistake. I decide to search for my password into my keepass, and it's the same !
I got a twrp full backup, and into "/data/system/device_policies.xml" I can see length, uppercase,lowercase, letters, numeric,symbols,nonletter of my stored password. And do you know what, ALL IS CORRECT !
Why did my phone does not accept password ?
What can I do ?
Thanks
sorry for my bad english, it's not my native language.
Click to expand...
Click to collapse
You have to used "Format Data" option in TWRP.
You'll lose everything on your Internal storage of course (music, photos, videos etc.)

Hello, It's what I do.
I wipe /data and consequenly internal sdcard. After that, I restore my old twrp's backup of /data partition. And surprise, I use my password and it's OK !
This demonstrate that my /data suddenly broken ! (encryption, data corruption...)
Just before wipe all data I make a dd image of userdata partition in case
I don't know if crypt process were broken into android.
Is there a way to decrypt with linux PC binary of img with my password ?

neo_mat said:
Is there a way to decrypt with linux PC binary of img with my password ?
Click to expand...
Click to collapse
You mean the encrypted DD image of your data partition?

Yes, I know the password. I want to try it into linux a recover my data

neo_mat said:
Yes, I know the password. I want to try it into linux a recover my data
Click to expand...
Click to collapse
I don't think you'll have the option to provide the password you set. It's probably not like an encrypted archive.
You can just try to mount the image and see if you can access it.
You could have just extracted it with tar if the backup wasn't an image!

Related

Twrp can't mount system, unable to decrypt data

My bootloader is unlocked and Twrp is installed. I flashed CM13 but was having issues with root so I ran "adb shell reboot disemmcwp" that made Adaway work but Titanium backup still would not uninstall system apps. Twrp says it can't dycrypt data and I am unable to move my TWRP backup off the device. I've formatted everything. I don't entirely understand the encryption, if I need encryption? Should I be having errors in Twrp or be able to mount system? I don't know if I did something wrong and what to do to fix it? I was hoping to figure this out before reflashing cm13.
mod please move to questions, sry
Not sure if this will fix your problem but I had the encryption issue when I flashed CM. When I set up my pin I unknowingly chose ask for pin when starting device. So TWRP asked for a password to decrypt. My pin did work in TWRP. I fixed it in the security settings. Does TWRP ask for a password?
Fixed it. I had choose a pin setting up CM. The fix for me was to hit cancel in Twrp when it asked for a pinand then format the data.

[Q] Doubts about android 8.1

Yesterday I installed a ROM (Unofficial Resurrection Remix) thanks to EndLess and it seemed great, really very good work with the system. But when I went to restore the original rom of the phone "TWRP" asks me for an unlock pattern, after putting it and restoring the original system image, I am ready to boot the system. The system starts well, but asks me for the same pattern to start the boot. Then the loading process continues and I get to the part of setting the unlock pattern to start Android. Here's my problem, the pattern I used is the same one that I used the previous 2 times and it does not work.
Therefore I have 4 questions:
1- Is it possible to delete the encryption of the phone and leave it as it was before installing Android 8.1?
2- Is it possible to access my previous system?
3- I noticed that this room does not come with root activated, is it possible to root the ROOM?
4- If I put a new unlock pattern, will the current one be overwritten in the encryption or will the phone simply not find a way to boot and I will have a beautiful paperweight?
Thanks in advance.
Please forgive my English, it is not my native language
brito9112 said:
Yesterday I installed a ROM (Unofficial Resurrection Remix) thanks to EndLess and it seemed great, really very good work with the system. But when I went to restore the original rom of the phone "TWRP" asks me for an unlock pattern, after putting it and restoring the original system image, I am ready to boot the system. The system starts well, but asks me for the same pattern to start the boot. Then the loading process continues and I get to the part of setting the unlock pattern to start Android. Here's my problem, the pattern I used is the same one that I used the previous 2 times and it does not work.
Therefore I have 4 questions:
1- Is it possible to delete the encryption of the phone and leave it as it was before installing Android 8.1?
2- Is it possible to access my previous system?
3- I noticed that this room does not come with root activated, is it possible to root the ROOM?
4- If I put a new unlock pattern, will the current one be overwritten in the encryption or will the phone simply not find a way to boot and I will have a beautiful paperweight?
Thanks in advance.
Please forgive my English, it is not my native language
Click to expand...
Click to collapse
As it seems that you encrypted your device somehow by chance.
1. Before installing any rom you have to format your data First. That'll Remove the pattern.
2. Accessing the old system depends upon your access. If you are now encrypted then no actually.
3. Yea just flash magisk zip and the rom will be rooted.
4. Expect an out of the world paper weight.
MyNameIsRage said:
As it seems that you encrypted your device somehow by chance.
1. Before installing any rom you have to format your data First. That'll Remove the pattern.
2. Accessing the old system depends upon your access. If you are now encrypted then no actually.
3. Yea just flash magisk zip and the rom will be rooted.
4. Expect an out of the world paper weight.
Click to expand...
Click to collapse
Thanks for the quick response, would you be so kind as to explain to me what do you mean by "format your data first"?
You mean to delete all the partitions of the phone and install everything from 0 ??
How am I supposed to do that? I have a save from the previous system, I told "TWRP" to save all the partitions in my phone. If I restore that backup, will my device be decrypted?
brito9112 said:
Thanks for the quick response, would you be so kind as to explain to me what do you mean by "format your data first"?
Click to expand...
Click to collapse
Boot to TWRP, and select "Format data". You will lose all your data, plus the contents of your internal SD - but the encryption will be gone. You should back up your internal SD (either to an external SD drive, or your PC, etc) before trying any of this. I hope you have backups of your data.
DarthJabba9 said:
Boot to TWRP, and select "Format data". You will lose all your data, plus the contents of your internal SD - but the encryption will be gone. You should back up your internal SD (either to an external SD drive, or your PC, etc) before trying any of this. I hope you have backups of your data.
Click to expand...
Click to collapse
Thanks for answering, i will try your method in a few minutes, by the way, with format you mean wipe data partition, right?
brito9112 said:
Thanks for answering, i will try your method in a few minutes, by the way, with format you mean wipe data partition, right?
Click to expand...
Click to collapse
When you select "wipe" on main menu. There will we two options at bottom. One will say "Format data" and another will say "Partition" select format data. It will open a new screen saying that format data will delete all the data and Remove encryption. Type yes and continue. However backup your data before doing this. Better copy the files using mtp from recovery or system.
MyNameIsRage said:
When you select "wipe" on main menu. There will we two options at bottom. One will say "Format data" and another will say "Partition" select format data. It will open a new screen saying that format data will delete all the data and Remove encryption. Type yes and continue. However backup your data before doing this. Better copy the files using mtp from recovery or system.
Click to expand...
Click to collapse
I saw that option later, thanks to all who help, my system was recover. The only strange thing was the lock pattern. I delete from /data/system/ this 2 files, "gatekeeper.password.key" and "gatekeeper.pattern.key". Use TWRP as file manager and my phone good as new.

Disable internal storage encryption without wipe data

Is there anything way that i can disable data encryption? Both TWRP and orange fox not allow me to install anything and asking for password, i tried both lock password and mi password but nothing. I am trying to root my phone, i also tried to make a patched boot image with magisk manager but not install button was showing up.Any solution?
Stock rom with miui global 10.3.1.0 version
tzagaritos said:
Is there anything way that i can disable data encryption? Both TWRP and orange fox not allow me to install anything and asking for password, i tried both lock password and mi password but nothing. I am trying to root my phone, i also tried to make a patched boot image with magisk manager but not install button was showing up.Any solution?
Stock rom with miui global 10.3.1.0 version
Click to expand...
Click to collapse
Don´t waste your time trying to decipher the password, they´re advanced algorithms that Android uses to make the Encryption-By-Default to protect data user not a personal password that can be easily decoded.
You can flash any zip using adb sideload through Advanced options in recovery, the problem would be trying to boot up due to AVB implementation, I never cared about format data when is needed so my important files I ever have on my external SDCard.
Some members refer that such recovery can decrypt data or not, this is not a problem by its own but the ability to boot. The simple way to decrypt data is formatting it.
As a side note decrypt data will be required just in some cases like when you unlocked for first time, when you are coming back to a Miui upgraded rom then to an AOSP one but most of custom roms based on Miui don´t have encryption like ROS, Xiaomi.eu or Mi-Globe.
SubwayChamp said:
Don´t waste your time trying to decipher the password, they´re advanced algorithms that Android uses to make the Encryption-By-Default to protect data user not a personal password that can be easily decoded.
You can flash any zip using adb sideload through Advanced options in recovery, the problem would be trying to boot up due to AVB implementation, I never cared about format data when is needed so my important files I ever have on my external SDCard.
Some members refer that such recovery can decrypt data or not, this is not a problem by its own but the ability to boot. The simple way to decrypt data is formatting it.
As a side note decrypt data will be required just in some cases like when you unlocked for first time, when you are coming back to a Miui upgraded rom then to an AOSP one but most of custom roms based on Miui don´t have encryption like ROS, Xiaomi.eu or Mi-Globe.
Click to expand...
Click to collapse
thanks a lot , i did not know that i could flash zip files in that way, you saved me thanks again
use the custom TWRP by wzsx150, decryption is working with that one https://forum.xda-developers.com/mi-8-Lite/development/mi-8-lite-twrp-t3850019
borg4571 said:
use the custom TWRP by wzsx150, decryption is working with that one https://forum.xda-developers.com/mi-8-Lite/development/mi-8-lite-twrp-t3850019
Click to expand...
Click to collapse
Is possible to send me the img file through Google drive or anything familiar;its a mess trying yo download from the Chinese site
I have Android pie

Unable to decrypt data.. Password not accepting.

Hi guys,
I was trying to flash POSP Android 10.. it was not booting me in.
So, i went back to my backup. But now i am not able to login as its saying my decrypt password is wrong.
I am not able to login to TWRP also, as again i am facing issue, since its asking for password.
I know i have to format the data but not sure as how to do it without access to TWRP.
Cheers!!!
press the back button then you can format data
Type as password --> default_password
install DFE and try
otherwise format data (you will lose everything in your internal storage )
Did you got pattern lock active before flashing POSP, if yes try the numbers associated with each dot of your pattern as password.

TWRP decrypt /data

Hello,
My P20 lite ended up with bootloop after one of the upgrades.
I care about the /data only
I've managed to flash TWRP, I can browse the filesystem with `adb`, phone is unlocked (FRP is locked I guess).
Unfortunately the /data which I want to recover is encrypted.
I was using the pattern lock screen
Is it possible to decrypt the data (I cannot find proper manuals, I don't want to enable/disable encryption)?
I have the lock pattern, just want to restore.
kiemlicz said:
Hello,
My P20 lite ended up with bootloop after one of the upgrades.
I care about the /data only
I've managed to flash TWRP, I can browse the filesystem with `adb`, phone is unlocked (FRP is locked I guess).
Unfortunately the /data which I want to recover is encrypted.
I was using the pattern lock screen
Is it possible to decrypt the data (I cannot find proper manuals, I don't want to enable/disable encryption)?
I have the lock pattern, just want to restore.
Click to expand...
Click to collapse
Hi, if you can access eRecovery, try the following:
https://forum.xda-developers.com/t/...locked-out-of-the-phone.4141543/post-83189467
Thanks, but as I said
```
My P20 lite ended up with bootloop after one of the upgrades.
```
eRecovery performs reboot.
I have my pattern it should be possible to decrypt the partition
kiemlicz said:
I have my pattern it should be possible to decrypt the partition
Click to expand...
Click to collapse
it has nothing to do with /data decryption. Btw, decrypting the /data section won't help you save data from the internal storage.
ok
So different approach: is it possible to flash this EMUI to some previous version?
What I want to achieve is to rollback the device to some previous working state.
If so will it cause data loss (I care only about user data: documents, pics, downloads)?
Thanks
kiemlicz said:
What I want to achieve is to rollback the device to some previous working state
Click to expand...
Click to collapse
This is only possible via the dload method or via HiSuite (for a lower version of android). Unfortunately, both methods will erase the internal storage.
So I presume that the data is effectively lost?
kiemlicz said:
So I presume that the data is effectively lost?
Click to expand...
Click to collapse
I can't say for sure, I don't hold this phone in my hand, but it is probable. Even if you get the files from your phone using some program, they will have a .enc extension and you won't open them.
That's a shame, thank you
No problem.

Categories

Resources