Here is a general question. If one uses TWRP in order to create a backup and one selects “System Image”, will one get a perfect stock image that one can trust, in case of device bricking? I went through the FAQ here: https://twrp.me/faq/whattobackup.html, a “Vendor image” seems to be proposed for some devices (obviously not for FP3, at least not yet), but nowhere can I find precise information on what exactly is backed up.
You should generally use the respective “Image” for every partition that gives you that option.
Image will create a direct one-to-one copy of the underlying block-device.
TWRP typically doesn’t include backup-options for all possible partitions.
I have included the ones that are most likely to be modified when the device is rooted.
I have also included some partitions that contain device-specific information such as IMEI (EFS).
It is probably a good idea to backup EFS once and store it somewhere safe, but you typically should not restore it every time.
For a normal ROM Backup/Restore cycle the following partitions should suffice:
@k4y0z Excuse the “stupid” question, but can you point me at a good tutorial/doc/howto for compiling your TWRP from source? I’m having trouble setting up the build environment (lunch gives me errors with non-existing paths)
Hm I’m having trouble to backup the data partition:
Backing up Data (excl. storage)…
Backups of Data do not include any files in internal storage such as pictures and downloads.
createTarFork() process ended with ERROR: 255
Backup failed. Cleaning Backup Folder.
The recovery.log file contains the following at the end:
I:addFile ‘/data/misc_ce’ including root: 1
==> set selinux context: u:object_r:system_data_file:s0
I:addFile ‘/data/misc_ce/10’ including root: 1
==> set selinux context: u:object_r:system_data_file:s0
failed to lookup tar policy for ‘/data/misc_ce/10’ - ‘ced9be5f13b1f6aa’
I:Error adding file ‘/data/misc_ce/10’ to ‘/external_sd/TWRP/BACKUPS/A209G7PH0202/2020-01-25–04-25-27_89012A010520191217/data.ext4.win000’
Error creating backup.
I:ERROR tarList for thread ID 0
Error creating backup.
I:InfoManager saving ‘/external_sd/TWRP/BACKUPS/A209G7PH0202/2020-01-25–04-25-27_89012A010520191217/data.info’
createTarFork() process ended with ERROR: 255
Backup Failed. Cleaning Backup Folder.
A huge Thank you! to everybody having made this available.
It’s so good to have this on the phone. And it even can decrypt Android 9 encryption (which is not a given and not required to work).
Thanks I’ve given it a shot. Still the same problem. My guess from looking into the /data/misc_ce folder is that it’s not properly decrypting the second user: