Android uses the ADB command to uninstall programs when there are multiple emulator devices and real machine devices

Source: Internet
Author: User

Situation: The general situation is directly uninstalled, or use ADB uninstall COM.XXX.XXX (package name)

Then today on different devices to adapt, a high version of the direct long press and then dragged into the garbage bin unloading. However, in systems with a system version of 2.3,

You have to go to Settings---> Apps---> (corresponding program) click Uninstall. I really feel very troublesome, so I want to use the command to uninstall.


Use the ADB command to view the currently connected device, command: ADB devices


You can see that there are 4 devices to begin with, CFFXXXX is the real machine, and the other is the device ID of the simulator.

You can know that the device ID corresponding to the simulator is identified using the IP address plus port number.


How do you know the simulator for 192.168.56.102:5555? You can open DDMS directly to view:


Then look directly at the simulator above name:



Now uninstall the corresponding program: adb-s 192.168.56.101:5555 Uninstall com.xxx.xxx

Which uses the-s 192.168.56.101:5555 to specify the appropriate specific device



Summary: First use ADB devices to view the device,

Install on one device: adb install xxx.apk

Uninstall on one device: adb uninstall com.xxx.xxx


Install on multiple devices: Adb-s xxxxxx (device number) Install xxx.apk

Uninstall on multiple devices: Adb-s xxxxxx (device number) Uninstall Com.xxx.xxx



Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Android uses the ADB command to uninstall programs when there are multiple emulator devices and real machine devices

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.