Ove Danner
Ove Danner

Reputation: 41

Android Native Heap Inspection DDMS

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:

However, when I try to check if the property is set correctly by issueing the command:

I get the following log message:

Can someone help me with getting the native heap allocations?

Thanks,

Ove Danner

Upvotes: 4

Views: 5181

Answers (1)

Nuthatch
Nuthatch

Reputation: 3597

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.

Upvotes: 2

Related Questions