- Copy the binary to the appropriate path ex) /data/local/tmp
- Grant Execution Permissions
chmod 777 ./allmemdump
- run
./allmemdump <pid>
- The dump is extracted in
/data/local/tmp/allmemdump-result.
On the rooted Android device, use ptrace to dump the memory area with all r privileges on the pid. This project was created out of my need, so there may be bugs.
You need Android NDK.
I'm use NDK 26.1.10909125.
ex) Windows
"your_ndk_path\ndk-build.cmd" -C this_repository_path