Point to the NDK wrap.sh docs.
Bug: N/A Test: N/A Change-Id: Ic4c12a2ae43a6d733a23dcd2c901c2b6478eee97
This commit is contained in:
parent
7dc7d2b7f2
commit
5ad142157d
1 changed files with 7 additions and 1 deletions
|
@ -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"'
|
||||
|
||||
|
|
Loading…
Reference in a new issue