Hi guys, I am tracking a native memory leak issue for a 3rd-part app on our android platform.
Environment: 1 Android 8.1 2 user_debug 3 libc_malloc_debug.so exist I got a resource(https://source.android.com/devices/tech/debug/native-memory) from google that how to debug the native memory leak. followed the steps described: 1 adb root 2 adb remount 3 adb shell setprop wrap.com.xxx.xx.xxx '"LIBC_DEBUG_MALLOC_OPTIONS=backtrace logwrapper"' 4 adb shell getprop | grep wrap (the output shows that configuration was successful) 5 adb shell am force-stop com.xxx.xx.xxx 6 adb shell am start -n com.xxx.xxx.xx.xxx/.MainActivity 7 logcat -d | grep "malloc_debug" (can't find the "/system/bin/app_process64: malloc debug enabled") 8 operate the app, and try to duplicate the native memory leak 9 adb shell am dumpheap -n pid /data/tmp/local/heap.txt 10 adb shell cat /data/tmp/local/heap.txt The heap.txt file is 0 byte. I don't know why i dump an empty heap file? anyone got the same issue? please help. Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/96af3c81-0977-4837-814b-9993ef750ecc%40googlegroups.com.

