[Android] _ [elementary] _ [adb practical command]

Source: Internet
Author: User

[Android] _ [elementary] _ [adb practical command]


Scenario:

1. ADB serves as a bridge between pc and mobile phone, and plays an important role in debugging mobile apps and viewing mobile phone information.

2. Some useful commands are listed here for quick query.


View the list of devices that enable USB debugging: adb devices APK: adb-s xxxxx (device serial number, obtained using adb devices. If only one device is connected, you do not need to add the-s parameter) install-r (reinstall)-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. view the running APP: adb shell dumpsys activity view the installed APP: adb-s 03157df364737e11 shell pm list package start APK: adb-s 03157df364737e11 shell am start android. intent. action. MAIN-n PackageName/xx. xx. activity stop APK: adb-s 03157df364737e11 shell am force-stop com. xxx. xxx (APP Package name, AndroidManifest. (defined in xml) mobile phone communication definition port forwarding: adb-s 03157df364737e11 forward tcp: 8089 tcp: 7665 go to linux shell: adb shell for more usage refer to: adb help

Check whether the root adb shell enters and then press su to press Enter. If the root shell enters normally


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.