(solved) Locked out of phone after data restore. - Moto E7 Questions & Answers

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!

Related

How to extract data from .backup file made through android recovery

Please help, I am in big trouble. Accidentally my phone has been locked by wrong pattern attempts. Also, internet data is not ON. Now, it is asking for gmail Id and password...tried every possible way to unlock the mobile without data loss but hard luck. Now, there is only one option to factory reset my mobile. I will loss all my important data. What I did is, I had made backup file from recovery from the same locked mobile. After that I has done factory reset. again when I restored the .backup file from android recovery, my phone get locked because the .backup file has taken the backup of lock also. Can you please tell me, how to extract all the data from that .backup file, so that I can save them to my mobile again.
@Karan said:
Please help, I am in big trouble. Accidentally my phone has been locked by wrong pattern attempts. Also, internet data is not ON. Now, it is asking for gmail Id and password...tried every possible way to unlock the mobile without data loss but hard luck. Now, there is only one option to factory reset my mobile. I will loss all my important data. What I did is, I had made backup file from recovery from the same locked mobile. After that I has done factory reset. again when I restored the .backup file from android recovery, my phone get locked because the .backup file has taken the backup of lock also. Can you please tell me, how to extract all the data from that .backup file, so that I can save them to my mobile again.
Click to expand...
Click to collapse
From Which Recovery You Made BAckup In locked cndition
Chaudhary Abdul said:
From Which Recovery You Made BAckup In locked cndition
Click to expand...
Click to collapse
I've booted in recovery <3e> to make a backup.
@Karan said:
I've booted in recovery <3e> to make a backup.
Click to expand...
Click to collapse
Ok When u go to restore your backup it directly start whole backup restoring or asking to slect which data you want to restore from backup
Sorry for bad english
When I go to restore the backup it directly start whole backup restoring. Not even ask for any option for selection.

How to exclude sensitive data from nandroid backup using twrp recovery

Hello everyone,
Can I ask how do I exclude all sensitive data when I perform nandroid backup of the system and data partition of my phone using the latest TWRP recovery v3.1.1-0?
[email protected] said:
Hello everyone,
Can I ask how do I exclude all sensitive data when I perform nandroid backup of the system and data partition of my phone using the latest TWRP recovery v3.1.1-0?
Click to expand...
Click to collapse
There really isn't a way... What I would do is backup system and data, then copy all data apps you want included to the sdcard. Then factory reset. (To remove sensitive info) Skip thru the setup wizard, enable unknown sources, then backdoor the apps. (Still with no google account tied to the phone)
Next make a new backup of system and data for whoever you're sharing this with...then restore your original backup so everything is back the way you had it.
Sent from my XT1609 using Tapatalk
If you plan on sharing it. Don't. Nandroid backups also back up stuff that is device dependent. Many devices have been bricked because they restored a Nandroid from another device. Even if it is the same model.

twrp backup&restore encrypted android phone

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 ?

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!

Categories

Resources