I'm having trouble getting the native heap information from my HTC Magic running Android 2.2.1. I've configured the standalone DDMS setting "native=true" and used the commands:
- adb shell setprop libc.debug.malloc 1
- adb shell stop
- adb shell start
However, when I try to check if the property is set corr开发者_开发百科ectly by issueing the command:
- adb shell ls
I get the following log message:
- "/system/bin/sh: Missing module /system/lib/libc_malloc_debug_leak.so required for malloc debug level 1"
Can someone help me with getting the native heap allocations?
Thanks,
Ove Danner
I'm using this on a Xoom : http://code.google.com/p/honeycomb-sdk-united-base/source/browse/trunk/system/lib/?r=8
Download the raw file using "save as"and then
adb remount
adb push libc_malloc_debug_leak.so /system/lib/libc_malloc_debug_leak.so
You already have root so the adb remount and pushing to /system/lib should work for you.
You can "probably" also build that library by building Android from source. But this was quicker for me.
精彩评论