[Resolved] Need help recovering data from encrypted Nexus 4 (mako) - General Questions and Answers

Hi,
my Nexus 4 is currently caught in a reboot loop.
My current plan to fix it is to flash a new ROM (clearing all the different caches didn't help).
However I do still have data on it that I would hate to lose (photos). Problem is the partition is encrypted and my recovery system ClockworkMod (6.0.4.7) can't decrypt.
From what I've read TWRP can decrypt partitions. Is there a risk of losing access to the encrypted data if I install a new recovery system? Would flashing a ROM be better/worse?
thanks

In case somebody has the same problem as me:
Flashing TWRP as recovery did not affect the encrypted files.
Code:
fastboot flash recovery twrp.img
, reboot and I had access to my files again

Related

[Q] Issue with flashing rom on encrypted tablet.

I was able to unlock the device and install CWM. I wasn't paying attention when i did a wipe, and didn't see it was unable to wipe /data and several other locations. Its probably because its encrypted. I thought it would have asked for the password to access those areas to wipe them. So i just went ahead and flashed Cyanogenmod 10 nightly build. Now it wont boot past asus logo. The backup wont work ether. Is there a way to flash a rom on an encrypted tablet? or remove the encryption?
odin23342 said:
I was able to unlock the device and install CWM. I wasn't paying attention when i did a wipe, and didn't see it was unable to wipe /data and several other locations. Its probably because its encrypted. I thought it would have asked for the password to access those areas to wipe them. So i just went ahead and flashed Cyanogenmod 10 nightly build. Now it wont boot past asus logo. The backup wont work ether. Is there a way to flash a rom on an encrypted tablet? or remove the encryption?
Click to expand...
Click to collapse
I fixed the issue
-erased the data using fastboot -w
-Tried again to flash CM10 with no luck
-then i just downloaded and extracted the blob from stock rom
- the flashed using fastboot -i 0x0B05 flash system blob
Then the problem was resolved and the encryption was gone(apparently fastboot -w gets rid of the encryption as well as all other data) . I am guessing the CM10 i was using was corrupted or something.

decrypt data / phone .. trying to go back to stock

OKay, trying to go back to stock. Problem is M8 is encrypted.
I select decrypt when entering password. But it just reboots and logs me in... as usual. Still encrypted
I went to TWRP and it shows that the internal storage is 0mg No data to install get to,
I have tried to fastboot ROM and stock recovery. But keep getting error that it fails. I think it fails because it cannot see the files.
How to decrypt phone to go back to stock. I cannot even get stock recovery on device. Ugh! What am I missing here.
BTW no option in setting to decrypt. Once encrypted I can only change password.
Going back to stock from what?
TWRP cannot see an encrypted data partition. AFAIK your only option is to format /data in TWRP (which will erase everything on your internal storage).
You cannot fastboot a rom and I wonder what you did exactly trying to fastboot flash the stock recovery.....
berndblb said:
Going back to stock from what?
TWRP cannot see an encrypted data partition. AFAIK your only option is to format /data in TWRP (which will erase everything on your internal storage).
You cannot fastboot a rom and I wonder what you did exactly trying to fastboot flash the stock recovery.....
Click to expand...
Click to collapse
I fixed issue... by going into recovery and wiping data

How do I decrypt my device

So I encrypted my moto 4g and all went fine. However I wanted to flash and install an app via my recovery(my device is rooted and I got custom recovery but I'm on stock rom) but It kept saying it could not access the data of the phone. I figured this was because it is encrypted. I also tried restoring an older backup from when the phone was not encrypted but that would not work either. If I do a factory wipe in recovery that won't work either. If I enter the Android settings and choose data wipe the phone starts to bootloop.
What can I do to decrypt my phone?
Did you encrypt the phone using stock recovery?
No I encrypted with the custom recovery.
Have you tried to erase cache and userdata using fastboot commands?
audit13 said:
Have you tried to erase cache and userdata using fastboot commands?
Click to expand...
Click to collapse
No I have not, haven't had time to try, I assume here are some guides about it and I will look into it when I have time.
Just wanted to say that I fixed it, had to reflash the whole device with flashboot, then I re rooted it and restored an backup.
Glad it worked out for you.

Urgent help needed for TWRP encryption

Hello,
My problem is that I can not access my SD card data because TWRP does not ask me for encryption password. I can see the files but they are all gibberish
How did I end up here?
I was using RR 7.0.2. and doing random magisk module testing and suddenly everything started to misbehave. I panicked and ran Nandroid backup but restoring failed to tar fork something. Then I decided to factory reset and flash original Resurrection Remix rom which I was using and bluespark TWRP which I was using before. I tested TWRP installation by rebooting to recovery.
Booting went well but TWRP never asks encryption password/pattern, which causes sd card data to be encrypted. Is there way to get sd card data decrypted or is it all lost?
-Athum
You lost your encription keys Im afraid, all data is lost, next time decrypt before flashing any custom ROMs for your own data sake.

metadata in twrp?

I'm trying to find information about metadata wipe in twrp but can't find about it. I was trying to dalvik wipe but selected metadata partition as well and swiped to wipe and found myself in bootloop to recovery everytime i boot to system. So far i don't want to format data thinking i might get a solution as i don't have backup so i wanted to know if there is any hope to recover the data and boot normally to same rom.
I tried dirty flash rom but same result booting to twrp.

Categories

Resources