Transferred from: http://mytiankong.com/?p=11755
If you are interested in your Android device's interaction with the command line, you may want to learn some of the techniques used to uninstall an app installed on your device using ADB. In order for this method to work, you will need to set up Android ADB in your computer. You can go to see how the "adb" (Android Debug Bridge) and "ADB" (Android Debug Bridge) are installed using the two texts. In addition, your Android device must be able to be recognized by your computer, which naturally involves the installation of Android USB drive.
For uninstalling an application through ADB, you must know the package name of the application, and at this point, you should note that this is not necessarily an app's apk file name, such as the Yahoo! Mail Android terminal app, Its package name may be yahoo.mobile.client.android.mail. If you do not know the package name of the application, you can quickly summon a list of packages installed on your Android device via a command line (which will be used later in the following), as long as you look at the relevant name slowly.
Next, let's look at how to use the ADB command line to uninstall or remove Android apps. Here we take the Windows computer as an example platform, and we'll just do it when your PC is fully provisioned with Android ADB. That is, your Android device can work well in the Android ADB environment.
Uninstall or remove apps from your Android device via Android ADB
- To open the CMD command-line window on your computer, you can use either of the following methods:
1, at the same time press the computer keyboard Win+R key, and then enter cmd,OK confirm
2, click Start Menu, click Run , then enter cmd,OK confirm
- Ensure that the current default path to the cmd window is "tools" or "platform-tools" directory, and if not, set it up with the CD command.
- Connect the relevant Android device to your computer to ensure that the device is recognized by the ADB environment, which is judged by the ADB devices command, enter it in the cmd window:
ADB devices
- Press ENTER enter key to confirm that if the device identification code is displayed, it is usually a long list of random numbers, the ADB is operating normally, otherwise, check whether the driver is installed correctly
- List the installed application packages on the target device, enter the following command in the cmd window:
ADB shell PM List Packages
Press ENTER to confirm that you see the cmd window showing all of the installed app package names, however, you should note that each app package name starts with the packages: it is not actually included in the app name, the correct app package name is the packages: the following identity, such as Com.skype.raider, org.zwanoo.android.speedtest, etc.
Locate the app package that you want to uninstall or remove, such as Skype, and then enter the uninstall command:
ADB uninstall Com.skype.raider
- Press ENTER ENTER to confirm that Skype is removed from your Android device when the success prompt appears, and so on
- Complete
Summary, the ADB offload method here mainly uses a uninstall command, which is formatted as the ADB Uninstall application package name .
Uninstall or remove apps from your Android device via ADB command line (reprint)