Android Tutorials - Herong's Tutorial Examples - v3.05, by 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.
Table of Contents
Installing JDK 1.8 on Windows System
Installation of Android SDK R24 and Emulator
Installing Apache Ant 1.9 on Windows System
Developing First Android Application - HelloAndroid
Android Application Package (APK) Files
►Android Debug Bridge (adb) Tool
What Is Android Debug Bridge (adb)
Install "adb" as Part of SDK Platform Tools
USB Debugging Connection to Use "adb" Tool
Wireless Debugging Connection to Use "adb" Tool
Debugging Connection to Android Device Emulators
Commands and Options Supported by "adb"
►"adb install" and "adb uninstall" Commands
"adb push" and "adb pull" Commands
"adb shell" - Remote Shell Interface
AboutAndroid - Application to Retrieve System Information
android.app.Activity Class and Activity Lifecycle
View Objects and Layout Resource Files
Using "adb logcat" Command for Debugging
Build Process and Package File Content
Samsung Galaxy Tab 3 Mini Tablet
USB Debugging Applications on Samsung Tablet
USB Debugging Applications on LG-V905R Tablet