Common usage and ADB commands in the ADB debugging process

Source: Internet
Author: User

This article mainly explains a few of our common use in the debugging process of several ADB commands and usage, the specific process of ADB connection here will not speak more
For instructions on how to connect your phone via the adb command, refer to
How to debug adb via PC-connected Android device

First you must ensure that you correctly configure the ANDROIDSDK (otherwise this is directly open, you need to enter into the Sdk-platform-tools path under the ADB command), say not much, look at the picture

1) ADB devices
(To see what devices are currently connected to ADB, which are currently none)

2) ADB Connect IP address
(Used to connect Android debugging device, after the connection is successful and then check again, of course you can also connect a few more devices)

3) adb install APK path
(ADB command install APK)

4) ADB uninstall APK package name
(Then the problem comes, we installed the APK, but what is the package name, do not know the package name how we uninstall by the ADB command)

6) ADB shell pm list package-f
(Get the package name of all the APK in the phone, so much, how do we know which is the package name of the APK that we just loaded???)

5) ADB Shell Dumpsys window W | FINDSTR \ | Findstr name=
(This method is to view the APK package name installed on the device and to open the installed apk in the device)

6) AAPT dump badging apk path
(This method is to view the APK package name on the PC,,, Focus:::: AAPT, this tool in the Sdk-build-tools directory, copy-paste, move to Platform-tools Path)

7) The package name is there, so let's try the ADB uninstall APK package to uninstall the APK.

This time to see if the phone has been successfully uninstalled

8) ADB Kill-server
(This command is used to kill all the ADB debug device connections)

9) ADB shell
(Finally, to add another, adb shell used to enter the operating system, where you can enter some other commands to complete the corresponding operation, after completion, remember Ctrl + C exit)

Common usage and ADB commands in the ADB debugging process

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.