From 5bd8253d71482f2badc2d096ad728e57aebca810 Mon Sep 17 00:00:00 2001 From: bloodstalker Date: Wed, 7 Mar 2018 15:07:18 +0330 Subject: update --- README.md | 9 ++++++++- run.sh | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cfaee7a..bfd964c 100644 --- a/README.md +++ b/README.md @@ -3,13 +3,20 @@ Dump Memory # Building -For Android:
+If you are building for Android and your host is linux:
```bash export NDK_PROJECT_DIR=`pwd` make android ``` +If you are building for android and your host is windows and you use cygwin, you can't use `pwd` to get the path since that would return a nix style path and your windows ndk won't recognize that. Just give it a windows path.
+ For Linux: ```bash make ``` + +if you are building on linux for linux or android on android just run `make` and you're good to go. you obviously need sudo to attach to a pid so it wont work on your android device if its not rooted.
+ +For windows: +You can't use this to get RAM dumps on windows.
diff --git a/run.sh b/run.sh index 93a373a..d426235 100755 --- a/run.sh +++ b/run.sh @@ -1,4 +1,4 @@ -#/data/data/com.termux/files/usr/bin/bash +#!/data/data/com.termux/files/usr/bin/bash #/usr/bin/bash -./main $(pgrep "$1") +./main $(pgrep "$1") > ramdump -- cgit v1.2.3