Introduction to the ADB's common commands

Source: Internet
Author: User

The ADB's full name is Android Debug Bridge, which literally means Android debugging bridging, which, to put it simply, is a set of tools provided by the Android system, through which we can create a link to a mobile phone on a computer, and then send some instructions to the phone on a computer. Finish some of the work we need to do.

ADB is the role of the debugging bridge. Through the ADB we can debug the Android program through DDMS in Eclipse, which is the Debug tool. The ADB works in a special way, allowing the IDE and QEMU to communicate by listening to ports such as socket TCP 5554, which by default will daemon the associated network port, so the ADB process runs automatically when we run eclipse.

The ADB is a tool in the Android SDK that can be used to directly manipulate an Android simulator or a real andriod device such as a G1 phone.

 Its main functions are:

* Shell that runs the device (command line)

* Manage port mappings for simulators or devices

* Upload/download files between computer and equipment

* Install local APK software into an emulator or Android device

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

The ADB command on the PC side

Several commands used by ADB

1. View Equipment Adbdevices

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

2. Install software Adbinstall

This command installs the specified APK file on the device

3. Uninstall software

* Adbuninstall < software name >

* Adbuninstall-k < software name >

If you add the-k parameter, you uninstall the software but keep the configuration and caching files.

4. Login Device Shell

* Adbshell

* Adbshell

This command will log in to the device's shell.

The next plus will be to run the device command directly, which is equivalent to executing a remote command

5. Send files to the device from the computer

* Adbpush < Local path > < remote path >

Use the push command to copy a file or folder from a local computer to a device (cell phone)

6. Download files from the device to the computer

* Adbpull < Remote path > < local path >

Use the pull command to copy files or folders on a device (cell phone) to a native computer

7. Display Help information

* Adbhelp

This command will display Help information

The ADB command on the Android side

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.