Unable to decrypt data - Xiaomi Redmi Note 7 Questions & Answers

Hello,
So I tried to install LineageOS 17 (Android 10). And there were errors. So I decided to return to RR. And what i see is that the data is encrypted and I have to format my phone. When I click on this button phone restarts to recovery(orange fox) where I have to enter PIN. And everything is fine but in logs I see this:
Failed to encrypt data.
Unable to decrypt with default password. You may need to perform a Format Data.
Unable to mount storage
I can't use my device now. After booting to system same button and text appears. Please help
Update.
When I was writing this thread I couldn't find option Format Data but when I was searching in the recovery I finnaly found it. Now everything works fine

I don't think you can flash anything without first formatting the storage . This happened for me on Redmi6pro (sakura). That was the only option left for me that time.

hope you had a back up otherwise you will lost your files.
if you had a pin to unlock your phone put that ping in the box asking for decrypt the phone. if that doesn't work you may need to format data and reinstall.
If that's the case, restart into recovery (power+vol_up)
-go to manage partitions, format data partition.
-restart to recovery
-full wipe (data, dalvik, cache system)
-flash rom (can be the same) after a format and full wipe should work well i had lineage and was great.
-restart to recovery
- flash gapps and magisk if you like.
-restart into system.
Hope you get luck.,

Mr.Dogerrr said:
Failed to encrypt data.
Unable to decrypt with default password. You may need to perform a Format Data.
Unable to mount storage
Click to expand...
Click to collapse
If you this exact text, then you can pretty much say goodbye to the data from internal storage. At this point, there no way to rescue the files... Sadly, had the exact thing happen to me & I lost all my stuff

Related

[Q] Factory Data Reset on Encrypted Phone: Trials and Tribulations

Hello All!
I've owned every Samsung Galaxy and both Nexus 7's and have successfully done all the basics (rooting, CWM, custom ROM) using Odin, ADB, and Fastboot. I've reached a problem that has stymied me, and Googling has thus far revealed no solutions.
Hopefully this question isn't as stupid as it seems to me.
Background
My AT&T Galaxy S4 has been rooted, has CWM recovery installed, and is running SlimBean's version of Android 4.3.
The phone was encrypted using the ROM's encryption (Settings >> Security >> Encrypt Phone). There is no decrypt option.
I installed the latest version of the ROM without realising that CWM's "Wipe Data/Factory Reset" option yielded errors due to the phone's encryption. Very stupid of me. Now, the phone works if I can get it to boot, but getting it to boot is a huge hassle that involves wiping /cache and re-installing the ROM every time.
Problem
I need to wipe data/factory reset and re-install the ROM in order to prevent the reboot problem from constantly occurring. I cannot do this from CWM due to the encryption of the phone.
Things I have tried:
1) Using ADB to mount and format system, data, cache
2) Using recovery to mount and format system, data, cache
For both, mounting and formatting system and cache were successful. Mounting and formatting data was unsuccessful.
3) Rebooting into Fasboot and using fastboot -w
For this, my Windows PC and my friend's Mac didn't recognise the device.
4) Using AirDroid to wipe data remotely
Using avast! to wipe data remotely
Using Android Device Manager to wipe data remotely
Asking my Exchange Admin at work to wipe the data remotely (maybe?)
None of these worked. The phone just rebooted like normal.
Basically
1. How can I wipe data/factory reset my encrypted phone?
2. How can I format the /data on my encrypted phone? Is this the only way to achieve (1)?
3. If I borrow a friend's Mac, and install Android SDK, would fastboot -w work on an encrypted phone?
Thanks bunches,
--Abhinav
abhinavk said:
Hello All!
I've owned every Samsung Galaxy and both Nexus 7's and have successfully done all the basics (rooting, CWM, custom ROM) using Odin, ADB, and Fastboot. I've reached a problem that has stymied me, and Googling has thus far revealed no solutions.
Hopefully this question isn't as stupid as it seems to me.
Background
My AT&T Galaxy S4 has been rooted, has CWM recovery installed, and is running SlimBean's version of Android 4.3.
The phone was encrypted using the ROM's encryption (Settings >> Security >> Encrypt Phone). There is no decrypt option.
I installed the latest version of the ROM without realising that CWM's "Wipe Data/Factory Reset" option yielded errors due to the phone's encryption. Very stupid of me. Now, the phone works if I can get it to boot, but getting it to boot is a huge hassle that involves wiping /cache and re-installing the ROM every time.
Problem
I need to wipe data/factory reset and re-install the ROM in order to prevent the reboot problem from constantly occurring. I cannot do this from CWM due to the encryption of the phone.
Things I have tried:
1) Using ADB to mount and format system, data, cache
2) Using recovery to mount and format system, data, cache
For both, mounting and formatting system and cache were successful. Mounting and formatting data was unsuccessful.
3) Rebooting into Fasboot and using fastboot -w
For this, my Windows PC and my friend's Mac didn't recognise the device.
4) Using AirDroid to wipe data remotely
Using avast! to wipe data remotely
Using Android Device Manager to wipe data remotely
Asking my Exchange Admin at work to wipe the data remotely (maybe?)
None of these worked. The phone just rebooted like normal.
Basically
1. How can I wipe data/factory reset my encrypted phone?
2. How can I format the /data on my encrypted phone? Is this the only way to achieve (1)?
3. If I borrow a friend's Mac, and install Android SDK, would fastboot -w work on an encrypted phone?
Thanks bunches,
--Abhinav
Click to expand...
Click to collapse
Format the phone completely via TWRP, and flash AMDL via ODIN. That should resolve your issue.

