[Q] encrypted tablet, "factory data reset" not working - Asus Transformer TF700

Hey all. I have a rooted TF700 with CM 10.2 on it. I have encrypted the tablet (via SETTINGS - SECURITY - ENCRYPTION). I'd like to do a "Factory Data Reset" - it's my understanding that this will remove the encryption, along with all my user data. This is what I'd like to do.
However, when I go to SETTINGS - BACKUP & RESET - FACTORY DATA RESET, it doesn't work. It asks me to enter my password, then asks me to 'erase everything', and when I click it, it reboots as if to perform the reset. I get the little android guy after it reboots, then the ASUS screen, then CM boot screen. However, the tablet boots like normal, is still encrypted, and all my user data is still there.
I recently upgraded from CM 10.1 to 10.2 - getting the gapps package to install took several tries for some reason, but eventually it worked. I have clockwork recovery installed, but because the tablet is encrypted I am unable to mount or format the /data partition from clockwork.
Anyone have a clue how I can get the 'Factory data reset' to work, or otherwise decrypt my tablet? Thanks!

Factory reset is done by your recovery. Which recovery (and version) is currently installed? Maybe you need to choose "format data" explicitly in the recovery.

_that said:
Factory reset is done by your recovery. Which recovery (and version) is currently installed? Maybe you need to choose "format data" explicitly in the recovery.
Click to expand...
Click to collapse
I cannot touch (either mount or format) /data from Clockwork recovery because it is encrypted by android. any attempt to do so, and I get an error
"ERROR cannot (mount/format) /data!"
doing the 'Factory Data Reset' from within Android is supposed to decrypt and wipe /data, but that is not working.

I flashed TWRP and got rid of Clockwork recovery - that enabled me to mount /data in recovery (TWRP asks for my password to decrypt /data when TWRP starts), which is something. However, when I go into /data using the terminal I only see the lost+found directory and nothing else?
However, formatting /data from TWRP doesn't work, neither does a reset. They just give me errors.
I then tried abd shell - mke2fs -T ext4 /dev/block/mmcblk0p8
but that gives me a '/dev/block/mmcblk0p8 is apparently in use by the system; will not make a filesystem here!' error, even after unmounting it manually (umount -a)
Next, I tried using TWRP to reinstall CM 10.2. After that, the boot process took 40 minutes or so. Once it came up, there was no user data and cyanogenmod was fresh (yay!) - but the partition is still encrypted - it asks for password during boot, even though the OS has no password lock on it.
In addition, my WIFI is now not working!
anyone have a clue here? I REALLY want to remove the encryption on the /data partition!

I wanted to follow up here with closure. Im not exactly sure WHY what I did worked, but it did, and maybe it can help someone else.
last I left off, I had CM11 installed, but no wifi, and the partition was still encrypted. At this point, I decided to try to downgrade again to CM10.2
Now, when the tablet was booting, it was asking me for my password to decrypt so it can boot. Except now, after loading CM11 and going back to 10.2, the password wasn't working and couldn't boot. I was convinced I was bricked.
I went back into recovery, and reloaded CM11. This time, when it came up asking for my password to decrypt before booting, it worked. So something in CM11 changed the encryption on /data so that CM10.2 couldn't read it anymore.
once I was booted into CM11 (still with no wifi), I went to SETTINGS - BACKUP & RESET - FACTORY DATA RESET again. This time, it worked! Asked for my password, said are you sure, then rebooted. BOOM, /data was no longer encrypted! CM11 came up, and with the fresh /data partition, wifi even worked!
For other reasons (Netflix) Ive since gone back to 10.1, but now /data isn't encrypted, so wiping and flashing is easy and works great now.
It seems there is a bug in CM10.2 (or android) where the FACTORY DATA WIPE doesn't work with encrypted /data partitions, but CM11 was able to do that just fine.

Related

Encrypted tablets - updates?

Lo all
I've encrypted my Xoom (running 4.0.3 ICS, US Mot std image on a UK WiFi Xoom). All is working, and I have the CWM recovery installed.
In CWM I can mount & access /system, but not /data - so I presume that's what's encrypted.
Are CWM flashable zips still going to work, presuming they don't (try to) touch /data?
Also - does Nandroid backup get screwed by the encrypted partition, or does it run a raw dd?
Anybody? Bueller?
I just tried an update to ICS on my encrypted xoom and had no luck. It consistently would stick at the EOS boot animation. You are correct that the problem is the /data partition is encrypted. It cannot be mounted in CWM for wiping the dalvik cache or writing any update information.
I did get the password entry screen before the EOS boot animation would start, and could then connect to the xoom with adb and get a shell. Attempting to delete dalvik-cache from the shell and reboot did not give any better results. It seems like there should be some way to make it work, but I finally gave up and did a 'fastboot erase userdata' to wipe the encrypted /data partition. I was able to reboot into CWM, wipe data, cache, and dalvik cache, flash the EOS and GApps zips and get back up successfully. Tablet is not encrypted now and I had to restore all my data files from a backup I had ftp'd to my desktop beforehand. In hindsight I probably should have unencrypted the tablet before flashing, but I have seen several posts indicating that unencrypting did not work properly.
You can't decrypt, it's basically a "factory restore".
Just found CWM can't back it up via nandroid too. Interesting :\
I installed ICS build #44 on my Xoom then encrypted it about a week ago. I just updated to Team EOS 1.0.0 build and updated GAPPS. Everything works.

