Sep 29, 2012

f Comment

Use adb Tool to Uninstall an Android App in SECONDS!

AmazonAs you know adb.exe is a platform tool of the Android SDK that allows you to install and uninstall an Android app on your Android device or on an emulator. I cannot find detailed documentation on how to use adb.exe; so I thought I'd share with you how to uninstall an app with adb tool!

On Windows adb.exe is usually located at C:\Program Files (x86)\Android\android-sdk\platform-tools.
I am using Android SDK 4.1, or API 16.
Solution
To uninstall an app use package name as the target in the 'uninstall' command!

As you know the package name (or package value, package path) is a unique identifier that identifies your app on a device or on an emulator. Suppose you have two apps and they both have package "come.example.myfirstapp". If you install both of them you'll see that the latter app overwrites the former one.

For example if your app's package name is "com.example.myfirstapp" then here's the command you use to uninstall your app.

adb.exe uninstall com.example.myfirstapp
How Do You Find the Package Name?
Look in your AndroidManifest.xml. Suppose it looks like the following:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.myfirstapp"
...

Then the package name is 'com.example.myfirstapp'. You can also find the package name in the main activity's 'package' value at the very top.

If you have any questions let me know and I will do my best to help you!
Please leave a comment here!
One Minute Information - by Michael Wen
ADVERTISING WITH US - Direct your advertising requests to Michael