Use of Android adb

Source: Internet
Author: User

Reference: http://blog.csdn.net/veryitman/article/details/6437090

1. Enter the shell

Enter device Shell adb shell

2. Install APK

<path_to_apk> represents your apk file path (such as/home/. /*.APK).

ADB install <path_to_apk>

3. Copy the files from the phone to the local computer from the device

<remote> represents the path to a folder or file in your phone, <local> indicates the path to the local computer's folder or file

ADB pull <remote> <local>

Example: adb pull/sdcard/360/test.txt d:\myproject Copy the test.txt from your phone to the MyProject file on your computer's D drive

4. Copying files from the device to the local

<remote> represents the path to a folder or file in your phone, <local> indicates the path to the local computer's folder or file

ADB push <local> <remote>

Example: adb pull d:\myproject\copytest.txt/sdcard/360/Copy the copytest.txt from the MyProject file of the computer D drive to the phone

5. View Logcat

ADB logcat |grep Tag

6. Query for several Android devices connected to ADB server

ADB devices

Use of Android adb

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.