![]() Forward the port from phone to PC and run a netcat TCP server in listening mode: ~$ adb reverse tcp:1024 tcp:1024 To avoid the terminal-related complications described above or if for some reason adbd cannot be run as root, it's also possible to create a minimal TCP server for data transfer. To avoid unwanted characters, use stty raw and/or dos2unix: ~$ adb shell 'stty raw & dd if=/dev/block/bootdevice/by-name/userdata' > data.imgīut the most straightforward way is: ~$ adb pull /dev/block/bootdevice/by-name/userdata data.img Even a single wrong byte may render filesystems un-mountable. Also STDOUT or STDERR from the programs involved could possibly be added to the file if not directed to /dev/null. * Make sure your adb binary (on Windows or Linux) supports exec-out.īut you may end up with corrupted data when writing a whole large-sized partition to STDOUT of terminal because there are issues with line break types ( CR and LF). Then it can be used in multiple ways: ~$ adb exec-out dd if=/dev/block/bootdevice/by-name/userdata > data.img First you need a working adb setup, running as root. If you don't want to use an external SD card, you can also dump the partition directly to PC. ![]() To create the dump: ~# dd if=/dev/block/bootdevice/by-name/userdata of=/path/to/ext_sdcard/data.img An external SD card with larger capacity is needed. Since the userdata partition is the largest partition (all other partitions are hardly using 5GB out of total storage), you can't dump it to your internal memory. ![]() Once the block device is known, you can use the dd command from:
0 Comments
Leave a Reply. |