Android Test--adb command

Source: Internet
Author: User

The Adb (Android Debug Bridge) acts as a debug bridge.

With ADB, we can easily debug Android programs via Ddms in Eclipse. ADB uses ports such as the socket TCP 5554 to communicate with the IDE and QEMU, and by default ADB will daemon the associated network ports, so the ADB process will run automatically when we run eclipse.

ADB is a tool in the Android SDK that allows you to manipulate the Android emulator or real Android devices (such as G1 phones) directly. Its main functions are:

* Shell running the device (command line)

* Manage port mappings for emulators or devices

* Upload/download files between computer and device

* Install the local APK software to the simulator or Android device

ADB is a client-server program where the client is the computer you use to operate, and the server side is the Android device.

ADB command:

1. View Device *ADB devices

This command is to view the currently connected device, the Android device connected to the computer, or the emulator will list the display

2. Installing the Software

*adbinstall <apk file path, this command installs the specified APK file on the device

3. Uninstalling the Software

*adbuninstall < software name >

*adbuninstall-k < software name >

If you add the-K parameter to uninstall the software but retain the configuration and cache files

4. View ADB version

*ADB version

5. View commands

*adb–h

Android Test--adb command

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.