Installing ROM with Encryted Data or Remove Encryted Data? - AT&T HTC One (M7)

My sister installed her work eMail which enabled Encryption (I believe only on the Data Partition).
She does not really care about having her work email, so we removed it.
But that still leaves everything Encryted.
After Googling Around it appears you need the Factory RUU to get the Phone Back to Stock.
But that is not availble yet.
Does anyone know a way to either Flash a ROM or Take the Encryption Off.
We tried both TWRP and CW Recovery and neither can do a Backup because they cannot Mount Data.
Any suggestions welcome.
I'm personally on a Sprint HTC One

Perform a factory reset or boot into recovery (I am not sure about the HTC One stock recovery but I did this with my Galaxy S3) and format the /DATA partition.

Use titanium backup to backup all system data and user apps + data to sdcard, copy backup folder off to a computer, factory reset, copy the backup from PC to sdcard, then restore.

xeni said:
Perform a factory reset or boot into recovery (I am not sure about the HTC One stock recovery but I did this with my Galaxy S3) and format the /DATA partition.
Click to expand...
Click to collapse
This worked. CW Recovery Failed. But TWRP worked. It got a whole bunch of failures until the last step that it formatted data. Then I ran it again with no errors.
I was a little surprised formatting DATA now includes the internal SD drive, that really sucks.
Thanks

Related

Factory reset+flash wiped my memory

Hi All,
I did a factory reset today and flashed the stock 4.1.1 Polish ROM via Odin. This process seems to have wiped my files (including photos etc) from my S3 (internal memory, not SD card). I've flashed plenty of ROMS before and this has never happened.
Anyone know if it's possible to get them back? I guess I've installed new apps etc now so a lot of the data would have been overwritten. Frustrating!
Thanks for any tips.
UnitedWeFall said:
Hi All,
I did a factory reset today and flashed the stock 4.1.1 Polish ROM via Odin. This process seems to have wiped my files (including photos etc) from my S3 (internal memory, not SD card). I've flashed plenty of ROMS before and this has never happened.
Anyone know if it's possible to get them back? I guess I've installed new apps etc now so a lot of the data would have been overwritten. Frustrating!
Thanks for any tips.
Click to expand...
Click to collapse
You answered your own question with your first sentence : I did a factory reset...
Unfortunately its not possible to get back the data
Sent from my Galaxy Nexus using Tapatalk 2
Unless you backed up on PC or sd card...
Factory reset in S3 will always wipe internal memory as it shares internal memory for applications.
If you want to restore try some data recovery software that supports SD card.
ultramag69 said:
Unless you backed up on PC or sd card...
Click to expand...
Click to collapse
That would be the only way. There is a very small window to recover data wiped from flash memory and on a phone it would be even more difficult. Maybe a Clockwork backup?
Internal SDcard is mounted on the system partition via Fuse..so if you format the /system partition..sdcard is formatted as well..
Pointers for future..
Use CWM for flashing ROMS..(I hate Odin )
Backup your internal SDcard on your PC regularly
Perform a Nandroid Backup on your ExtSDcard before flashing any ROM.
If you ever need to factory reset..use the wipe data/factory reset option in CWM and not in Stock Recovery
For a clean install, if you want to wipe system partition..use wipe /system option under mount and format in CWM..it just wipes the system files and your SDcard data will be safe..
You will not face such issues if you in the future if you follow these pointers.
zoot1 said:
Internal SDcard is mounted on the system partition via Fuse..so if you format the /system partition..sdcard is formatted as well..
Pointers for future..
Use CWM for flashing ROMS..(I hate Odin )
Backup your internal SDcard on your PC regularly
Perform a Nandroid Backup on your ExtSDcard before flashing any ROM.
If you ever need to factory reset..use the wipe data/factory reset option in CWM and not in Stock Recovery
For a clean install, if you want to wipe system partition..use wipe /system option under mount and format in CWM..it just wipes the system files and your SDcard data will be safe..
You will not face such issues if you in the future if you follow these pointers.
Click to expand...
Click to collapse
Thanks for that. Lesson learnt I guess..

