zoukankan      html  css  js  c++  java
  • 关于ADB push 出现failed to copy 'D:file.xtxt' to '/system/temp/' : Read-only file system 的报错信息解决办法

    首先使用USB连接电脑与小机,然后安装adb相应的驱动,这是第一步,也是必须要做的。

    进入doc系统后,敲入adb shell  可以进入linux命令行状态,说明adb可以使用了。

    回到标题,我们现在要讲的是adb push命令的使用。如果你的linux也安装有adb命令的话,可以使用adb --help查看一下adb是如何使用的。我这里挑选一条来分析:

    adb push <local> <remote>    - copy file/dir to device    

    这就是adb push的使用方法了,这个不用我解释,大家都懂吧。

    下面介绍如何使用这个命令:

    假设你的文件在D盘的根目录下,比如D:file.txt

    进入DOC后,使用命令:adb push D:file.txt  /system/temp/

    意思是将Windows下D盘根目录下的file.txt文件拷贝到小机(手机或者平板)的/system/temp/目录下。

    你在运行这条命令时,可能会遇到failed to copy  'D:file.xtxt' to '/system/temp/' : Read-only file system 的报错信息。

    怎么解决呢?很简单,使用下面这条命令:

    先退出adb,再remount!!!

    adb remount

    它的意思是将设备改为可读可写。

      adb remount    - remounts the /system partition on the device read-write

    看到remount succeeded后,就可以再次执行:adb push D:file.txt  /system/temp/  这样就可以成功了,就可以在小机的/system/temp/目录下看到file.txt文件了。

    如果你要将小机的文件拷贝到电脑上来,那就执行adb pull命令,

  • 相关阅读:
    springboot springdata 整合es
    forkJoinPool
    springboot整合ElasticSearch
    雪花算法生成全局唯一ID
    linux环境下elasticsearch+kibana+ik(实现热词自动更新)
    ECMAScript 6新特性简记
    Tsung:开源多协议分布式负载&压力测试工具
    js 数组迭代方法总结
    js for循环
    箭头函数this的问题
  • 原文地址:https://www.cnblogs.com/jsjs666/p/9959135.html
Copyright © 2011-2022 走看看