[Android]_[0 basic]_[adb useful commands]

Source: Internet
Author: User


Scene:

1. As a bridge between PC-side and mobile-phone communication, ADB plays an important role in debugging mobile app and viewing mobile phone information.

2. Some of the more useful commands are listed here to facilitate quick check.


To view a list of devices on which USB debugging is turned on: ADB devices install APK:    adb-s xxxxx (device serial number, using ADB devices, assuming that only one device is connected, do not need to join the-s parameter) install-r (install again)-S ( Install to SD card) apk local path    adb install C:\1.apk    adb-s 03157df364737e11 install C:\1.apk    adb-s 03157df364737e11 Install-r C:\1.apk    adb-s 03157df364737e11 install-r-S C:\1.apk uninstall apk:adb-s 03157df364737e11 Uninstall com.xxx.xxx ( APP package name, androidmanifest.xml definition) view executing app:adb shell Dumpsys activity view installed App:adb-s 03157df364737e11 shell pm List package launches Apk:adb-s 03157DF364737E11 shell am start android.intent.action.main-n packagename/xx.xx.activity        ADB shell am start-a android.intent.action.main-n packagename/com.xxx.ui.fullscreenactivity--ei ID 100 Stop apk:adb-s 0315 7DF364737E11 Shell am force-stop com.xxx.xxx (APP package name, androidmanifest.xml definition) Mobile communication definition port forwarding: adb-s 03157df364737e11 forward tcp:8089 tcp:7665 into the Linux shell:adb shell many other uses: ADB help

Check if root       adb shell enters and then hit Su to enter, assuming normal access is root


[Android]_[0 basic]_[adb useful commands]

Related Article

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.