[Q] Custom ROMs + Encryption

Having trouble finding a firm answer on this. I have read that encryption has NO effect on Recovery mods since it only encrypts apps, data, and a few other pieces of info. (I thought that there was full disk encryption, but I guess not). So I would like to verify the following questions regarding the use of custom ROMs and Android encryption and I would like to do both, back them up, and maybe even change ROMs without issue.
I am fairly certain I can boot into a recovery mod (CWM or Twerp) without any problems while encrypted. Is this true? (I have seen conflicting answers here and on the interwebs).
If I back up a ROM and data (assuming this is done together in one backup), will I be able to recovery the backup properly and use it even when it was encrypted?
Thanks in advance.
Bakura
You can boot into recovery and flash zips but you will not be able to access your /data partition since that's what's encrypted. For flashing ROMs this doesn't matter since those don't touch /data. However if you have to wipe your user data you will have to set up the encryption all over again.
What this also means is you cannot store your zips on the internal memory of your phone because those will not be accessible to the recovery. You will have to store them on either an unencrypted microSD or sideload them with adb (easy enough to do on CWM, not sure about other recoveries).
Backing up should be fine as long as you backup to somewhere other than the internal memory for the reasons I stated above.
Will the wipe and restore options work?
Hexgore said:
You can boot into recovery and flash zips but you will not be able to access your /data partition since that's what's encrypted. For flashing ROMs this doesn't matter since those don't touch /data. However if you have to wipe your user data you will have to set up the encryption all over again.
What this also means is you cannot store your zips on the internal memory of your phone because those will not be accessible to the recovery. You will have to store them on either an unencrypted microSD or sideload them with adb (easy enough to do on CWM, not sure about other recoveries).
Backing up should be fine as long as you backup to somewhere other than the internal memory for the reasons I stated above.
Click to expand...
Click to collapse
I have a full Nandroid Backup of my phone with 4ext Revovery Touch. So if I encrypt Internal Storage only and if it's screwed up, will I be able to restore the Nandroid backup from recovery (I mean, is it possible to modify (rwx) the encrypted partition from recovery?
Far_SighT said:
I have a full Nandroid Backup of my phone with 4ext Revovery Touch. So if I encrypt Internal Storage only and if it's screwed up, will I be able to restore the Nandroid backup from recovery (I mean, is it possible to modify (rwx) the encrypted partition from recovery?
Click to expand...
Click to collapse
If the Nandroid backup is stored on your SD card, I think so, but you might have to wipe the partition first. As far as I know (someone please correct me if I'm wrong) you can still wipe the encrypted partition, you just can't access any of the encrypted data from recovery.
Yeah, the recovery works just fine!
Hexgore said:
If the Nandroid backup is stored on your SD card, I think so, but you might have to wipe the partition first. As far as I know (someone please correct me if I'm wrong) you can still wipe the encrypted partition, you just can't access any of the encrypted data from recovery.
Click to expand...
Click to collapse
^+1. So I went ahead and encrypted the internal storage. The process was fairly fast (took me under 10 mins).
But entering a password was too much of a hassle. So I performed a full system wipe and restored the backup. No problems.
That actually didn't work for me on the Nexus 7.
I tried to wipe the tablet from recovery but it couldn't mount the /data partition.
I tried to wipe the tablet from the OS but it didn't like the custom recovery so it just rebooted without changing anything.
In the end I had to run "fastboot erase userdata" to wipe it. That worked.
I have now installed CM 10.1 and can report that the encryption process seems to be working fine on the N7. It's taking a while but it is the 32GB model.
Encryption on Android is very temperamental. The general pattern seems to be that if the ROM you're using is based on the stock OS for your device (as AOSP is for Nexus devices) encryption will work fine, but due to the way the memory is mounted on modern Nexus devices, recoveries may be unable to mount the /data partition at all.
However if you are using a ROM based on a non-stock OS for your device (e.g. AOSP on an HTC Sensation) encryption may not even be able to turn on, and sadly fixing this problem when it arises is not high on the list of priorities for most developers, especially if your device isn't popular.
We are lucky that CyanogenMod seems to care a lot about privacy and security recently however. That may mean they focus more on encryption compatibility in the future, and most AOSP ROMs are based on CM, so fingers crossed for that.
But basically be aware YMMV when it comes to encryption on custom ROMs.
I tried to encrypt two Moto G's with the new official CM11, but after reboot and enter pin to unlock, the devices crashes with a black screen.
Encryption with stock firmware works fine.

[Q] Data Recovery from sick galaxy s3

My partner's phone has suddenly decided of its own accord that it wants to reformat the internal memory, presumably due to some sort of unrecoverable data corruption. The message that came up informing us of that was something along the lines of "Phone memory is damaged. The data partition is damaged, you should restore your phone to factory settings. Doing so will delete all your data" and then a single button saying "Restore phone to factory settings". (I say something along the lines because that is a translation from the actual Spanish message that comes up)
So, she has a bunch of data that she would prefer not to lose (mostly backed up, but some apps not, and photos missing for last month or so of our daughter - usual story).
So I have been hunting around to see if it would be possible, and mostly what I have found isn't too optimistic. I did however find the following link that did seem somewhat promising:
http://forum.xda-developers.com/showthread.php?t=1994705
So it is for the Nexus and the title refers to internal data, but then also refers to SD cards, but the process does seem to refer to internal data. I have a bunch of questions about the process in the context of an S3:
1. Anyone think this process is transferable to the S3? If so what is the equivalent data partition name? For the Nexus it appears to be /dev/block/mmcblk0p12. Would that be the same for the S3?
2. I am going to have to root this device first unfortunately (meaning I am going to have to write to the internal memory ahead of doing the RAW dump, obviously not ideal, but I see no way round it). Is the process described here (root only option):
http://forum.xda-developers.com/showthread.php?t=2046439
appropriate, or am I going to need to somehow find out what version my partner was on (not 100% sure but I think it was 4.1.2) and adjust accordingly?
3. Do I have to have a fully working version before I can install busybox, or is that something that can be put in place using CWM?
4. Likewise do I have to have a fully working version before I can get ADB working or can I get ADB to work with CWM? I have found a couple of threads that suggest ADB works natively with CWM and others that suggest not.
5. I know how to turn on USB debugging if I can get into setttings of a normal Android system, but how do I do that without a working version, can that be done via CWM?
I guess basically I want to know what would be the minimal set of steps that I can run through to get Busybox installed on the phone, (presumably rooted) and talking ADB to my PC. I say minimal set of steps becuase the less writing I do, the more data might be salvagable.
I am surprised that there isn't some bootstrap version that can't just pull off the existing data and allow you to manipulate it elsewhere (which is what the process I have put the link to seems to do) but it seems much more involved than just a bootstrap.
Be gentle with me - I am just a noob!
bobalucci said:
So, she has a bunch of data that she would prefer not to lose (mostly backed up, but some apps not, and photos missing for last month or so of our daughter - usual story).
Click to expand...
Click to collapse
if its only that I would do it a bit more simpler:
for app data: make a nandroid backup and after the reformat you can use nandroid manager to restore your apps and their data (if you simply restore the damaged data partition as a nandroid backup the problem could accur again). but maybe if the apps and data are damaged because of the damaged data partition they could maybe not be restored.
for photos etc. you can flash philz touch and then follow the steps in the main thread of philz touch on how to put the aroma.zip onto an external sd card (just search for aroma in the thread, you'll find it). aroma is like a file browser with root priviliges which can be executed through recovery. with that you can copy your photos onto the external sd card
btw. I am not sure if the standard factory reset wipes the internal sd cards data. if you only format your data partition photos etc. shouldn't be affected (for example through philz recovery you can just format data partition).
Data Recovery from sick galaxy s3 (installing custom recovery)
Thanks for that... that makes sense... any way I can get the custom recovery onto the phone without having already reformatted the data partition? All the methods I have seen for installing a custom recovery require normal access to the phone... and I don't have that at the moment - just to a screen that tells me that it will reformat the data partition - and I don't want to do that if I can avoid it - as it will modify the data I am trying to save.
Darkened_Sky said:
if its only that I would do it a bit more simpler:
for app data: make a nandroid backup and after the reformat you can use nandroid manager to restore your apps and their data (if you simply restore the damaged data partition as a nandroid backup the problem could accur again). but maybe if the apps and data are damaged because of the damaged data partition they could maybe not be restored.
for photos etc. you can flash philz touch and then follow the steps in the main thread of philz touch on how to put the aroma.zip onto an external sd card (just search for aroma in the thread, you'll find it). aroma is like a file browser with root priviliges which can be executed through recovery. with that you can copy your photos onto the external sd card
btw. I am not sure if the standard factory reset wipes the internal sd cards data. if you only format your data partition photos etc. shouldn't be affected (for example through philz recovery you can just format data partition).
Click to expand...
Click to collapse
Data recovery sticky ???
http://forum.xda-developers.com/showthread.php?t=2344125

Wiped data before flashing ROM but it's still showing up

I'm pretty new to flashing ROMs. My phone is rooted using all in one toolkit, s-off with sunshine. TWRP is my recovery.
I made a backup of my rooted stock ROM , then used TWRP manager to flash cm11. I checked to wipe all the data and dalvik before flashing. Cm installed with no issues.
Once I finished setting it up, I installed es file explorer again and noticed that all my files from my internal storage are still accessible. Its just listed under 0. Everything is still in tact tho.
Did I do something wrong? I don't understand why I still have all these files.
mattprice86 said:
I'm pretty new to flashing ROMs. My phone is rooted using all in one toolkit, s-off with sunshine. TWRP is my recovery.
I made a backup of my rooted stock ROM , then used TWRP manager to flash cm11. I checked to wipe all the data and dalvik before flashing. Cm installed with no issues.
Once I finished setting it up, I installed es file explorer again and noticed that all my files from my internal storage are still accessible. Its just listed under 0. Everything is still in tact tho.
Did I do something wrong? I don't understand why I still have all these files.
Click to expand...
Click to collapse
You have to have internal storage checked for it to be wiped
^^^This. The data that was wiped was system data, not your personal data.
Thanks for responding so quick,
I checked all of the options under install on twrp manager. Looking back, it says wipe data, wipe cache, wipe dalvik. There wasn't an option for wipe internal storage.
Is there anything I can do to fix this now? Or would I just have to go into twrp and reflash cm from recovery, making sure to check wipe internal storage?
Also, if I leave it as is, is it going to cause any problems?
mattprice86 said:
I checked all of the options under install on twrp manager. Looking back, it says wipe data, wipe cache, wipe dalvik. There wasn't an option for wipe internal storage.
Is there anything I can do to fix this now? Or would I just have to go into twrp and reflash cm from recovery, making sure to check wipe internal storage?
Click to expand...
Click to collapse
First off, ditch TWRP Manager, its a needless middle man (you're talking about the TWRP Manager app, right?).
If you boot into TWRP and select Wipe, you will see under "Advanced Wipe" there are a slew of wipe options (but be careful what you pick, as there are options to wipe things like the removable SD).
HOWEVER, you don't need to wipe the internal storage to flash a ROM. Yes, you need to wipe user data (/data) in most cases, and also cache and Dalvik. But wiping internal storage (virtual SD, also called sdcard on ES File Explorer, or sometimes /0) is not needed. For most practical purposes this partition is treated like a removable SD card. In fact, by default, backups like your TWRP nandroid and Titanium Backups are stored here. So if you wipe, you will lose those (unless you move/copy them to the removable SD or somewhere else like your computer).
Some folks like to wipe internal storage when they flash a ROM, just for general cleanup purposes. But its a personal choice, and not really necessary IMO. And as mentioned doing so will wipe your backups unless you save them somewhere else that isn't going to be wiped.
Thank you so much for clearing that up.
Yes, I was talking about twrp manager. You're right, after I checked the options, all it did was reset and boot up twrp. Pretty useless...
So since I still have all my game data stored, can I just copy it over somewhere to retain where I was at? I'm talking about android/obb data.
How would I go about integrated all my previous data into this current software? Let me know it my question made sense or not
mattprice86 said:
Yes, I was talking about twrp manager. You're right, after I checked the options, all it did was reset and boot up twrp. Pretty useless...
Click to expand...
Click to collapse
I think some folks like to use it to install TWRP. But installing with fastboot is easy, and also important to know how to do if you have issues someday and need to re-install TWRP from a non-booted condition.
So yeah I agree that TWRP Manager is pretty useless.
mattprice86 said:
So since I still have all my game data stored, can I just copy it over somewhere to retain where I was at? I'm talking about android/obb data.
How would I go about integrated all my previous data into this current software? Let me know it my question made sense or not
Click to expand...
Click to collapse
Use the app Titanium Backup to migrate app data when flashing ROMs (also handy to migrate app data to a new phone). And paying the few dollars for the Pro Key and getting the batch backup/restore functions is well worth it if you are flashing ROMs.
Do not use Titanium to migrate any system data to a new ROM, as this will likely cause problems. Just apps and app data. I've had success migrating SMS with Titanium as well. But other things like Settings and Homescreen setup, I usually just do again manually after flashing a new ROM.
As mentioned in my post above, the default save location for Titanium Backup data is the internal storage. So do not wipe internal storage when flashing a ROM, or you will lose your backup data.
Just copying the game files will most likely not work to migrate your game save data.
Thanks for all the help, I really appreciate it.
I used titanium backup and extracted my apps and data from my nandroid backup. Worked pretty well.
The only thing I'm having trouble with now is getting my info like contacts and stuff to sync. It says it's synced, but I'm not seeing it.
I wanted to install HTC backup again and try and restore that info. Would that work?
mattprice86 said:
The only thing I'm having trouble with now is getting my info like contacts and stuff to sync. It says it's synced, but I'm not seeing it.
I wanted to install HTC backup again and try and restore that info. Would that work?
Click to expand...
Click to collapse
I can't say, as I don't use HTC Backup.
I prefer to just have my contacts on my Google (Gmail) account. This is the default on the phone, so unless you changed it, your contacts should all be on the cloud on Gmail (you can login to Gmail on a computer and confirm your contacts are there). Then will automatically restore to the phone when you first setup and enter your Google login and password.
If you've confirmed your contacts are on Gmail, and still not synching, go to Settings>Accounts & sync>Google, go to where Contacts is checked, uncheck it, and then check it again. Sometimes the sync will just get "stuck" and this will clear it up.
One M8 stuck on GPE 5.0.1 ROM boot animation
I foolishly reset factory data using TWRP under Wipe, and when I try to reinstall the GPE 5.0.1 ROM I couldn't find it. Then I try to restore my backed up Sense ROM and I couldn't find it under Restore. Maybe I deleted it and I forgot about it. Help me? I don't have MicroSD to store the GPE ROM which I thought would solve my problem because I thought I may have deleted the GPE ROM .zip file when I reset factory data. Now I am stuck on GPE ROM bootanimation the moving around dots. I need help please someone?
muqrimusa said:
I foolishly reset factory data using TWRP under Wipe, and when I try to reinstall the GPE 5.0.1 ROM I couldn't find it. Then I try to restore my backed up Sense ROM and I couldn't find it under Restore. Maybe I deleted it and I forgot about it. Help me? I don't have MicroSD to store the GPE ROM which I thought would solve my problem because I thought I may have deleted the GPE ROM .zip file when I reset factory data. Now I am stuck on GPE ROM bootanimation the moving around dots.
Click to expand...
Click to collapse
If you did the "default" TWRP factory reset (data, Dalvik, cache) this is not foolish, and is the correct wipe for moving to a new ROM.
You either bypassed the default, and went to "Advanced" and wiped the internal storage; or there is also the occasional instance where internal storage is corrupted by no fault of your own (more common with oldr TWRP versions?).
adb push a ROM to the internal storage (or adb sideload flash) while in recovery.
okay I kind of fixed my One M8. But one problem remains, I can't use my internal storage. My Camera App can't use the internal storage so does all the other apps such as Whatsapp or downloads from Chrome. It's as if my internal storage is not there or somehow malfunctioned or the ROM doesnt support the use of internal storage. But before I got into this problem (I forgot how I got it in the first place as it happened months ago only now I was able to fix my One M8), it worked perfectly fine, the Storage had no problem. But I had problems with Wifi, I thought maybe reflashing the ROM was a good idea to fix this but it didn't instead I can't access my internal storage by File Manager or by PC. If you have any solution please help me. Thanks in advanced.
muqrimusa said:
okay I kind of fixed my One M8. But one problem remains, I can't use my internal storage. My Camera App can't use the internal storage so does all the other apps such as Whatsapp or downloads from Chrome. It's as if my internal storage is not there or somehow malfunctioned or the ROM doesnt support the use of internal storage. But before I got into this problem (I forgot how I got it in the first place as it happened months ago only now I was able to fix my One M8), it worked perfectly fine, the Storage had no problem. But I had problems with Wifi, I thought maybe reflashing the ROM was a good idea to fix this but it didn't instead I can't access my internal storage by File Manager or by PC. If you have any solution please help me. Thanks in advanced.
Click to expand...
Click to collapse
Broken WiFi is usually a symptom of wrong (outdated) firmware for the current ROM.
Internal storage may be corrupted. Try to connect to a computer and format it, or you can try RUU.
Or try to re-flash custom recovery, or update or try a different one (if TWRP, try CWM/Philz or vice versa). Some folks fixed similar internal storage issues by flashing recovery.
I need help again.. I decided to format all my data but I kept my backup in the internal storage.. But after rebooting the phone it works but then I can't download apps from the play store or from chrome.. also I can't transfer files from my pc to my one m8.. But I can take photos (which I think uses internal storage).. Also my guest mode is not working.. Ithought something must be wrong with the internal storage so i wiped it out.. When i rebooted everything is black but when I long press the power button 'power off' shows up.. Something must be wrong.. Oh when connecting to my pc it shows CD Drive instead of HTC_OneM8 like it usually would.. Pls reply even when there's no hope to fix this phone at all..

[SOLVED] Help Data Recovery from a Soft Brick

My father had a softbrick of his Galaxy S2 without having done a backup in the last 6 month.
Now he need some data that are stored on the phone so I cannot do a wipe data factory reset and I was wondering if I install a custom recovery can I move all the datas on the Sdcard and then read them from a microsd card reader?
Will installing a new recovery change the data?
Thanks
EDIT:
I solved the problem.
First I installed the Philz CWM recovery, that I reboot the phone in recovery Mode and chosed to mount as USB drive so I could copy the content of Sdcard.
Then I did a backup of data and system Partition through the backup menu on an external Sd card, after that I did a wipe/factory reset and the Phone reboot regularly
To recover the information that you need from the Backup can you use TitaniumBackup
I'm quite sure that the /data partition will stay untouched, since the recovery image is installed in another partition.
BTW, on some recoveries I was able to connect the phone to the computer and to read internal storage. Are you sure it's the data partition you need? The only thing stored in this partition are apps and app data. Images etc are on the internal storage (sdcard0).
Hope this helps.
I thought that Data and Sdcard were the same partition, what I need is to recover contacts and Viber/whatsapp message and images.
If I install a Custom recovery can I do a backup of everything and could I use adb to do a complete copy of the sdcard?
Thanks

Categories

Resources