twrp backup&restore encrypted android phone - Android Q&A, Help & Troubleshooting

I learnt at great expenses that twrp has issue with restoring an encrypted backup. The restore happens but the password that was used for the encryption is never recognized.
Is there anyways around this ?

Related

nandroid Backup with encrypted tablet?

So I am thinking of encrypting my tablet. One thing though that I was wondering is, whether it is possible to do a nandroid backup afterwards.
The problem is that I cannot decrypt the tablet without performing a factory reset (which I don't want to do).
Any experience with that yet?
Mine is encrypted
I encrypted my HTC Flyer with the option in the menu. Encrypting it adds another layer to boot up where you have to put in your password and it decrypts and boots up. I don't know how to do a nan-droid back up other wise I would try.

[Q] lost titanium backup encryption passphrase

So I screwed up and lost the passphrase for TB encryption. I have a good working nandroid backup with all the apps+data that I would want to use for my next rom flash. The problem is when I go to TB and disable encryption on my good backup it doesnt allow me to restore the data when I flash a new rom. My question is is there a way to completely remove TB and all of it's app data so that I can start from scratch with TB in order to good unencrypted backups of my apps+data without completely formatting my sd card? Otherwise I'm stuck on my current rom setup.
Thanks!
Does anyone have an idea of what i can do?
i did the exact same think will update you if i find anything

Backup without Twrp - live backup due to encrypted data

Hello
When I access twrp I do not have the password to decrypt data.
In the past I used live backup programs such as: flashfire, onAndroid nanobackup or online nanodroid. However they are outdated or do not support the Mi 10.
My objective is to create a zip file that twrp could use to restore data and all other partitions, which is created while the phone is on/live.
Any one has a solution?
Thanks for the help

What should I delete from /data to prevent started encryption on a ROM that doesn't support it?

TL;DR: somewhere in /data, it is written that Android should encrypt some partitions including /data on next reboot, but my ROM doesn't support decrypting. I managed to make a backup of /data with twrp, but when I remove encryption, restore the backup, and reboot, the ROM tries to encrypt (which it only does if I restore my data backup so somewhere on /data it sees that it was rebooting to encrypt), so what should I delete from /data after restoring it to cancel the planned encryption?
(Clarification: I don't think this is encryption enforced, because I can format and boot to Android without encryption happening, it's only if I restore my backed up data that encryption happens on boot.)
Some background:
So I made the mistake of starting the Android full disk encryption on a custom ROM (non official AOKP 7.1.2, J120F/DS, SC8830) and since I installed the ROM a year ago I forgot that it doesn't support encryption and clicked encrypt.
After the encryption, it got stuck on a black screen, adb working but /data, /dev and something else I forgot what were showing as "tmpfs", and to make matters worse, twrp for j120f was too old and doesn't support encryption, so what I did was use the tool from Hovatek and the working twrp 3.0.2 to make a working twrp 3.2.1 for my phone (sc8830), and it worked, and twrp decrypted it and I made a backup with adb backup --twrp data. I removed encryption by formatting and restored it and checked that it's no longer encrypted by rebooting to twrp.
Now the issue is, rebooting to the system again starts the encryption (coz the ROM encrypts but can't decrypt) so somewhere in /data it's saved that it has rebooted to encrypt. I tried deleting these:
/data/system/gatekeeper.password.key
/data/system/gatekeeper.patern.key
/data/system/locksettings.db
/data/system/locksettings.db-shm
/data/system/locksettings.db-wal
but still the encryption started after reboot. So it must be saved in some other file that is included in my backup. Can you please tell me where so I can delete it and restore my backup? Thank you very much!

(solved) Locked out of phone after data restore.

Today I reflashed my e7 using LMSA.
I then completed the setup wizard except i didn't enter a password because this was only for the purpose of testing to see if the device worked as it should.
I then proceeded to restore a backup of my data partition using MtkClient.
After this my device boots but does not accept the correct password or my adb authorisation.
I assume this has to do with the decryption keys being different due to the reset done by LMSA.
If someone could point me to the partition that contains the decryption keys I could restore it from a previous backup.
Any help would be appreciated.
Moto e7.
Android 10 File based Encryption.
Edit:
Solved.
All I had to do was set the phone up with the same password as the data backup then restore the data backup and it was able to decrypt.
Hallelujah!

Categories

Resources