Android adb Usage Details, androidadb

Source: Internet
Author: User

Android adb Usage Details, androidadb

This article mainly introduces how to use adb in a windows program. It does not introduce adb commands.

1) Start the adb process and obtain the output from the pipeline.

I don't know the disadvantages of this method. It is a variety of problems. However, I have asked a lot of friends about this because it is the simplest method. Disadvantages

1) every time you execute an adb command, you must start an adb process. The process is too slow and seems to be quite uncomfortable.

2) It is occasionally found that there are N + adb processes in the Process Manager, and then it gets stuck.

3) obtain the output from the MPs queue. In many cases, the adb is stuck and the process cannot be exited.

4) The adb process was found to start and exit normally, but the MPs queue has no data. I still don't know the specific reason.



2) how to use mobile assistants on the market

No matter how you do it, there will be no more than one adb process under normal circumstances, and there will only be one adb service process. I guess it should be that the application communicates directly with the adb service process and then receives data directly through socket.

The first method is to start an adb process. The adb process communicates with the service process through socket and sends the command to the service process. The service process receives and runs the command, then, the result is returned to the adb process through socket. The adb process writes the result to the MPs queue and exits. Therefore, we can directly communicate with the adb service process and send messages to the service process through socket in our application. This speed is fast and can avoid the disadvantages of the first method. However, this method is also relatively difficult, and you need to implement socket communication by yourself.


I modified the adb process myself, made great optimizations, and wrote a lib. This library encapsulates communication with the adb service process, this library has a function that can be called directly to execute the adb command. The program only needs to statically link the library and then call a function.


ExecuteADBCommand ("devices", strOut );


Learn more about qq: 2506314894






How does android use adb (android sdk) for dual-clear and dual-wipe operations? Online

Adb direct wipe has no relevant code
Only adb reboot (restart)
Adb reboot-bootloader (restart and enter the boot selection interface. If this interface is not selected, the boot will be started directly)
Even in fastboot mode, you need to press the key on the mobile phone to confirm it ...... Take care of yourself !~

How to Use the ADB command to view Android mobile phone-related information Parameters

Using these ADB commands, You can intuitively view the hardware and software details on your mobile phone. You can view the specific command of the mobile phone system as follows: getprop to view all the information of the machine. The parameter getprop ro. serialno: view the machine's SN getprop ro. carrier: Check the CID of the machine. getprop ro. view the machine Board Sub-code in hardware. First, press WIN + R on your computer keyboard. A running window will pop up. Enter CMD in the box and press OK. At this time, a command window will pop up! The ADB Command provided above is run in this window! Enter adb shell and press Enter. Then you can start to enter the Command provided above! Getprop ro. serialno: view the machine's SN getprop ro. carrier: Check the CID of the machine. android female uses the legendary Samsung M100S. Here, we use the T-Mobile version G1 as an example, so TMUS is displayed here. Getprop ro. hardware: Check the server code. You can see that the development code of G1 is trout! Getprop ro. bootloader: View SPL (Hboot) version number getprop: view all information parameters of the machine. Here, you can see all information parameters of your machine, from your hardware information to the brushed ROM version information.

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.