如何使用 gitbash 将文件推送到 android 设备

How to push a file to android device by using gitbash

我需要通过 Gitbash 将文件推送到我的 android 设备的 system/bin,但它失败了,因为它引用了我的 git.

的系统
adb push file1 /system/bin

>failed to copy 'file1' to 'C:/Program Files/Git/system/bin': No such file or directory*

我也尝试使用命令提示符,得到同样的错误。

要进行推送,您需要像这样对设备进行 root 和重新挂载:

  • adb root
  • adb remount

然后像这样继续(注意你有额外的斜线)

  • adb push file1 system/bin/