Android Tutorials - Herong's Tutorial Examples - Version 3.00, 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

 About This Book

 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)

 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

 Android 4.0.3 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

 Samsung Galaxy Tab 3 Mini Tablet

 USB Debugging Applications on Samsung Tablet

 Android Tablet - LG-V905R

 USB Debugging Applications on LG-V905R Tablet

 Android Phone - LG-P925g

 USB Debugging Applications on LG-P925g Phone

 Outdated Tutorials

 References

 PDF Printing Version

Android Debug Bridge (adb) Tool - Updated in 2015, by Dr. Herong Yang