[Q] /Data partition encrypted, recovery cannot wipe it

Hey guys,
My work switched to Google Apps for their email so i wanted to test it out on my phone. Doing so required them to encrypt my phone. What this appears to have done is encrypt the data partition. So now when i go into (TWRP) recovery and try to do a backup / wipe / or anything else, it says it is "Unable to mount /sdcard" I'm unable to do a factory reset of any kind so i'm essentially stuck on this rom (ARHD) until i can figure out how to wipe data and get the /sdcard to be not encrypted. Does anyone have any ideas? I'm imagining that with the modified recovery not being able to access the data partition that i'm going to have to do some adb type stuff?
Please help! I want to keep flashing new roms!
-HTC One

Factory Data Reset TWRP

I followed a root guide on XDA and remember seeing the Factory Data Reset screen when first setting up TWRP. Along the way, I no longer saw that screen when booting into recovery. Today I upgraded to 10D from 10A and flashed a rom, and that screen came back. Why did that happen and what do I have to do to make it go away?
it's possible you're talking about the prompt that asks for password to decrypt data? or the screen that asks if you want to allow system to be remounted rw instead of ro.
if you format data in TWRP it wipes out data encryption and then you'd no longer get the password prompt. of if you selected the option to allow system to be remounted rw then that option may go away until system has been changed.
if you're not talking about either screen I mentioned then I'm not sure what you're talking about.

[A510] Can't mount /data on any recovery

Hi,
I wanted to reset my 510 to a fresh 4.4.4 install. So I decided to "restore to factory settings" within the android system settings menu.
kitkat CM12 4.4.4 by shreps was working fine before, I just wanted to get rid of the data in order to give the tablet away.
now I'm stuck with a soft bricked device, it seems:
- when starting the tablet, the CM screen shows, but freezes after a while
- flashing any CM version in CWM 6..0.5 by shreps shows a "error: can't mount /data"
- wipe cache / data shows the same error
- wipe dalvik cache doesn't seem to respond in any way
- I reflashed CWM 6.0.5 using fastboot flash recovery, but to no success..
what options do I have now? can I format and remount the /data partition via ADB? do I need to go to stock?if, so, how?
Thanks for your ideas!
ok, via
fastboot -w -v
i could reformat the data partition somehow.
I still got an
E:unknown volume for path [/sd-ext]
error, but it continued and works for now.
huedrant said:
ok, via
fastboot -w -v
i could reformat the data partition somehow.
I still got an
E:unknown volume for path [/sd-ext]
error, but it continued and works for now.
Click to expand...
Click to collapse
Glad you dot it going.
I just pulled my 701 out of retirement (broke my Sony z2 screen trying to change my battery) so taking a look in here.
The data format has always been a bit twitchy, but I run the latest version of TWRP for KK. I remember bricking my original Data partition wiping it because some bozo used the wrong partition info making the original recovery for JB. Exchanged the tab.
I recall the bootloader version had to match what version of the ROM you installed (JB, KK, etc), and maybe the recovery also (can't remember). Latest TWRP for KK seems to work for me as I installed Pac Rom before I retired it. TWRP Ver 2.7.1.0
As with the "Path to ext SD", that's always been there if I recall. Just means you have to install a ROM from internal memory. Although my TWRP seems to mount it fine.
But I will say, feels like I've entered the dark ages again.

I wiped my whole phone

have a rooted Honor 8 (FRD-L09).
So, I installed the new Magisk. I have been prompted to reboot.
So, I rebooted, and my phone asked me my password for decrypting the OS. I never encrypted the system. I tried 0000, my pin and others, but nothing did it, so I factory reset my phone.
The system did not load.
I looked up online for custom ROMs to boot, but none of them worked.
And that's my big errir : I wiped /system partition because it was a recurring error.
Now I have a bricked phone, with no OS on it.
What to do ?
Hello,
Did you flash a custom recovery (TWRP)?
What the phone do if you press & keep all buttons ( "Power" , "Vol-" and "Vol+" )?
delete
Update : I reinstalled the TWRP and fixed /system, but HURupdater ignore the update.zip and /data isn't writter (also, every line in TWRP starts with "Unable to mount /data")
Gabmiral said:
Update : I reinstalled the TWRP and fixed /system, but HURupdater ignore the update.zip and /data isn't writter (also, every line in TWRP starts with "Unable to mount /data")
Click to expand...
Click to collapse
Have you format /data partition and reboot ti ricovery?

Categories

Resources