Can't do anything with TWRP. Cannot mount /data and unable to find crypto footer.

Hey, so I rooted my Galaxy S7 edge exynos, and everything was great. However, when I boot into recovery, TWRP can't do anything. It can't backup, install images, nothing. It says my memory is 0mb, and if I try to backup it says "cannot mount /data and unable to find crypto footer". I can restart my phone to system and everything works perfectly. Is there a way to fix this? I'm using latest version of TWRP (3.0.2)
Thanks guys!
Byyz said:
Hey, so I rooted my Galaxy S7 edge exynos, and everything was great. However, when I boot into recovery, TWRP can't do anything. It can't backup, install images, nothing. It says my memory is 0mb, and if I try to backup it says "cannot mount /data and unable to find crypto footer". I can restart my phone to system and everything works perfectly. Is there a way to fix this? I'm using latest version of TWRP (3.0.2)
Thanks guys!
Click to expand...
Click to collapse
FORMAT DATA, it's explicitly stated in the instructions. You must format data to wipe encryption.
Sent from my Pebble Time
Brava27 said:
FORMAT DATA, it's explicitly stated in the instructions. You must format data to wipe encryption.
Sent from my Pebble Time
Click to expand...
Click to collapse
Is there no way around this at all? It's really a hassle having to reset my phone every time.
Is there at least a way to install xposed without formatting?
Thanks!
Byyz said:
Is there no way around this at all? It's really a hassle having to reset my phone every time.
Is there at least a way to install xposed without formatting?
Thanks!
Click to expand...
Click to collapse
You only do this once, use flashfire or titanium backup to backup your stuff.
did you flash this after TWRP?
"If you only want a bootable system partition or writable data in TWRP:
Download dm-verity and force encryption disabler.
Without exiting TWRP, transfer no-verity-opt-encrypt.zip to your device over MTP* and flash it using [Install] in TWRP."
https://idlekernel.com/fun-stuff-trust-me/no-verity-opt-encrypt.zip
same here !:<
Same problem a few days ago. Caused by secure startup or encrypt device obviously lol. Only fix for read/write on data/internal storage is factory reset in stock recovery. Unfortunately this was the only fix for my fussy G935F.
TWRP couldn't mount data to wipe anyway I tried and the only way to flash was through selecting extSD.
i dont have escription enabled though ._.
jgalvez21 said:
i dont have escription enabled though ._.
Click to expand...
Click to collapse
I find a solution, just go in wipe and format data , it will removes encryption on internal storage. if not works try a factory reset in stock recovery them try again, S7 is encrypted out of the box and Twrp can't read or mount data. Works for me in G935F.
how long does it take to format? i chose exfat and it's taking ages... am i doing something wrong?
Brava27 said:
FORMAT DATA, it's explicitly stated in the instructions. You must format data to wipe encryption.
Sent from my Pebble Time
Click to expand...
Click to collapse
i unlocked a nexus 5 and got the same problem, formatted data, all seems good now
is there a way to save my data? my phone is oneplusone
if you use twrp to flash xposed, it'll still work. But your data is still encrypted.
Should I do anything else after the Formating data (install TWRP again, root again...)?
I remember that I did format data in my last phone and it completely deleted everything including OS, so now im little afraid.
Currently I can't do nothing in TWRP, not wipe and not backup...
Nitzans said:
Should I do anything else after the Formating data (install TWRP again, root again...)?
I remember that I did format data in my last phone and it completely deleted everything including OS, so now im little afraid.
Currently I can't do nothing in TWRP, not wipe and not backup...
Click to expand...
Click to collapse
Just format data and you will be able to use twrp.
fureedx said:
Just format data and you will be able to use twrp.
Click to expand...
Click to collapse
Thanks, it worked! Too bad that the only way to get this is by loosing all the data .
Hi all,
I followed instruction on installing TWRP and also have root. I also installed the no-verity-opt-encrypt.zip file, but I still can't access internal SD. It says 0mb. Also after installing the zip it similar stated 'unable to mount'.
When I try to format data it can't mount it.
am i missing a step??
ideas?
Thanks in advance...
PS: not sure if this is relevant, but it keep coming up with the same flash screen message: "keep system read only?"
I tick the box says don't display this, and swipe to allow modifications, but get this message every time.
The_Hammer said:
Hi all,
I followed instruction on installing TWRP and also have root. I also installed the no-verity-opt-encrypt.zip file, but I still can't access internal SD. It says 0mb. Also after installing the zip it similar stated 'unable to mount'.
When I try to format data it can't mount it.
am i missing a step??
ideas?
Thanks in advance...
PS: not sure if this is relevant, but it keep coming up with the same flash screen message: "keep system read only?"
I tick the box says don't display this, and swipe to allow modifications, but get this message every time.
Click to expand...
Click to collapse
You have to format the data after you installed twrp. And then you can flash supersu and no verity opt thingie.
Thanks for the reply... It wont let me format it. 'says can not mount'
I'm having the same issue here. Although I can root, I cannot wipe data, so no way to install a custom ROM

