adb安装和卸载apk的方式
2015-05-23 17:01
232 查看
昨天在使用adb卸载程序,结果死活卸载不了。我输入的命令和系统提示如下:
D:\testApk>adb uninstall HelloWorld
Failure
后来发现原来卸载程序时,只adb uninstall 后边的参数不应该是.apk文件,而是包名,即AndroidMainifest.xml文件中<manifest>节点下,package元素所指定的名字,如下所示
D:\testApk>adb uninstall org.crazyit.helloword
Success
安装apk的方式:
1. adb install -r Android-gateway-nightly.apk
如果安装apk到rom中,提示 “exsit 。。。” 的提示信息,可以加上 - r 参数 ,可以替换原有的apk
2. adb shell pm clean com.cvte.health
可以清除 某个包apk的数据,就是相当于清除数据
附加:
EN
CHS
EN
CHS
D:\testApk>adb uninstall HelloWorld
Failure
后来发现原来卸载程序时,只adb uninstall 后边的参数不应该是.apk文件,而是包名,即AndroidMainifest.xml文件中<manifest>节点下,package元素所指定的名字,如下所示
D:\testApk>adb uninstall org.crazyit.helloword
Success
安装apk的方式:
1. adb install -r Android-gateway-nightly.apk
如果安装apk到rom中,提示 “exsit 。。。” 的提示信息,可以加上 - r 参数 ,可以替换原有的apk
2. adb shell pm clean com.cvte.health
可以清除 某个包apk的数据,就是相当于清除数据
附加:
adb install [-l] [-r] [-s] <file>- [/code]
EN
push this package file to the device and install it -
CHS
给设备安装软件 ('-l' means forward-lock the app) #锁定该程序 ('-r' means reinstall the app, keeping its data) #重新安装该程序,保存数据 ('-s' means install on SD card instead of internal storage) #安装在SD卡内,而不是设备内部存储 [code]adb uninstall [-k] <package>- [/code]
EN
remove this app package from the device -
CHS
从设备删除程序包 ('-k' means keep the data and cache directories) #不删除程序运行所产生的数据和缓存目录(如软件的数据库文件)
相关文章推荐
- Android ADB命令大全(通过ADB命令查看wifi密码、MAC地址、设备信息、操作文件、查看文件、日志信息、卸载、启动和安装APK等)
- adb在AVD上安装卸载APK
- Android ADB命令大全(通过ADB命令查看wifi密码、MAC地址、设备信息、操作文件、查看文件、日志信息、卸载、启动和安装APK等)
- Android ADB命令大全(通过ADB命令查看wifi密码、MAC地址、设备信息、操作文件、查看文件、日志信息、卸载、启动和安装APK等)
- Android ADB命令大全(通过ADB命令查看wifi密码、MAC地址、设备信息、操作文件、查看文件、日志信息、卸载、启动和安装APK等)
- Android ADB命令大全(通过ADB命令查看wifi密码、MAC地址、设备信息、操作文件、查看文件、日志信息、卸载、启动和安装APK等)
- Android ADB命令大全(通过ADB命令查看wifi密码、MAC地址、设备信息、操作文件、查看文件、日志信息、卸载、启动和安装APK等)
- Android ADB命令大全(通过ADB命令查看wifi密码、MAC地址、设备信息、操作文件、查看文件、日志信息、卸载、启动和安装APK等)
- Android ADB命令大全(通过ADB命令查看wifi密码、MAC地址、设备信息、操作文件、查看文件、日志信息、卸载、启动和安装APK等)
- Android ADB命令大全(通过ADB命令查看wifi密码、MAC地址、设备信息、操作文件、查看文件、日志信息、卸载、启动和安装APK等)
- Android ADB命令大全(通过ADB命令查看wifi密码、MAC地址、设备信息、操作文件、查看文件、日志信息、卸载、启动和安装APK等)
- Android静默方式实现批量安装卸载APK
- Android ADB命令大全(通过ADB命令查看wifi密码、MAC地址、设备信息、操作文件、查看文件、日志信息、卸载、启动和安装APK等)
- Android ADB命令大全(通过ADB命令查看wifi密码、MAC地址、设备信息、操作文件、查看文件、日志信息、卸载、启动和安装APK等)
- 利用adb安装和卸载android APK
- 利用adb通过wifi方式进行apk安装的问题
- Android ADB命令大全(通过ADB命令查看wifi密码、MAC地址、设备信息、操作文件、查看文件、日志信息、卸载、启动和安装APK等)
- Android adb命令大全(通过adb命令查看wifi密码、MAC地址、设备信息、操作文件、查看文件、日志信息、卸载、启动和安装APK等)
- Android静默方式实现批量安装卸载APK
- adb安装/卸载apk