简体   繁体   English

本机堆 Android 设置

[英]Native heap Android setup

I know I can get native heap by replacing system/lib/libc.so with /system/lib/libc_debug.so (actually I found ), and adding "native=true" to my ddms.cfg.我知道我可以通过将 system/lib/libc.so 替换为 /system/lib/libc_debug.so (实际上我找到了),并将“native=true”添加到我的 ddms.cfg 来获得本机堆。 However, I couldn't replace the libc.so, no matter how I tried.但是,无论我如何尝试,我都无法替换 libc.so。 I did this on emulator, because we don't have any rooted device.我在模拟器上做了这个,因为我们没有任何根设备。 I tried via adb shell, from command line, but it says I don't have permission to write.我从命令行尝试通过 adb shell,但它说我没有写权限。 Tried chmod, no joy.尝试了chmod,没有喜悦。 How should I replace the file on the emulator?我应该如何替换模拟器上的文件?

Sounds like you didn't remount the system partition (/system).听起来您没有重新安装系统分区(/ system)。 It's mounted read only (even on the emulator), so chmod won't help.它以只读方式安装(即使在模拟器上),因此 chmod 无济于事。

Just do adb remount .只需执行adb remount Check the output of mount run from a shell on the device to see the read/write status of any mount point.从设备上的 shell 检查mount运行的 output,以查看任何挂载点的读/写状态。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM