Skip to content

Instantly share code, notes, and snippets.

@alethenorio
alethenorio / android_dump.txt
Last active August 20, 2018 14:38
Retrieving android disk dump
# Go into Android connected device with "adb shell"
# Run mount and find the /data mount block device. You can ls the "byname" ones to find the actual block device
# Extract the base block device. E.g
# If we find out /data is in /dev/block/mmcblk0p27 then we should use /dev/block/mmcblk0
# Dump the memory
# Dump it raw
adb shell "su -c 'stty raw; cat /dev/block/mmcblk0'" > /tmp/androind_data_dump.raw