[HELP NEEDED] Cannot access internal storage from Recovery - Xiaomi Poco X2 Questions & Answers

Here's what I have done so far:
1. Set up MIUI with a pattern lock. Haven't done anything explicitly that will encrypt internal storage.
2. Applied for bootloader unlock.
3. Unlocked bootloader.
4. Flashed TWRP to recovery from Fastboot, then booted into TWRP
5. Formatted /data from TWRP
6. Rebooted to TWRP
7. Wiped /data, /internal, /dalvik, /cache
8. Flashed crDroid (A10).
Here is where the problem begins. I set up crDroid without any passcode or screen lock. But the internal storage is still encrypted. Now when I boot into TWRP, the internal storage is not accessible. Same with PBRP. Trying to wipe Internal Storage from PBRP makes it reboot. The log from PBRP is attached here.
How do I decrypt the internal memory so that I can access it via TWRP/PBRP? Formatting /data doesn't seem to solve anything at all.
The reason I want to decrypt internal memory is because I want an absolutely clean crDroid install with no prior data hanging around anywhere in the system.

Related

failed to mount /data

SOLVED
I rooted my s7 and installed twrp. I tried to do a nandroid backup in twrp and got the message that it couldn't mount /data. It turns out that by not performing the data format step in http://forum.xda-developers.com/galaxy-s7/development/recovery-official-twrp-herolte-t3333770 TWRP couldn't access /data. I did the steps over again and all was well.
kettir said:
I've rooted my s7 and installed twrp. I tried to do a nandroid backup in twrp and got the message that it couldn't mount /data.
I do have root, twrp does run when I boot into recovery. However, whether I select to allow modifications to system or not, twrp does not see the internal sd card.
I followed these instructions to root: http://forum.xda-developers.com/galaxy-s7/development/recovery-official-twrp-herolte-t3333770
However, I did not do step 10:
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].
Is this the reason that I can't access internal storage? If it is, I can go ahead and do the format data thing. I just would like to know if that is probably the reason I'm having this problem. NOTE: The phone is not encrypted so far as I know.
Click to expand...
Click to collapse
Internal data is encrypted nevertheless. Only a format will remove this encryption and it is the only way that you can make a TWRP backup of this data.
Bright.Light said:
Internal data is encrypted nevertheless. Only a format will remove this encryption and it is the only way that you can make a TWRP backup of this data.
Click to expand...
Click to collapse
Frag. Well, in that case, I've already installed TWRP, so presumably I can just boot to TWRP, swipe right to enable changes, format data, flash supersu, and then flash dm-verity and force encryption disabler. Then go through the setup again.
If I could have my way, someone would disable the security deal with writing to the SD card, the phone could be purchased pre-rooted, and I wouldn't have to worry about bricking my phone every time I flash something.
Rant over.
@kettir: You're exactly right!
btw: The security deal is not over when you root your phone. 'I still haven't found what I'm looking for' is a very precise song for this problem.
I had the same issues and succesfully used the sequence proposed by Kettir:
- Enable OEM unlock
- ODIN: Install TWRP
- TWRP: Wipe -> Format data
- TWRP: flash supersu
- TWRP: flash dm-verity and force encryption disabler

Did not decrypt internal storage prior to installing TWRP

I installed TWRP successfully, but because I'm an idiot, I didn't decrypt my internal storage first. This has put me in a situation where TWRP cannot access or mount internal storage, and the tablet won't boot to OS so I can decrypt it from the GUI. Can someone suggest something please? Thanks!

Can't decrypt data TWRP 3.3.0-0

Hi guys,
I am in confusion.
Ultimate questions is: why can't my proper TWRP decrypt data? Being under LOS16. Asking me for password I can't provide. I updated Magisk and Viper and got bootloop.
Entering recovery mode, no internal storage, followed the repair file system method with changing file structure to ext2 than to ext4, still no internal storage.
All I want is to recover media files before reflashing LOS.
1. How to decrypt data?
2. Why by default TWRP doesn't do it.
Thanks

Question Orange Fox Decrypting Data

