zoukankan      html  css  js  c++  java
  • 导入导出Android手机文件

    1、获得root权限:adb root;

    如提示adbd cannot run as root in production builds,参见我的另一篇文章:http://www.cnblogs.com/hdk1993/p/4770388.html

    2、设置/system为可读写:adb remount;

    3、将文件复制到PC:adb pull 手机文件目录 <PC机上文件名>;

    例:adb pull /system/etc/hosts D://hosts

    4、现在就可以修改导出的文件了;

    5、将PC机上文件复制到手机:adb push <PC机上文件名> 手机文件目录;

    例:adb push d://hosts /system/etc/hosts

    如果要查看是否修改成功,可以在PC上执行adb shell,运行cat 手机文件目录;或者在手机上运行cat 手机文件目录;

    例:cat /system/etc/hosts

  • 相关阅读:
    Careercup
    Careercup
    Careercup
    Careercup
    Careercup
    Careercup
    Careercup
    Careercup
    Careercup
    Careercup
  • 原文地址:https://www.cnblogs.com/hdk1993/p/4770380.html
Copyright © 2011-2022 走看看