TWRP autonomously encrypts phone after restoring from backup! - General Questions and Answers

i did a restore last night so did a format /data /cache /system /dalvik /internal memory and did format data type yes command in TWRP. After doing the restore the phone on first boot said it was encrypting the phone!! i hadnt issued any such command so i dont know why it did that on its own. because of this one other nandroid backup on SD card has become corrupted and giving an error 255 when doing a restore. It is using the 'default' TWRP encryption password, whatever that is. I want to recover the corrupted nandroid backup. How can that be done?

Related

Backup Data With Encrypted Tablet

I recently installed CWM on my transformer but I noticed it cannot perform backup because when it gets to mounting the /data it fails. I read that this could be because this partition is encrypted so it cannot be backed up. It there anyway to do a full rom backup on an encrypted tablet?

Bootloops...

For whatever reason last time my battery died my phone's not properly booting anymore.
I flashed stock rom and kernel, wiped dalvik cache, battery stats cache partition, fixed permissions...
I remember last time I had a bootloop resulting from something I did with build.prop I was able to get a verbose realtime log of the booting over USB, but I don't remember how I did it.
logcat's not found in my sbin, it's in /system/bin, and when I run it from there it stops when trying to boot into main.
I have adb and fastboot.
In recovery (ie, CWM or TWRP), do a full backup (NANDROID) and then:
data/factory reset
format /system
format /boot
Now flash a Stock ROM for your phone again. This should sort out just about any non-hardware issue.
if i restore that backup will i have my /data back? Would restoring put it in the same state of affairs that led to the bootloop?
Is there a way to partially restore a nandroid backup? I'm trying to get app data and such back.
You can restore either the whole partition via cwm or parts of it via app extractor. You can also edit the data partition and restore the edited version.

Nandroid Backups and Bootloops

Hi, was wondering, if I was to make a full nandroid backup online, would I be able to recover my device even if its in a bootloop state? Not that my device is in a bootloop state I was just wondering.
Thanks, Mohan.
Yes, you can use a nandroid backup to recover from a bootloop, as going into recovery bypasses the normal boot sequence. It is always recommended to have a nandroid backup of your last good configuration in case you are modifying anything that might cause your phone to become unstable.
syung said:
Yes, you can use a nandroid backup to recover from a bootloop, as going into recovery bypasses the normal boot sequence. It is always recommended to have a nandroid backup of your last good configuration in case you are modifying anything that might cause your phone to become unstable.
Click to expand...
Click to collapse
Ohh right thanks, another question, im backing the data on my device right now, however its skipped /boot and /recovery and is only backing up /system and /data, are the first 2 needed or will i still be able to recover my rom and data without them?
All your user data is stored within the /data folder, with the /system folder containing all of your ROM files. You will not /boot or /recovery for recovering your data.
syung said:
All your user data is stored within the /data folder, with the /system folder containing all of your ROM files. You will not /boot or /recovery for recovering your data.
Click to expand...
Click to collapse
Ok, thanks for clearing that up for me.

backing up/restoring roms in twrp

do i have to unencrypt my device in order to restore/backup and maybe even flash from on it? I've seen in twrp it tells me backups and restores may not work fully due to being encrypted
No, I guess.
The only partition encrypted is your internal storage and twrp can't take a backup of that.
So, you can try by yourself, just remember to take your cautious.
in old devices I always made a backup of this partitions:
Boot
System
Data
Vendor
And restored without problems, just make a factory reset before and maybe flash magisk after restoration

Can I recover encrypted data with a restore?

Hello
I wanted to install Syberia A12 from stock A11 and I got stuck somewhere in the process.
So I'm stuck with the internal storage on the phone (not backed up) that is inaccessible since it's encrypted and the rest of the partitions backed up on the pc using adb backup (a single .ab file).
In theory I should restore the partitions to the phone and I should be able to access everything and boot as it was before, right? However now I have the syberia ROM installed and I'm not rooted anymore (and won't boot).
Can I restore /system like this?
What I care about is access the internal storage, what can I do?
I tried restoring the entire .ab file, however it gets stuck at "restoring efs2" and I should only try to restore /data and /system but I can't select specific partitions being a adb backup with twrp.
All tools I tried to extract the content fails.

Categories

Resources