adb操作遇到Permission denied和operation not permitted相关

用adb 操作真机 经常遇到各种各样的

Permission denied

Operation not permitted

(手机已经root)


使用adb push 命令 提示Operation not permitted时

$ adb root

adbd is already running as root

(adb取得root权限,你发现adb shell 进去以后 直接时root权限#  而不是XXXX$)

$adb remount

$abd push XXXX /system/bin



给文件或文件夹赋予可读可写可执行权限:

chmod 777 xxxxx

chmod -R 777 /xxxxx


有时chmod 777失败时,重新挂载所有分区:

su

mount

mount -o remount,rw /

(或仅仅重新可读写挂载system分区,mount -o remount,rw /system)







猜你喜欢

转载自blog.csdn.net/zero9988/article/details/51361259
今日推荐