BackupsResearch » History » Version 2
Denis 'GNUtoo' Carikli, 09/09/2019 09:37 PM
| 1 | 1 | Denis 'GNUtoo' Carikli | h1. BackupsResearch |
|---|---|---|---|
| 2 | |||
| 3 | {{>toc}} |
||
| 4 | |||
| 5 | h2. Doing the backup of partitions or other block devices |
||
| 6 | |||
| 7 | h3. adb shell cat pipe |
||
| 8 | |||
| 9 | "Old versions of the EFS backup instructions":https://redmine.replicant.us/projects/replicant/wiki/BackupTheEFS/17 used the following command: |
||
| 10 | <pre> |
||
| 11 | adb shell "cat /dev/block/platform/*/by-name/EFS > /EFS.img" |
||
| 12 | </pre> |
||
| 13 | |||
| 14 | At some point or under some condition, this stopped working and the backup were corrupted. |
||
| 15 | 2 | Denis 'GNUtoo' Carikli | |
| 16 | h3. adb shell cat adb pull |
||
| 17 | |||
| 18 | <pre> |
||
| 19 | adb shell "cat /dev/block/platform/*/by-name/EFS /dev/block/platform/*/by-name/EFS" > /EFS.img" EFS.img |
||
| 20 | adb pull /EFS.img ./ |
||
| 21 | </pre> |
||
| 22 | |||
| 23 | Doing in in two stage like that seem to be widely used in other instructions (like the ones found in XDA forums). |
||
| 24 | |||
| 25 | Normally cat should produce a valid backup, however it might be better to use dd for extra safety. |
||
| 26 | |||
| 27 | On Replicant 6.0 0004, the recoveries for the following devices have 'dd': |
||
| 28 | * Galaxy Nexus |
||
| 29 | * Galaxy SIII |
||
| 30 | |||
| 31 | h3. adb pull the block device |
||
| 32 | |||
| 33 | The following should also work: |
||
| 34 | <pre> |
||
| 35 | adb pull /dev/block/mmcblk0p3 ./EFS.img |
||
| 36 | </pre> |