[Q] flashing new ROM on encrypted phone? - Nexus 5 Q&A, Help & Troubleshooting

How do I do this? No access to /sdcard in recovery mode, can't even wipe the phone in recovery. How can you install a new ROM when the phone is encrypted? Running CWM.
EDIT: Will a factory data reset get rid of the device encryption and enable me to install the updated ROM from recovery mode? I don't mind losing the data.

jb91 said:
How do I do this? No access to /sdcard in recovery mode, can't even wipe the phone in recovery. How can you install a new ROM when the phone is encrypted? Running CWM.
EDIT: Will a factory data reset get rid of the device encryption and enable me to install the updated ROM from recovery mode? I don't mind losing the data.
Click to expand...
Click to collapse
try using twrp. read somewhere it supported encryption. not sure though.
best bet would be disable encryption. flash the rom and encrypt again. its a work around not the solution you want though.

You can't disable encryption on Android. Unfortunately, TWRP won't work for me, as I need a custom recovery that is controllable with volume buttons (like CWM), because of a broken screen.

Fastboot flash back to stock.

Related

[Q] Did advanced wipe, don't know what to do know

Hello,
I advanced wiped my oneplus one, but now i don't know how i install an CM rom.
The phone can only star twrp recovery, if i hold power butten + volume down. If i start the phone normally it gets stuck at the Oneplus logo.
Can anybody help me?
thnx in advance
Advanced wipe is such a generic term. What EXACTLY did you wipe from that menu?
Everything?
Sounds like you need to push a ROM zip back to the phone and flash it. And then don't wipe things willy nilly without knowing what you are doing.
#stayparanoid
Pirateghost said:
Advanced wipe is such a generic term. What EXACTLY did you wipe from that menu?
Everything?
Sounds like you need to push a ROM zip back to the phone and flash it. And then don't wipe things willy nilly without knowing what you are doing.
#stayparanoid
Click to expand...
Click to collapse
I'm guessing advanced wipe on TWRP, which would mean almost all the data was wiped.
thomasvanleo said:
Hello,
I advanced wiped my oneplus one, but now i don't know how i install an CM rom.
The phone can only star twrp recovery, if i hold power butten + volume down. If i start the phone normally it gets stuck at the Oneplus logo.
Can anybody help me?
thnx in advance
Click to expand...
Click to collapse
Ok, get Wugfresh's tool to help you flash CM11S back onto your phone. This is a slightly more complex method to get a new ROM installed.
You can also use TWRP's MTP function to get any ROM you would like loaded onto your SD after mounting /system. Flashing the ROM will get you past the OnePlus logo.
Pirateghost said:
Advanced wipe is such a generic term. What EXACTLY did you wipe from that menu?
Everything?
Sounds like you need to push a ROM zip back to the phone and flash it. And then don't wipe things willy nilly without knowing what you are doing.
#stayparanoid
Click to expand...
Click to collapse
I wiped Dalvik Cache, System, Data, Internal storage and cache... but whenever i try to flash cm11 again (from the file on my pc) it command prompt says 'Device not unlocked cannot flash or erase' so i need to unlock bootloader. But whenever i do that, the phone just reboots and doesn't unlock bootloader
sfiodsh said:
I'm guessing advanced wipe on TWRP, which would mean almost all the data was wiped.
Ok, get Wugfresh's tool to help you flash CM11S back onto your phone. This is a slightly more complex method to get a new ROM installed.
You can also use TWRP's MTP function to get any ROM you would like loaded onto your SD after mounting /system. Flashing the ROM will get you past the OnePlus logo.
Click to expand...
Click to collapse
Isn't Wugfresh's tool for nexus devices? and how do you use this MTP?
thomasvanleo said:
Isn't Wugfresh's tool for nexus devices? and how do you use this MTP?
Click to expand...
Click to collapse
There's a version of wug's toolkit for this phone, but it's unnecessary for your situation. You need to go here to get your bootloader unlocked, then you can flash your ROM.

decrypt data / phone .. trying to go back to stock

OKay, trying to go back to stock. Problem is M8 is encrypted.
I select decrypt when entering password. But it just reboots and logs me in... as usual. Still encrypted
I went to TWRP and it shows that the internal storage is 0mg No data to install get to,
I have tried to fastboot ROM and stock recovery. But keep getting error that it fails. I think it fails because it cannot see the files.
How to decrypt phone to go back to stock. I cannot even get stock recovery on device. Ugh! What am I missing here.
BTW no option in setting to decrypt. Once encrypted I can only change password.
Going back to stock from what?
TWRP cannot see an encrypted data partition. AFAIK your only option is to format /data in TWRP (which will erase everything on your internal storage).
You cannot fastboot a rom and I wonder what you did exactly trying to fastboot flash the stock recovery.....
berndblb said:
Going back to stock from what?
TWRP cannot see an encrypted data partition. AFAIK your only option is to format /data in TWRP (which will erase everything on your internal storage).
You cannot fastboot a rom and I wonder what you did exactly trying to fastboot flash the stock recovery.....
Click to expand...
Click to collapse
I fixed issue... by going into recovery and wiping data

How do I decrypt my device

