gdbserver

How to start an android app with valgrind

家住魔仙堡 提交于 2019-11-26 15:35:58
问题 I've been searching for the last week trying to find an answer to this question. How do I start an Android app with valgrind? I know I can start an app with the 'am' command, but it starts the app and exits. I'm writing an app that uses the NDK for native C code, and I need to check it for suspected memory errors. Edit: I've learned a little more. You can "wrap" an app with a shell script. Here's the shell script I'm using: #!/system/bin/sh VGPARAMS='--error-limit=no' export TMPDIR=/data/data