Adb Shell dumpheap for native not working

问题描述 投票:0回答:1

我需要获取android进程的本地转储。我正在使用的cmd是:

adb shell am dumpheap -n <pid> /data/local/tmp/dump.txt

设备是S8,Oreo OS。

每次我运行此cmd时,都会使用以下内容生成'dump.txt':

本地堆转储不可用。要启用,请运行以下命令(需要root):$ adb shell setprop libc.debug.malloc 1 $ adb shell停止$ adb shell启动

尽管我说的是,并且手机也已经扎根,但它仍然提供相同的内容。

我被困住了。任何帮助,将不胜感激。

android debugging adb native heap-dump
1个回答
0
投票

您解决了吗?我遇到了同样的问题。谢谢

© www.soinside.com 2019 - 2024. All rights reserved.