>adb: error: failed to copy ‘xx.apk‘ to ‘/system/app/test1.apk‘:remote Permission denied

adb push apk 出现错误remote Permission denied

  • system没有读写权限
  • 解决办法
    • adb root;adb remount
    • adb shell mount -o rw,remount /system

system没有读写权限

C:\Users\Administrator>adb push test1.apk /system/app/

adb: error: failed to copy 'test1.apk' to '/system/app/test1.apk':

remote Permission denied

test1...ile pushed, 0 skipped. 58.8 MB/s (2806241 bytes in 0.046s)

adb push失败,缺少系统权限,push到系统盘,但是系统只读,可以添加系统权限再push
>adb: error: failed to copy ‘xx.apk‘ to ‘/system/app/test1.apk‘:remote Permission denied_第1张图片

解决办法

adb root;adb remount

C:\Users\Administrator>adb root
restarting adbd as root

C:\Users\Administrator>adb remount
remount succeeded

C:\Users\Administrator>adb push test1.apk /system/app/

test1...ile pushed, 0 skipped. 62.5 MB/s (2806241 bytes in 0.043s)

adb remount 重新挂载system,即读写权限获取

adb shell mount -o rw,remount /system

C:\Users\Administrator>adb shell 
mount  -o  rw,remount /system

C:\Users\Administrator>adb push test1.apk /system/app/

test1...ile pushed, 0 skipped. 62.5 MB/s (2806241 bytes in 0.043s)

/syetem获取读写权限

你可能感兴趣的:(Android,记录错误,adb,android,android,studio)