Is there a way to perform a memdump of an android device? I need the content of the entire memory (RAM). Maybe there is a shell command (meminfo will not do because it displays only memory information, not the content of RAM) or maybe somebody has a program which does this.
2 Answers
Since Android uses Linux as kernel /dev/kmem
exists. It's a virtual character device file that is an image of the main memory of the computer.
You can simply dump it with
cat /dev/kmem > file
but only as root.
-
thanks, this is what I wanted, also there is a physical memory file (/dev/mem) I will look to see what is the difference, but now I know where to look at.– MariusCommented Jun 28, 2012 at 16:58
-
cat
for anymem
device never work. Becausecat
read device sequentially and zero page never mapped in memory. Zero page must be not mapped for getSIGSEG
(Segmenataion fault) on resolvenull
pointer. Thencat
failed read and outputfile
will be empty.– EnybyCommented Mar 26, 2017 at 12:47
You can use GameGuardian for this. Need root.
Memory editor tab - menu - memory dump - select range and folder - press ok - wait for toast "Dump end".
Here some video examples how to do this: