Android Tutorials - Herong's Tutorial Examples - Version 3.01, by Dr. Herong Yang
"adb install" and "adb uninstall" Commands
This section describes 'adb install' and 'adb uninstall' commands that allows you to install an application APK package and uninstall it on the connected emulator or device.
The most commonly used "adb" command is the "adb install" command that allows you to install an application stored in the specified APK file to the connect Android emulator or device:
adb install <path_to_apk>
You can also uninstall a package from the connected emulator or device by using the "adb uninstall" command:
adb uninstall <apk_name>
If you have downloaded the "Adobe Reader" APK file as described in the previous chapter, you can play with the following "adb" install and uninstall commands:
C:\local\android-sdk-windows\platform-tools>adb install \ \herong\down\Adobe_Reader_10.0.0.apk 1072 KB/s (1565975 bytes in 1.426s) pkg: /data/local/tmp/Adobe_Reader_9.0.2.apk Success C:\local\android-sdk-windows\platform-tools>adb install \ \herong\down\Adobe_Reader_10.0.0.apk 1110 KB/s (1565975 bytes in 1.377s) pkg: /data/local/tmp/Adobe_Reader_9.0.2.apk Failure [INSTALL_FAILED_ALREADY_EXISTS] C:\local\android-sdk-windows\platform-tools>adb uninstall \ com.adobe.reader Success C:\local\android-sdk-windows\platform-tools>adb uninstall \ com.adobe.reader Failure
Ok. Both "install" and "uninstall" command worked nicely.
Last update: 2015.
Table of Contents