Yesterday in the use of the ADB uninstall program, the results will not unload. The commands and system prompts I entered are as follows:
- D:\TESTAPK>ADB Uninstall HelloWorld
- Failure
Later found that the original uninstall program, only adb uninstall behind the parameters should not be the. apk file, but the package name, that is, the Androidmainifest.xml file in the <manifest> node under the packages element specified by the name, as follows
- D:\TESTAPK>ADB Uninstall Org.crazyit.helloword
- Success
How to install APK:
1. ADB install-r android-gateway-nightly.apk
If you install APK into ROM, prompt "Exsit ... "The hint message can be added with the-r parameter, can replace the original apk
2. adb shell pm Clean com.cvte.health
Can erase the data of a package apk, which is equivalent to purging data
Additional:
adb install [-l] [-r] [-s] <file>
En
CHS
To install software for the device ('-l ' means forward-lock the app) #锁定该程序 ('-R ' means reinstall the app, keeping its data) #重新安装该程序, save the data ('-s ' means I Nstall on SD card instead of internal storage) #安装在SD卡内 instead of device internal storageadb uninstall [-k] <package>
En
CHS
Remove the package from the device ('-K ' means keep the data and cache directories) #不删除程序运行所产生的数据和缓存目录 (such as the database file for the software)
How ADB installs and uninstalls apk