push成功没有返回消息,出错会返回错误信息,例如向只读的目录push文件:
adb push test.txt /system/app/
会返回:
failed to copy '11' to '/system/app//11': Read-only file system
可以使用:
adb shell
进入手机,到指定的目录查看push的结果。
push 后,你在你push到的那个目录下 输入adb shell ls 查看有没有你刚刚push 的文件。不过一般push 文件的话都会成功的,除非你的分区大小不够,push的文件太大,才会push失败, 另外,push有些文件,你可能需要重新启动你的机器