模拟器调试中动态链接库的替换

想在Android的system下的lib中,加入so文件,但是报错:Failed to push the items: Read-only file system。

 

模拟器的话

使用>emulator -partition-size 256(需要的大小) -avd XXX(模拟器名 如android2.2)
启动模拟器之后

>adb remount
>adb push /home/.../out/target/product/generic/system/lib/libskia.so  /system/lib

即可。

你可能感兴趣的:(android,File,System)