Need help after "encryption unsuccessful" trying to encrypt the internal memory. - Sony Xperia M5

Need help after "encryption unsuccessful" trying to encrypt the internal memory.
Hi experts,
yesterday I tried to encrypt even the internal memory of my Xperia M5. After pressing the start button and thereafter asking for the unlock pattern the phone showed for a second the android logo, then went into a mode, showing only an animated startup-image. For 8 hours nothing more happened. Then I pressed all 3 buttons Power-VLM up&down to restart the phone running into the error meassage screen "encryption unsuccessful". The only option was to reset the phone erasing the internal memory. WTF went wrong?
Unfortunately I have no complete backup to restore the system. And worst is that I ran the system encryption for the sd-card since 12 month already with the effect that I cannot access my picture gallery any more now. Probably the encryption key was stored in the internal memory that was erased by the reset of the phone.
Is there any way how I can regain the previous key for the sd-card encryption? I even know the PIN that I had used for encryption.
Update: I found a backup with titanium backup. How can I restore the encryption keys from there?
Basically, is it possible to backup encryption keys somehow?
PS: Phone is rooted.
I`d appreciate any help. Thanks!!!

Related

[Q] Type password to decrypt storage after a failed attempt to partition ROOTED

4.2.2 on a rooted, unlocked One X
I was using Minitools Partition, with the device mounted to PC, in CWM, I followed some fairly simple instructions, which called for me to delete the original partition (25GB) which I did, I then set 3GB Ex2 (for apps to sd card) and the rest 22GB FAT32. THat all seemed to work fine.
BUT now I am now being asked to "type encryption password" every time I boot the phone, what format should the SD card be? Have I got the partitions wrong? SD card will no longer mount in recovery, plus I cant get pass this screen (password request) when turned on. The ROM is loading, to request this password, its happening after the X, perhaps my instructions where wrong from the beginning?
These are the ones I used,
http://forum.xda-developers.com/wiki/SD_card_partitioning
Things I have tried,
1 changing the format and partitions of sd card, to everything you can think of (eg 2GB FAT, 1GB Ex2, 21GB FAT32)
2 Wipe data/ factory reset, in recovery
3 Flashed boot.img to device, in bootloader.
4 fastboot format userdata, in bootloader (something i read in a thread)
3 Factory reset, in bootloader.
Nothing, the ROM still loads, up until this screen with an option for emergency calls, dialer does appear so ROM is fine? CWM works fine, however as you might expect I cant mount SD card in recovery and needless to say I just cant get passed this password request screen.. I feel like if I try and wipe system and flash the ROM again, ill just come up against the same problem, or worse just brick my device, as I cant load any Zip files.... which has only just dawned on me, any ideas people?
many thanks
Tim.
I have the same issue on my HTC ONE XL ATT ... but my phone randomly rebooted and when it turned on it got to DECRYPT STORAGE, i didnt even do anything... and i really dont feel like re-installing my rom ... idk what to do exactly now. i can boot up into recovery and access all my files but i dont know what happened...
same issue here with galaxy nexus after installing 4.2.2, ive tried odin, fastboot, everything but after the phone reboots loads the same os and it reboots a few seconds later.

[Q] Phone keeps Encrypting and have to format.

Hello,
I have been running latest CM for a while but recently, on several occasions, the phone sticks on Logo, and when I reboot in recovery it asks for encryption password. I never encrypted phone, and during these instances the internal storage shows 0Mb. I have to Wipe completely and reinstall. Then the same thing will happen on reboot. What could be the cause?
Sorry, I am fairly n00bish at this so bear with me
Nick

Bricked HTC 10

Okay so I have been using viper ROM for ages now and got bored so decided to try cyanogenmod. Made a backup in twrp on my external SD card. Flashed resurrection remix, tested it. All went well. Then flashed gapps. Forgot to wipe, then got stuck in a bootloop where it would make me decrypt the phone with my lock code every boot and then it would be continuously stuck on optimizing apps, rebooting then asking for decryption again.
So I restored my back up thinking it would fix it. But it did not fix the issue. Now my HTC 10 is saying your data is corrupt even though pin was successful I need to factory reset. But now twrp will not mount internal SD card so therefor being stuck in a loop of this. It says 0mb on external SD. And I know that's because of the encrpytion but how do I fix this some one please help I'm stuck.
Vmo x said:
Okay so I have been using viper ROM for ages now and got bored so decided to try cyanogenmod. Made a backup in twrp on my external SD card. Flashed resurrection remix, tested it. All went well. Then flashed gapps. Forgot to wipe, then got stuck in a bootloop where it would make me decrypt the phone with my lock code every boot and then it would be continuously stuck on optimizing apps, rebooting then asking for decryption again.
So I restored my back up thinking it would fix it. But it did not fix the issue. Now my HTC 10 is saying your data is corrupt even though pin was successful I need to factory reset. But now twrp will not mount internal SD card so therefor being stuck in a loop of this. It says 0mb on external SD. And I know that's because of the encrpytion but how do I fix this some one please help I'm stuck.
Click to expand...
Click to collapse
You need to format data in twrp to get rid of the encryption.
TWRP->Wipe->Format Data
I have tried formatting but it won't mount the internal SD card whatsoever, even after unlocking the encrpytion in twrp... Possible dead internal?
I think you might just wiping data/factory reset.. "wipe data" is different from "format data". You must format data.. don't swipe. Tap the format data button
Vmo x said:
I have tried formatting but it won't mount the internal SD card whatsoever, even after unlocking the encrpytion in twrp... Possible dead internal?
Click to expand...
Click to collapse
..formatting data kills the encryption...so if you do it right, twrp will be able to mount the internal again and also be able to boot up without the encryption screen.
As said already, you probably just wiped the /data partition....you need to format that. thats an extra button in twrp->wipe
I have tried everything possible in twrp :/
Okay it worked sorry my bad thank you so much guys!!
@j to the 4n he got bored using your rom. Why are you helping him?
side_flip15 said:
@j to the 4n he got bored using your rom. Why are you helping him?
Click to expand...
Click to collapse
Cause I'm nice and awesome
Lol... OK.. Yes you are...

internal storage encryption

With an sudden OTA few years ago my a2 lite went into a loop and no recovery could decrypt the internal storage. Immediately i made a EDL dump of all emmc partitions and left with a encrypted data. Is tehere any chance decrypt? No password nor FP or any lock was set. Since then force disable encryption forever.
Hope in alt rtoms was bit tainted by low success, basically only syberia now is able to run without loops... If i could get rid that AB syste...

Lost internal storage after dirty flash of ROM update

I think I have just screwed up big time.
Here is what happened:
Had CrDroid 8 installed (Android 12) with encrypted storage
Wanted to upgrade to next version; following the guide, simply did a wipe (without any advanced options) in TWRP and then installed the zip
Realized after rebooting that the phone has been completely reset and internal storage shows as empty
I know that this is related to a problem with decryption by TWRP with A12.
My question is, is there any chance that I would be able to recover my lost files? I mean where did they go? What could have happened? Did TWRP just not understand the encrypted data so it threw it away and recreated it, overwriting these files?
Is there any chance that the previous data partition (my internal storage, all my photos, etc) are still somewhere to be found within the storage and I could locate this partition and decrypt it using my passphrase? I am desperate at this point. I am stupid and did not make backups. I thought this would be a regular upgrade, wipe, install ZIP, like I've done dozens of times... Couldn't I perhaps scan the raw disk devices for some magic string or anything that would mark the start of the encrypted partition?
Sorry about the frantic writing, I am devastated and literally begging for any kind of help with this. Thank you.
Sorry for the noise, I was desperate I gave up since then, I just don't think this is possible. As far as I understand the encrpytion keys have been flushed (which are kept in the TEE anyway?). I still don't fully understand why TWRP just decides to wipe /data/media as well as /data in this case, but what is done is done. Back up your data guys. Same old story.

Categories

Resources