Android adb and Android adb

Source: Internet
Author: User

Android adb and Android adb

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

1.Go to shell

Enter DeviceShellAdb shell

2. Install apk

<Path_to_apk> indicates the path of your apk file (for example,/home/../*. apk ).

Adb install <path_to_apk>

3. Copy files from the device to the Local Computer

<Remote> indicates the path of the folder or file in the mobile phone, and <local> indicates the path of the folder or file on the local computer.

Adb pull <remote> <local>

For example, adb pull/sdcard/360/test.txt d: \ myproject copies test.txt from the mobile phone to the myproject file on the d drive of the computer.

4. Copy files from the device to the local device

<Remote> indicates the path of the folder or file in the mobile phone, and <local> indicates the path of the folder or file on the local computer.

Adb push <local> <remote>

Example: adb pull d: \ myproject \ copytest.txt/sdcard/360/copy copytest.txt under the myproject file of the d drive to the mobile phone

5. View logcat

Adb logcat | grep tag

6. query several android devices connected to the adb server

Adb devices

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.