android 开发中 最近在工作中用到的 adb 命令:
命令1:将linux 文件 拽出
adb pull system/bin/aa.ini D:\aa\aa.txt 注意: window 和 linux 的文件夹 \ / 的区分
命令2:将windows 文件 推入
adb push D:\aa\aa.txt system/bin/aa.ini 注意: window 和 linux 的文件夹 \ / 的区分
一下需要进入 adb shell (就是在 cmd 中键入adb shell)
命令3: 修改权限 sh* 为前两个字母为sh的所有文件
chmod 777 sh*
命令4: 挂在远端文件或设备
mount -o remount,rw system/aaaa/
在使用命令3 但是 直接仍然无法 push , 所以直接调用 4 , 将文件夹重新挂载过来, 再使用 push 就可以了。