So I encrypted my moto 4g and all went fine. However I wanted to flash and install an app via my recovery(my device is rooted and I got custom recovery but I'm on stock rom) but It kept saying it could not access the data of the phone. I figured this was because it is encrypted. I also tried restoring an older backup from when the phone was not encrypted but that would not work either. If I do a factory wipe in recovery that won't work either. If I enter the Android settings and choose data wipe the phone starts to bootloop.
What can I do to decrypt my phone?
Did you encrypt the phone using stock recovery?
No I encrypted with the custom recovery.
Have you tried to erase cache and userdata using fastboot commands?
audit13 said:
Have you tried to erase cache and userdata using fastboot commands?
Click to expand...
Click to collapse
No I have not, haven't had time to try, I assume here are some guides about it and I will look into it when I have time.
Just wanted to say that I fixed it, had to reflash the whole device with flashboot, then I re rooted it and restored an backup.
Glad it worked out for you.

SuperMan-Rom V1.8.1 Aroma - AP will not boot (integrity verification failed)

SuperMan-Rom V1.8.1 Aroma - AP will not boot (integrity verification failed)
On My S7 edge, thought I'd give it another go at trying to root since this rom claims to be almost stock with an option to get rid of all the samsung rubbish (like s-voice) that you don't use ever.
Followed all the steps to root, ON STOCK OS, entered developer mode, allowed OEM, allowed USB debugging, turn off verify installs by USB abd. Now It seems the phone is prepped and ready to go.
Flashed TWRP with latest ODIN 3.11, made a backup of stock OS, back in download mode and flashed required bootloader and modem (BL and CP), boot again into recovery to flash AP (SuperMan-Rom_SM-G93XF_V1.8.1.zip). Went through all the process and it seems fine until 1st boot.
***Every try is showing "Verification Failed, Unable to restart your device. The Integrity verification has failed. You need to reset your device to factory default settings. This will erase all your data."***
Have I Done something wrong to be showing this error every time????
I had the same error message. The cause was that my device was encrypted. TWRP can't handle encryption on the S7 yet. Reboot into TWRP and look at the logs. If it says it couldn't mount /data, then this is probably the same issue I had.
To fix it, I restored the backup OS from TWRP, made a backup of all apps and data to external SD using Titanium Backup and wiped the encrypted partition in TWRP (which removes the encryption and all data). There may be better ways, but this one worked for me.
@Davebnly You need to take backup of the Internal Storage data and then do a wipe using TWRP, Since TWRP cannot handle the Samsung's Encryption the only way to bypass this is by formatting again. This is already mentioned in the Official TWRP Installation post here.
I have this same error after flashing a custom ROM. I did not take a backup of the old stock ROM as it's a new phone and I didn't think I needed to!
Can anyone tell me, if I flash the stock ROM will it let me into the device again?
Is there anyway to wipe the encrypted drive without installing stock ROM?
*UPDATE: I just logged into recovery and did a factory reset and it loaded the custom ROM. Not as lengthy a solution as I expected!
Do these exact steps, Do not miss.
1. Reboot to recovery.
2. Do a data wipe (WIPE>FORMAT DATA) And Say "Yes"
3.Go to Reboot and Reboot back to recovery.
4.Download DM Verify Disabler https://build.nethunter.com/android-tools/no-verity-opt-encrypt/ , Get the latest.
5.Copy in to the phone and flash it.
6.Go to Reboot and Reboot back to recovery.
7.Now Flash any rom as you wish.
8.Make Sure to Wipe Dalvik, Cache after.
Enjoy!!
Shameera_N said:
Do these exact steps, Do not miss.
Click to expand...
Click to collapse
Man, you just saved my life!
Thanks you very much.
Shameera_N said:
Do these exact steps, Do not miss.
1. Reboot to recovery.
2. Do a data wipe (WIPE>FORMAT DATA) And Say "Yes"
3.Go to Reboot and Reboot back to recovery.
4.Download DM Verify Disabler , Get the latest.
5.Copy in to the phone and flash it.
6.Go to Reboot and Reboot back to recovery.
7.Now Flash any rom as you wish.
8.Make Sure to Wipe Dalvik, Cache after.
Enjoy!!
Click to expand...
Click to collapse
Hi, I'm sorry but what does all that mean? Reboot to recovery??? The only option on my phone is the button to RESET DEVICE and I have two weeks worth of photos and videos that I have not backed up yet! Please help!!! FYI, I have the same exact message telling me to erase all my data because I need to reset my device. Nooo, I am so scared right now.

TWRP question

Hi,
Does installing TWRP wipe the personal data after it get installed on the device for the first time ?
Many Thanks to all of you
It shouldn't delete personal data. TWRP is recovery partition, it doesn't deal with the userdata partition. However, some tools used for flashing the TWRP might have an option to completely re-format your phone, so make sure that setting is unchecked. If anything, make a backup of your phone prior to doing this.
mohhaxs said:
It shouldn't delete personal data. TWRP is recovery partition, it doesn't deal with the userdata partition. However, some tools used for flashing the TWRP might have an option to completely re-format your phone, so make sure that setting is unchecked. If anything, make a backup of your phone prior to doing this.
Click to expand...
Click to collapse
Many thanks for you help. actually I can not backup any thing, that is all my actual problem. I can not access to the android OS, but can access the recovery and download mode. Someone suggested to backup all the data from twrp before trying wipping all the phone ... what do you think about that ? Is it a good workarround so I can recover a functionning phone with all my data ?
Many thanks
Edit: I plan to use heimdall to flash the twrp recovery mode on the phone.
Droiid848 said:
Many thanks for you help. actually I can not backup any thing, that is all my actual problem. I can not access to the android OS, but can access the recovery and download mode. Someone suggested to backup all the data from twrp before trying wipping all the phone ... what do you think about that ? Is it a good workarround so I can recover a functionning phone with all my data ?
Many thanks
Edit: I plan to use heimdall to flash the twrp recovery mode on the phone.
Click to expand...
Click to collapse
It depends on the phone. If it is Samsung, just flash the same firmware on top of the device using odin and make sure the re-partition is not checked. Or if you can access recovery mode, try hooking it up to the computer and use adb shell to locate your files and pull them off the device.

Categories

Resources