使用ADB Shell安装.APK
如何使用ADB Shell安装.APKS文件? 我尝试使用pm install/sdcard/testapp.apks
,但它引发了错误。我什至尝试搜索谷歌搜索这个问题,但一无所获。
How do i install an .apks file using the adb shell?
I tried using pm install /sdcard/TestApp.apks
but it threw an error. I've even tried googling the question but found nothing.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
要安装.apks文件, bundletool 需要。
命令是:
当然,需要更改上面命令中的.apks文件位置。
如果您通过USB连接了Android手机,并且ADB可以通过USB在手机上安装APK,则thing Butletool命令将在手机中安装.APKS文件。
To install an .apks file, bundletool is needed.
The command is:
Of course, it is needed to change the .apks file location in the command above.
If you have an android phone connected through usb and adb can install apks on the phone via USB, above bundletool command will install the .apks file in the phone.
.apks
文件不是Android构造。因此,Android OS不知道它,包括pm
之类的命令。您将需要使用BETLETOLOL
。An
.apks
file is not an Android construct. Hence, the Android OS does not know about it, including commands likepm
. You will need to usebundletool
.