0

AFAIK, all Android partitions are listed in /dev/block/by-name.

Assuming device encryption is turned on, if I backup all partitions with e.g. (one at a time)

for PARTITION in $(ls /dev/block/by-name)
do
    dd bs=64K if=/dev/block/bootdevice/by-name/$PARTITION of=/partitions/$PARTITION
done

can I then factory reset my device, transfer the images via e.g.

for PARTITION in $(ls /partitions/partitions)
do
    dd bs=64K if=/tmp/partitions/$PARTITION of=/dev/block/bootdevice/by-name/userdata
done

, and everything will be like before including the lockscreen encryption password? I would save the images on another device instead of /partitions, but let us keep it simple.

Or am I missing something? I just want a full backup solution, which, after a factory reset, lets me make it as if it didn't happen. Ideally without root.

PS: I have looked into TWRP. The problem is that it only decrypts data before backup for few devices, and when it doesn't decrypt data, encryption keys are not backed up for some reason, so backups are useless for most encrypted devices.

6

0

You must log in to answer this question.