What is the Android type adb?

Source: Internet
Author: User

Referring to Adb.exe, friends who have been concerned about our Android series tutorials should not be unfamiliar, because we operate the Android phone directly via ADB regardless of the root authority or the machine, but probably most of the ADB is only limited to the one step of the brush tutorial, Does not have an in-depth and comprehensive understanding of it. Now I will give you Android phone fans to explain the function and usage of ADB.

"Review of the past period"

Phase one: "Android series tutorial (i) USB interconnect with PC side"

Phase II: "Android series tutorial (ii) Android phone must install software"

Phase III: "Android series tutorial (iii) How to get root permissions"

Fourth: "Android series tutorial (four) hands-on church you brush Machine"

Fifth issue: "Android series tutorial (v) Custom SMS ringtone scheme"

Issue sixth: "Mobile phone when router?" Android Alternative Software Collection "

"Heaven's answer to Heaven's question"

Question one: What is ADB?

Question two: What is the use of ADB?

Question three: How does the ADB tool work as the most critical issue?

Answer one: ADB's all called Android Debug Bridge, is to play the role of the Debug bridge. With ADB we can debug the Android program via DDMS in Eclipse, which is the Debug tool. ADB has a special way of working, using ports such as the socket TCP 5554 to communicate with the IDE and QEMU, by default ADB will daemon the associated network ports, so the ADB process will run automatically when we run eclipse.

Answer two: With ADB tools, we can manage the status of devices or phone simulators. You can also do a lot of phone operations, such as installing software, system upgrades, running shell commands, and so on. In fact, Jane said, the ADB is connected to the Android phone and PC-side bridge, can let users on the computer on the mobile phone for full operation.

Answer three: This is also the key to this tutorial today, I will introduce you to the ADB tools how to operate, and introduce a few common commands for everyone to reference!

"Software Needs"

1.Android SDK

2.Android Related mobile phone driver

Related software packaging integration, convenient for users to download, please click the Android series (vi) ADB operation command detailed root tools and drivers. rar

"Software Installation"

Step 1: Install the USB driver

This step is in fact the author has been introduced in the previous series of Android tutorials, so today briefly describe the process. Go to Settings-application-Develop-USB debug and tick the first option. Then connect the computer via USB cable and prompt to install the driver. If the 32-bit system chooses the x86 folder to install the driver, select the AMD64 folder if it is a 64-bit system.

Step 2: Software preparation

Place the TMG folder in the supplied software toolkit under the C packing directory. This is not a specified location, but is convenient for subsequent access to the folder in MS-DOS. Folder path: C:\TMG\

Android Series Tutorial (iii) How to get root permissions

Figure: Software Material preparation

The action command

1. View the 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

Android Series tutorial (vi) An explanation of ADB operation commands

2. Installing the Software

ADB install

ADB install <apk file path >: This command installs the specified APK file on the device

Android Series tutorial (vi) An explanation of ADB operation commands

3. Uninstalling the Software

ADB uninstall < software name >

ADB uninstall-k < software name >

If you add the-K parameter, the software is uninstalled but the configuration and cache files are preserved.

4. Enter the shell of the device or simulator:

ADB shell

From the above command, you can enter the device or emulator shell environment, in this Linux shell, you can execute a variety of Linux commands, in addition, if you want to execute only one shell command, you can use the following way:

ADB Shell [command]

For example, the ADB shell DMESG will print out debug information for the kernel.

5. Publishing ports

You can set any port number as the request port for the host to the emulator or device. Such as:

ADB forward tcp:5555 tcp:8000

6. Send files from the computer to the device

ADB Push < Local path > < remote path >

Use the push command to copy files or folders on your computer to your device (mobile)

7. Download files from the device to the computer

ADB pull < Remote path > < local path >

Use the pull command to copy files or folders on your device (phone) to your local computer

8. View Bug Reports

ADB bugreport

9. Record the wireless communication log

Generally speaking, the wireless communication log is very many, at run time not necessary to record, but we can still through the command, set the record:

ADB shell

Logcat-b Radio

10. Get the ID and serial number of the device

ADB get-product

ADB Get-serialno

ADB shell

Sqlite3

Reprinted from: Http://wenku.baidu.com/link?url=ExSR6pMcNLarO4DqZPaaOajzTCJIGYs-YMe5rThxjwVvDOvbtfFoPELPKtH0VZxTu7rk8_ Hnw-vpnjjif-sp28fqg7svg_qaoddoks1sg-k

What is the Android type ADB (RPM)

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.