Reprint: ADB remote connection to Android system (via network using ADB (connect to Android with WiFi)

Source: Internet
Author: User

This article describes how to connect to Android's adbd over a network, especially a wireless network.
Principle:
ADB server: A service process on the computer with the process name adb
ADB daemon:android A service process on the phone, the process is named adbd
ADB client: You can think of a terminal window on your computer, and the process name is adb
Your instructions are communicated between ADB server,server and daemon via the ADB client.
Therefore, the connection established here is actually a connection between the server and the daemon.

There are three ways to do this:

1. Go to market search Wireless ADB

This is no trick.

2. On the phone to enter the terminal implementation

1. Mobile: Let ADBD listen to the specified port

#以下指令必须以root权限运行
#setprop refers to set properties, usage SetProp
SetProp Service.adb.tcp.port 5555
Stop ADBD #停止adbd
Start ADBD #启动adbd

2. Mobile: Connect network (3G or WLAN)
Suppose you get an IP address of192.168.1.102


3. Computer: Connect the phone

adb connect 192.168.1.102:5555


4. Computer: Check for success

adb get-state


It should be output device or emulator-5555 , depending on your settings.
5. How to change back to previous status (via USB connection)

SetProp service.adb.tcp.port-1 Stop adbd start adbd
3. Directly via the ADB after USB connection is set up

This is the simplest method, but the success rate is not high. Let's take a look at how to achieve:

ADB tcpip 5555 #让adbd重新启动, and listen port 5555 ADB connect 192.168.0.101:5555

Change back to the original state:

ADB usb

Attentive friends should have found that the command issued through the ADB is user-level (the actual user on the phone as the shell), and the ability to switch the listening mode required to root .
That's why it fails.
If your phone has enough permissions, you can try
adb root
If successful, then execute the above command.

Thank Lesca for sharing

Reprint: ADB remote connection to Android system (via network using ADB (connect to Android with WiFi)

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.