Android Tutorials - Herong's Tutorial Examples
Dr. Herong Yang, Version 2.1

"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_9.0.2.apk
439 KB/s (1839413 bytes in 4.084s)
        pkg: /data/local/tmp/Adobe_Reader_9.0.2.apk
Success

C:\local\android-sdk-windows\platform-tools>adb install \ 
   \herong\down\Adobe_Reader_9.0.2.apk
358 KB/s (1839413 bytes in 5.013s)
        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: 2012.

Table of Contents

 About This Book

 Installation of Android SDK R17 and Emulator

 Installing JDK 1.7 on Windows System

 Installing Apache Ant 1.8 on Windows System

 Developing First Android Application - HelloAndroid

 Android Application Package (APK) Files

Android Debug Bridge (adb) Tool

 What Is Android Debug Bridge (adb)

 Commands and Options Supported by "adb"

"adb install" and "adb uninstall" Commands

 "adb shell" - Remote Shell Interface

 "adb push" and "adb pull" Commands

 Android File Systems

 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

 Building Your Own Web Browser

 Android Command Line Shell

 Android Phone - LG-P925g

 USB Debugging Applications on LG-P925g Phone

 Android Tablet - LG-V905R

 USB Debugging Applications on LG-V905R Tablet

 References

 PDF Printing Version

Dr. Herong Yang, updated in 2012
Android Debug Bridge (adb) Tool