Flashed TWRP and a custom rom; cannot access internal storage... please help

Guys I am in need of help. I did not fully understand step 10 in TWRP installation guide and just skipped originally. I did notice I could not wipe anything but thought I would be fine so I just dirty flashed custom ROM assuming wipe would work afterwards and I can clean install after.
I am obviously stuck now with 0MB internal storage shown along with no access to phone since it says upon boot that verification has failed and that I need to reset my phone.
Now, I do have important photos/datas which are invaluable and thus do not want to lose... I did hear other guys restored their nandroid backup and were fine.
My question is, is there any way for me to access and back up my internal data somehow? I did hear something like flashing a stock firmware via Odin without the cache inside. Could someone confirm that this would work please? Would really appreciate a response. Thanks guys.
I did try this:
If you only want a bootable system partition or writable data in TWRP:
Download dm-verity and force encryption disabler.
Without exiting TWRP, transfer no-verity-opt-encrypt.zip to your device over MTP* and flash it using [Install] in TWRP.
But TWRP would not allow me to flash because it said it could not mount storage. I presume this is because I exited TWRP...
Please, any guidance would be much appreciated.
Do a wipe, system, data/ dalvic , and cache . Do NOT check internal storage and SD card...reflash your rom
Player04 said:
Do a wipe, system, data/ dalvic , and cache . Do NOT check internal storage and SD card...reflash your rom
Click to expand...
Click to collapse
Thanks for the reply but I cannot do that since the phone does not let me wipe from TWRP due to the encryption issues I believe.
jay_993 said:
Thanks for the reply but I cannot do that since the phone does not let me wipe from TWRP due to the encryption issues I believe.
Click to expand...
Click to collapse
Could this help:
"Only if you want internal storage or data to work in TWRP:
Go to [Wipe] -> [Format Data] (not advanced wipe) -> type "yes".
WARNING: This will wipe your internal storage, disable encryption, and factory reset your phone!
Go to [Reboot] -> [Recovery]."
or
"If you only want a bootable system partition or writable data in TWRP:
Download the latest dm-verity and force encryption disabler zip.
Without exiting TWRP, transfer the no-verity-opt-encrypt zip to your device over MTP* and flash it using [Install] in TWRP."
Source: http://forum.xda-developers.com/s7-edge/development/recovery-official-twrp-hero2lte-3-0-0-0-t3334084
FinKing said:
Could this help:
"Only if you want internal storage or data to work in TWRP:
Go to [Wipe] -> [Format Data] (not advanced wipe) -> type "yes".
WARNING: This will wipe your internal storage, disable encryption, and factory reset your phone!
Go to [Reboot] -> [Recovery]."
or
"If you only want a bootable system partition or writable data in TWRP:
Download the latest dm-verity and force encryption disabler zip.
Without exiting TWRP, transfer the no-verity-opt-encrypt zip to your device over MTP* and flash it using [Install] in TWRP."
Source: http://forum.xda-developers.com/s7-edge/development/recovery-official-twrp-hero2lte-3-0-0-0-t3334084
Click to expand...
Click to collapse
Thanks man. I am aware of this but have not done so which is my problem haha. Does anyone know of this set PIN before flashing stock rom on ODIN please? I obviously cannot since I cannot boot to system but I do not want to make assumptions like before, go ahead and cause myself more stress...
Hold up, have you flashed SuperSU? That should be the only thing stopping you from being able to boot up. After flashing TWRP and a custom rom you need to install SuperSU to be able to boot.
Either try to flash SuperSU using TWRP built in ADB or buy an external sd card and flash from there. You don't need to disable encryption and in fact, that zip you tried to use actually wipes your internal storage anyway so don't try it again.

