美文网首页
adb push 失败提示 ‘Read-only file sy

adb push 失败提示 ‘Read-only file sy

作者: _AKI_Peroro_ | 来源:发表于2016-01-22 00:59 被阅读0次

    $ adb push ./xxx /xxx/
    failed to copy './xxx' to '/xxx/xxx': Read-only file system

    解决方法:

    $ adb root
    restarting adbd as root
    $ adb remount
    remount succeeded
    $ adb push ./libbacktrace.so /system/lib/
    2783 KB/s (58588 bytes in 0.020s)

    已经按照上面的步骤做了,还是提示 ‘Read-only file system’怎么办

    $ adb shell

    mount

    /dev/block/by-name/android_system /system ext4 ro,seclabel,relati me,data=ordered 0 0
    可以看到/system还是只读属性‘ro’,接下来我们把它remount成rw

    mount -o remount -o rw /system

    mount

    /dev/block/by-name/android_system /system ext4 rw,seclabel,relati me,data=ordered 0 0

    tips:
    先 adb root 再adb remount 否则会出现下面的情况

    $ adb remount
    remount of system failed: Permission denied
    remount failed

    可能需要adb reboot 注意看命令行中的提示

    相关文章

      网友评论

          本文标题:adb push 失败提示 ‘Read-only file sy

          本文链接:https://www.haomeiwen.com/subject/myolkttx.html