android模拟器 adb "mount -o remount rw /system"->mount: Permission denied

emulator -avd your_avd_name -writable-system

使用这个命令启动模拟器,开启时就设置system为可写文件夹

adb shell 

su

mount -o remount,rw /system

chmod 777 /system

如果继续出现remount failed: Permission denied

解决:

1. 确定是否正确连接手机了
adb devices
2. 进入shell
adb shell
3. shell中输入命令(命令最前面的#号不用输入)
# su 
# mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system 
 # chmod 777 /system 
# cd system
 # chomd 777 data
# cd data

# chomd 777 local
# cd local
 # exit
4. 然后你就有目录/data/local的读写权限了,这样就可以使用adb push 把文件push到该中去了。


猜你喜欢

转载自blog.csdn.net/github_38641765/article/details/80335102