用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)