本文介绍了ADB安装进度条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个初学者,所以如果我问任何明显的问题,请介意我.我正在尝试使用adb install apk.apk apk 安装到我的设备上,但是 apk 大约有几百MB,并且需要一些时间.我可以在命令窗口中实现某种进度条以显示进度吗?我看过 adb push/pull 的东西.我不确定是否相同.我正在 Windows 8.1 中运行它.我还设置了一个 adb 环境变量.

I'm a beginner at this so just mind me if I ask anything obvious. I'm trying to install an apk to my device using adb install apk.apk however, the apk is around a few hundred MB big and it takes some time. Is there some sort of progress bar that I could implement in the command window to show the progress? I've seen stuff for adb push/pull . I'm not sure if it's the same. I'm running this in Windows 8.1. I also have an adb environment variable set up.

非常感谢.

推荐答案

好吧,adb install apk.apk只是一个美化的快捷方式:

Well, adb install apk.apk is just a glorified shortcut for:

adb push apk.apk /data/local/tmp
adb shell pm install /data/local/tmp/apk.apk
adb shell rm /data/local/tmp/apk.apk

因此,如果您倾向于查看上传进度栏-只需先adb push -p您的apk,然后再adb shell pm install手动或使用简单的脚本.

So if you are so inclined to see the upload progress bar - just adb push -p your apk first and then adb shell pm install it either manually or with a simple script.

这篇关于ADB安装进度条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-02 05:05