Restore EFS TWRP Backup with Encrypted System? - Moto G5 Plus Questions & Answers

I am familiar with how by default in Stock Nougat for Moto G5 Plus, your data is encrypted and you must decrypt in TWRP by formatting data in order to view internal storage. I was just wondering if it is possible to restore an EFS backup through TWRP without having to decrypt your data (ie without formatting data)?
Any help is much appreciated!

Yes, decryption is only neccessary for the /data partition, you can modify and flash all other partitions without touching /data.

Related

Is it possible to decrypt the data on the Qualcomm E4?

I need to decrypt the data to get an app working, since it needs to change the data partition to do so. Is there any way to decrypt the data? Thanks!
Elecrolo said:
I need to decrypt the data to get an app working, since it needs to change the data partition to do so. Is there any way to decrypt the data? Thanks!
Click to expand...
Click to collapse
If you unlock the bootloader, flash twrp and then use twrp to flash the dm no verity zip, then format your data (this all wipes your data from the phone of course so you'll need to setup again) you will be unencrypted. You will also likely need a custom recovery to change the /data partition to a different format other than f2fs.

Can't decrypt storage in TWRP

I switched from RROS back to OxygenOS, but now TWRP can't decrypt my storage.
Does anyone know a solution other than removing the password every time I want to use TWRP? Or should I format the storage and then restore everything?

Encryption on DotOS Pie bootloops, TWRP won't decrypt even with correct password

So, after a few months on Oreo I clean flashed DotOS Pie last night, got the whole thing set up and tried to encrypt phone. It now bootloops, but I can get to TWRP, which shows me a pattern to decrypt data, even though my phone had PIN lock. I did the trick to "translate" between PIN and pattern grid. TWRP shows me "data successfully decrypted, new block device: '/dev/block/dm-0'", but I can't mount /data (consequently can't mount /sdcard), though I can mount /system. TWRP's console shows "Failed to mount /data (Invalid argument)".
I know I can just format /data on the wipe menu to get rid of encryption, but since I don't have a backup of /sdcard, I would like to know if there is any way to get /data mounted again so I can backup my internal storage before formatting /data.
If it makes any difference, my TWRP version is 3.2.1-0, latest one available at twrp.me. I heard that 3.2.1-1 handles encryption better (even better than more recent versions on some devices), but it's not available on the official site.
--Other details that might be relevant, but I'm not sure:
1. I do have TiBu's backup on my computer, so if I must restore my apps I'm fine with it (though I don't have a backup of the whole internal storage);
2. I also have a Nandroid backup of /system, /data and /boot, but it's on the phone storage only;
3. Last, but not least, I have flashed latest Magisk just before encrypting the device.
I saw some stuff related to a no-verity encryption zip file to be flashed via TWRP in some discussions regarding other devices, would it be of any help in my case?
@anupritaisno1 sorry to bother you, but you're the one person to ask for help with TWRP on OP2. Could you lend me a hand here? Would your enhanced TWRP help in my case? I know one shouldn't restore backups made with one version of TWRP within another version, and also that the tempcache stuff needs to be set up to flash ROMs. My plan here, if this could help, was to see if your enhanced TWRP can successfully decrypt my /data and internal storage, then I would back up my internal storage to my computer and either set up tempcache or reflash official 3.2.1-0 to format data and flash the ROM again.
Thanks in advance.

TWRP Backup guide

I wonder whether backing up Preload in TWRP is important or not? Is it different from system or what? Does backing up system suffices or we must back up preload too?

data partition backup

Hello guys,
I had Lineage OS installed on my Galaxy S10+ and it got into boot loop after my phone lost power a few times because of low battery. The system halts at the Lineage Logo animating forever.
The problem is I canont access encrypted files on /data partition as it seems default Samsung encryption is used (and I have not disabled encryption when I was installing Linaage - I know - my mistake...) What I'm thinking to do is to do a dirty flash of the same system or an upgrade.
But before I will do it, I would like to do full backup of /data partition - sector by sector, so if my dirty flash won't work I can restore /data partition again and try to fix it again without loosing my data.
So my question is: How can I backup whole /data partition as an image? And how can I restore it?
My system is going into boot-loop, but I can get into recovery.
Thank you very much!!!
Encryption keys not withstanding it's the user partition that's likely been corrupted. You see where I'm going with this?
You try safe mode?

Categories

Resources