Today I unlocked my bootloader and installed orange fox recovery, I tried to install TWRP but it wasn't being permanent, it was just disappearing after once I boot the device to system. Whatever, after I installed Orange Fox, it was permanent but I faced another problem, I couldn't mount my data, my internal storage couldn't be selected so I wasn't able to flash anything, usb otg option was also showing nothing but the device was connected to a PC and my data was encrypted which requires a password or pin to decrypt. Though I didn't have any screen lock, but I tried out many pins and passwords to decrypt, but it all went in vein. I tried formatting data and enabling a screen lock and tried that screen lock too but it didn't work out.
Now what can I do to Decrypt and mount my data so that my internal storage shows up with the data I have?
NB: My battery backup also dropped hugely for some unknown reasons, how do I fix that too?
namir.muztahid said:
Today I unlocked my bootloader and installed orange fox recovery, I tried to install TWRP but it wasn't being permanent, it was just disappearing after once I boot the device to system. Whatever, after I installed Orange Fox, it was permanent but I faced another problem, I couldn't mount my data, my internal storage couldn't be selected so I wasn't able to flash anything, usb otg option was also showing nothing but the device was connected to a PC and my data was encrypted which requires a password or pin to decrypt. Though I didn't have any screen lock, but I tried out many pins and passwords to decrypt, but it all went in vein. I tried formatting data and enabling a screen lock and tried that screen lock too but it didn't work out.
Now what can I do to Decrypt and mount my data so that my internal storage shows up with the data I have?
NB: My battery backup also dropped hugely for some unknown reasons, how do I fix that too?
Click to expand...
Click to collapse
Custom recoveries like TWRP and OrangeFox cannot decrypt Android 12 ROMs, which means if you are on MIUI 13 you have Android 12, you cannot decrypt internal storage yet.
USB OTG means to connect to an external hard drive or flash drive, not connect to PC.
2 ways to deal with: 1) put ROM in microSD card and put the microSD card into the phone, TWRP and OrangeFox should be able to read microSD cards. 2) use ADB sideload in TWRP/OrangeFox to flash ROMs/Zips files. You need PC to do this. Look up on Google how to flash with ADB sideload.
Hi Guys! I Found a new Method how to Decrypt the Storage.
1. Go to Wipe and wipe the Internal Storage (First make a Backup to Your PC)
2. Go to Backup and Backup Something, like Cache
3. Go to Menu>Mount, uncheck the Data and Check it.
4. Format the Data with Typing yes and Reboot
4. You're done and Enjoy!
TRWP beta can decrypt internal storage of A12.1, I am using it and it works fine.
OrangeFox beta builds are able to decrypt a12 data no probs. Even unoffical twrp beta can.

Question: After TWRP install and /data format can't access encrypted SD card data anymore, is this normal?

Thanks for this great site, I followed the instructions in this thread to install TWRP on a Samsung Galaxy J3 (2017) running Android 7 with encryption enabled on the Phone: https://forum.xda-developers.com/t/...axy-j3-2017-sm-j330f-j330fn-j330g-ds.3709056/
Since encryption was enabled on the Phone (including the SD card) TWRP could not mount the /data partition which was fine (I could load a zip from USB OTG instead). But the Phone complained on normal boot about "Integrity check failure" and that it would reboot to recover/restore, but the same message appeared on reboot. To get out of this endless loop I booted into TWRP and formatted the /data partition (without encryption) since all important data is stored on the encrypted SD card. Now the Samsung Galaxy J3 was able to boot normally without any integrity warnings but with all data/settings gone (as expected). The problem now is I can't access the encrypted data on the SD card anymore, I have the option to decrypt it but it stays on the verification stage and never ends (it has been now more than 48h stuck trying to decrypt the data which is more than enough time). I can't encrypt the /data partition either, it reboots unencrypted as nothing has been done. Is this normal? Is there a way to recover the data on the SD card? I no longer want to do any experiments and increase the damage and any help would be appreciated!
Steps done so far:
1 - Put Samsung Galaxy J2 (2017) with enabled encryption (on both Phone and SD card) in Download mode
2 - Flash TWRP with ODIN and auto reboot disabled
3 - Reboot directly into recovery mode / TWRP - /data can't be mounted, expected since the Phone is encrypted
4 - Reboot normally, Phone is still encrypted but error "Integrity check failed" appears all tells the Phone is going to reboot to recover/restore
5 - Since the Phone keeps showing this integrity error all the time and is not able to boot normally I boot to recovery / TWRP again and format /data which can now be mounted since it has no encryption
6 - Phone boots again normally with settings/data gone (expected) but decrypting SD Card doesn't work (stuck in "decrypting SD card" for more then 48h) and Phone encryption does no longer work either (reboots unencrypted nothing is done)
I also tried installing no-verity-no-encrypt_ashyx.zip on TWRP but it didn't help. At this point I wish I could restore the old state even if it means no TWRP / rooting, the data on the SD card and having working encryption is more important. Sadly since I couldn't mount /data with TWRP at the beginning when it was still encrypted I couldn't make a backup
Thanks for any help, information or feedback. Maybe everything is working as expected and I should have kept my fingers away from TWRP!
PS: "Encryption" refers to the OS/Android encryption in Settings > Security

Categories

Resources