Custom Recovery with Encryption. - Verizon HTC One (M8)

I have been considering using encryption on sdcard, and possibly internal storage. I was wondering what actions, if anything, would be limited in custom recovery.

Related

[Q] CWM External SD Card?

So basically I am migrating ROMs and have a lot of junk apps that I want to remove by using the SuperWipe full script. Then straight afterwards I was planning on flashing the rom (Revolver V4). The problem is that Superwipe wipes the internal storage where I would actually put it and the rom. I don't know how things would go if Superwipe wipes itself and also what I would do if the ROM file was deleted (I wouldn't be able to boot).
I figured the solution was to flash both off my external sd card however I can't find any such option for that in CWM. Only 'Install zip from SD' which points to my internal storage.
1. Would it be ok anyway to flash it on internal storage.
2. If not, how do I access external storage from within CWM.
3. If impossible, what other options do I have for doing this?
1. No, the ROM .zip would be wiped, and you stuck.
2. There are some mount commands, but to use those you need adb working, and if you have adb working, just 'adb push rom.zip /sdcard/' then flash from internal.
3. You could install the latest Rouge XM touch recovery, which has support for internal and external, and is still touch.
Hope I've cleared it up a bit.

[Q] TF101 Installing Custom ROM on Encrypted device

I recently managed to successfully root my TF101.
I installed CWM (Via ROM Manager) and downloaded CM9
I boot into CWM and attempt to do a nandroid...can't find path.
I attempt to just install from SDCard...can't find path
Realization (and research) hits that CWM can't see the external sd, and the system doesn't see it as SDCARD but EXT-.
CWM can't see the internal SDCard because apparently on the Tablet the ICS encryption locks that down (but doesn't on my EVO since the SC Card isn't part of the internal storage)
I attempt to perform a factory data wipe to clear out the encrtyption , but upon reboot CWM loads. I try to perform the boot-launcher data wipe, but then CWM loads.
I try to use CWM to factory reset but since it can see the damned SDCard because of the encryption, no dice.
My machine is not bricked, as I can still boot into the previous install but I can't seem unable to format the thing to install CM9.
What to do, and thanks.
It has been said multiple times before DO NOT USE ROM MANAGER.
Either use Thing O Doom's peri to install a different CWM or Gnufabio's Recovery installer or NVFlash a rom to completely wipe. And don't use encryption there is no point 99% of the time
I didn't check here first, which is obviously what was my first mistake.
Will any of those recoveries be able to access and format the SD Card area?
Also, I use encryption as I do have sensitive things on my machine that I don't want exposed in case the machine is stolen. First time I've ever had it give me a problem, as the phone encrypts differently.
Team roug's recovery has internal and external sd support and i think the encryption is an ics/tegra 2 bug more than anything
Ok, so I managed to get the new recovery on via Thing O Doom's peri. And I was able to install Revolver via the ext card...but upon boot I was prompted for my encryption pin and got the message that android was updating...My Build number is now Revolver but everything is the same as it was. I still can't factory wipe this damned thing.
Upon request to wipe, it boots back to recovery and says formatting data and cache, data wipe failed.
Tis site states http ://0xfeedface.org/blog/lattera/2012-06-04/installing-cm9-encrypted- android-tablet
The dilemma
When you encrypt your Android device, the /data partition is what gets encrypted. The partition in full is encrypted and cannot be mounted within CWM. CWM also cannot perform a wipe, since it cannot mount the /data partition. And CWM cannot mount the external SD card. This is our dilemma. No access to the internal SD. No access to the external SD. No way to perform a wipe and format the internal SD from CWM.
The Solution
What we need to do, then, is use adb while the tablet is in recovery mode to reformat the internal SD card, thereby removing the encryption. On the US Transformer Prime, the internal SD card is at /dev/block/mmcblk0p8. The partition for our spare SD card will be at /dev/block/mmcblk1p1. You will need to replace those device entries for any other device you might attempt this on. After formatting the internal SD card, we will mount it and then mount the external SD card at /data/media:
In CWM, wipe cache
adb shell
mke2fs -t ext4 /dev/block/mmcblk0p8 # Warning: This can take a while. Be patient.
mount /data
mount /dev/block/mmcblk1p1 /data/media
Now go back to CWM on your device, then go ahead and flash your CM9 and gapps zips like normal. You now have CM9 installed! The /data partition is not encrypted. If you do not need to flash any other ROMs (unlikely if you're reading this article), feel free to re-encrypt your device.
Click to expand...
Click to collapse
I don't know the block numbers for the TF01
you need to undo the encryption before you can wipe anything
You can't. Hence my problem. I cannot mount,delete, or format the SDCard. It sounds like the process in the above post is the solution, but I don't know how to find out what block numbers the tf101 uses.
If you don't mine losing your data NVflashing a rom will resolve all the problems
Yep nvflash will do the trick otherwise as the solution you found yourself explains
Use adb in recovery ( in other words hook it up on a pc ) for this you will need android sdk runnin on your pc
More info about adb u can find here
http://forum.xda-developers.com/showthread.php?t=1751439&highlight=adb+help
Good luck
Thanks to all, I have resolved my issue!
I had to download the stock rom, extract the blob, and use Wheelie for PC to NVFlash everthing abck to stock. I was then able to update over OTA, and use the excellent Thing O Doom's peri to re-root and flash the working recovery.
There should be several items in the Root FAQ up top, such as:
If you are encrypted and going to root, factory reset to get rid of the encryption FIRST since the encryption locks down the SDCARD partition (Unlike on the phone)and none of the recoveries can access it to mount. DON"T use ROM manage on the TF101 and always, always check XDA first.
:good:
darthrater said:
Thanks to all, I have resolved my issue!
I had to download the stock rom, extract the blob, and use Wheelie for PC to NVFlash everthing abck to stock. I was then able to update over OTA, and use the excellent Thing O Doom's peri to re-root and flash the working recovery.
There should be several items in the Root FAQ up top, such as:
If you are encrypted and going to root, factory reset to get rid of the encryption FIRST since the encryption locks down the SDCARD partition (Unlike on the phone)and none of the recoveries can access it to mount. DON"T use ROM manage on the TF101 and always, always check XDA first.
:good:
Click to expand...
Click to collapse
That FAQ is sadly pretty outdated, I wish I could liberate the OP
Glad all is working now though.

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!

[Q] Unable to mount data or internal storage

Hello.
Whenever I format my internal storage, I am able to mount data in TWRP, and I can flash whatever I want. However, after booting up OS and going back to TWRP, it is no longer able to mount data.
Is the internal storage having some encryption added to it automatically after bootup? How to solve this?
I am using J710F, currently rooted with Magisk 13.1
Thanks for the help and sorry if this is asked before

[HELP NEEDED] Cannot access internal storage from Recovery

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.

Categories

Resources