Fri

13

Apr

2012

Encryption Unsuccessful - Reset Android ICS Issue

Are you using ICS and pulled your phone out of your pocket only to find that it had this screen, saying "Encryption unsuccessful" and your only option a button that said "Reset Phone"? Don't press it! Try rebooting a few times with your external sdcard out first. Sometimes that works. If not, this may work:

Originally Posted by jmtheiss  View Post

got the dreaded encryption screen. Following the instructions here, I pulled my external SD, didn't hit the "reset device" button, but instead rebooted a few times. It wouldn't change, so I rebooted to download mode and flashed a KH3 Heimdall one-click that I had. It flashed fine, booted up, but the My Files application said I didn't have a card inserted.
However, when I connected it to my computer, my computer recognized the Internal SD. I'm now backing up all my stuff to a safe place. Not really sure where to go from here, but at least I've got my stuff backed up.
UPDATE: Unplugged USB cable, Media scanner ran, files now showing up on phone!

If that doesn't work or you have already hit reset, follow the guide below to get your phone usable again:


Too late? Already hit the button? Then you know this screen:


Here's the bad news:

Your partitions for /data and /sdcard are no longer accessible. They may be encrypted with a key you cannot know (completely lost) or just inaccessible (data restoration possible, but not at this time).

Good news:
I found a *workaround* to get my phone to at least work again. Note: You will need to perform steps 9 and on every time you flash a ROM or ROM update, because flashing overwrites the vold.fstab file.

Here were my steps to get your phone working again:
  1. Realize that you may have just lost whatever was on your sdcard and it's your own fault. For me, this was acceptance that *I* installed a very early build of ICS on my phone and now CWM backups, photos, and more were gone. Once your realization has set in, move forward.
  2. Acquire an micro SD card that you will put into your phone. This will contain your new /data partition as well as your new /sdcard partition. I recommend at least 8GB. If you already have a card, backup whatever is currently on your micro SD card - you *WILL LOSE* everything on this card in the next few steps.
  3. Boot into clockwork mod, using either 'adb reboot recovery', or some other combination of buttons.
  4. Partition your mircosd card through CWM. This will be 'advanced' then 'Partition SD Card'. The first size you choose will be the size of your /data partition. I have a 16GB card and chose 2GB for /data. This will leave me with (16-2) 14GB for /sdcard. Choose 0M for swap. This process will take a few minutes, so keep waiting, you impatient jerk.
  5. Download the latest build of ICS for your phone (for this tutorial I used 13) and put it on your micro SD card. (You can mount it to your computer at this point in CWM with 'mounts and storage' 'Mount USB storage')
  6. Create a full backup. Just in case. Put it on a computer, dropbox, whatever. Your phone isn't a safe place for backups.
  7. Wipe user data, cache, & system. Now install the ICS package you just put on your card and reboot.
  8. The first boot will take a while, as all first boots do, but after a while you should be back in ICS. Exhale (If you're not exhaling at this point, post something in this thread and I'll try to get you running)
  9. Check Settings > Storage and see if your new /sdcard partition (For me it was about 14GB) shows up as 'USB Storage' or 'SD Card' If it's USB storage, then your micro sd mounted to /sdcard successfully and you're done. You should be able to take a picture and have it save. If not...
  10. Edit etc/vold.fstab with whatever you use personally (root explorer for me) and swap /emmc and /sdcard. Someone more intelligent than me can probably make this a CWM zip. This step is basically telling ICS to swap your /sdcard (internal sdcard) and your /emmc (external sdcard). It will probably look like this when you're done:

    Code:
    # internal sdcard that is no longer working
    dev_mount emmc /mnt/emmc 1 /devices/platform/s3c-sdhci.0/mmc_host/mmc0
    
    # external sdcard
    dev_mount sdcard /mnt/sdcard auto /devices/platform/s3c-sdhci.2/mmc_host/mmc2
    
  11. Reboot with your new vold.fstab and check your storage amount in ICS and test your camera. Hopefully now this is working for you.

Let me know if you have any questions or (hopefully not) problems!


Notes for myself and devs:
I'm not sure how, but it looks like something triggered the props listed here: https://source.android.com/tech/encr...mentation.html to fire, setting off an unintentional encryption. In ICS and in CWM, when I look at /dev/block/platform/ I only see s3c-sdhci.2 and s5pc110-onenand. The s3c-sdhci.0 block is missing completely. I'm not sure how to even touch the /data or /sdcard filesystem at *ALL* If I can do that, I may be able to restore the MBR from a working phone with dd. Oh well.

The other possibility is that ICS is a lot pickier about mounting filesystems, and if it can't mount /data correctly, it assumes it is encrypted. If it really wasn't, this would explain the partial encryption error message

 

SEARCH OUR SITE

Loading