简体   繁体   English

使用 adb shell 安装 .apks

[英]Installing .apks using adb shell

How do i install an .apks file using the adb shell?如何使用 adb shell 安装 .apks 文件? I tried using pm install /sdcard/TestApp.apks but it threw an error.我尝试使用pm install /sdcard/TestApp.apks但它引发了错误。 I've even tried googling the question but found nothing.我什至试过用谷歌搜索这个问题,但什么也没找到。

An .apks file is not an Android construct. .apks文件不是 Android 构造。 Hence, the Android OS does not know about it, including commands like pm .因此,Android 操作系统不知道它,包括pm之类的命令。 You will need to use bundletool .您将需要使用bundletool

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM