Point to the NDK wrap.sh docs.

Bug: N/A
Test: N/A
Change-Id: Ic4c12a2ae43a6d733a23dcd2c901c2b6478eee97
This commit is contained in:
Elliott Hughes 2018-04-06 15:13:14 -07:00
parent 7dc7d2b7f2
commit 5ad142157d

View file

@ -555,7 +555,13 @@ contain any data.
### For app developers
Enable malloc debug for a specific program/application (Android O or later):
App developers should check the NDK documentation about
[wrap.sh](https://developer.android.com/ndk/guides/wrap-script.html)
for the best way to use malloc debug in Android O or later on non-rooted
devices.
If you do have a rooted device, you can enable malloc debug for a specific
program/application (Android O or later):
adb shell setprop wrap.<APP> '"LIBC_DEBUG_MALLOC_OPTIONS=backtrace logwrapper"'