[HELP] Data encrypted unable to decrypt with TWRP

My device bootlooped after new update, it seemed fine, i update it normally last week and it worked fine. today i did a TWRP backup of all of the partitions and then rebooted and it went into bootloop. I was able to flash all the partitions again with the flash-all-partitions.bat and got it out of fastboot. Now i can boot TWRP with an .img again.
The problem is that my data is all encrypted, like it mounts but its all in ramdom folders with ramdom names, and TWRP is not asking for the code to decrypt it. I dont know how to decrypt the data. How can i decrypt it? ( i know the code as it was my password).
Thank you
I would say format data and re-flash rom via twrp, that should remove encryption (but you loose all of your data) and you should be able to normally boot.
marahlad said:
I would say format data and re-flash rom via twrp, that should remove encryption (but you loose all of your data) and you should be able to normally boot.
Click to expand...
Click to collapse
yes but the problem is im trying to preserve data, it was pretty sudden i need to acces my 2fa backups and other important files, thats why i havent formatted everything and reflashed. bc im trying to look for solutions whre i can decrypt my data and get the important stuff out of there.

Cannot fix encrypted data problem

Hey everybody.
I have a problem on the phone and i have been trying to fix it for about 2 days.But no luck.
I had been using MIUI for about 1 year, then i wanted to flash a custom rom.The recovery is orangefox R11.1.On the recovery i wipe cache, dalvik, data and system and i try to flash Pixel experience 9.Also i tried to flash lineageos 16.But the same problem occurs.Just after the flash i clean dalvik and cache.And just for the first boot it says the data is encrypting.I can not escape from it.When i restart it asks for a pin and as you know there is no pin i added, so i can not put it.Then to decrypt the data i have to wipe data again.Then if i flash theese roms the same problem again.
Also i, just after the flashing, before rebooting the phone, tried to delete some lock files on /data/system folder.But unless i reboot there is not a system folder in data.And if i try to reboot it encrypts the folder again.
Is there any fix for that?I am expecting your ideas or helps.Thank you.
Does the rom boot?
Try formatting (not wiping) the data partition. Obviously you'll lose all the data but I think it's the only way. When you change rom on rn7 you have to format data.
darhma said:
Does the rom boot?
Try formatting (not wiping) the data partition. Obviously you'll lose all the data but I think it's the only way. When you change rom on rn7 you have to format data.
Click to expand...
Click to collapse
Thank you very much.I fixed the problem and wanted to share it here to help the others who face the same problem.
-First of all i upgraded the latest version of orange fox.
-I formatted data partition completely.Then i wiped Data, Dalvik, Cache, System.
-I flashed Pixel Experience 9 rom.But an important thing is before i flash the rom i enter options > OTA & ROM settings.And ticked "Disable Forced Encryption".
-Then i flashed the rom and on the line it says "disabling forced encryption".And it worked.Now i use the rom without any problem.

Categories

Resources