Sunday, November 18, 2007

How to Uninstall APK Files from Android Device Emulator

In our previous tutorial How to Install APK Files on Android Device Emulator we described how to install step-by-step an APK package on the emulator. Today we want to briefly cover how to remove already installed applications.

Note: Google explains that in short here: http://code.google.com/android/intro/installing.html#uninstalling

To perform this operation you would need (how logical) the emulator itself, which is shipped with Android SDK. Once again, you don't need Eclipse development environment neither for installing and testing of Android applications nor to remove it from the emulator.

Ok, so you have a working SDK with emulator. In the SDK's main directory (in the last how-to we called it "$SDK_ROOT") there is the folder called "tools". You need to start the console terminal ("Start -> Run... -> type 'cmd'" for Windows PCs). Type-in the following command: adb shell rm data/app/$APK where $APK is the name of the APK file. For example if you want to uninstall the Snake game, you should type this: adb shell rm data/app/Snake.apk

That's it. Now you can install the Snake again :)

6 comments:

  1. adb uninstall
    ReplyDelete
  2. Hi Can you Help me to install the the apk file I am getting the following error When I try to install the Apk file by using adb mypackagename.apk
    Failure INSTALL PARSE FAILED NO CERTIFICATES
    Please let me know How to do and what i want to do
    ReplyDelete
  3. Hi,

    How to install/uninstall apk file to specific emulator if morethan 1 found through command-line.
    ReplyDelete
  4. to uninstall a package :
    adb uninstall

    to have the list of packages names :
    adb shell ls data/data
    ReplyDelete
  5. can be uninstalled using the package value from AndroidManifest.xml

    If your AndroidManifest.xml says
    package="com.android.test"

    then use this
    adb uninstall com.android.test
    ReplyDelete
  6. TO UNINSTALL YOUR APP FROM EMULATOR:::--

    JUST GO TO-->>

    SETTINGS -> APPLICATIONS -> MANAGE APPLICATIONS -> Click On Your App Name -> UNINSTALL.
    ReplyDelete