am 311f8eee: am ed54f60a: Merge "Docs: Updating, clarifying Debug-over-WiFi instructions. Bug: 21371836" into mnc-preview-docs
* commit '311f8eeee04937a08dd3576aaab74be19645c14e': Docs: Updating, clarifying Debug-over-WiFi instructions. Bug: 21371836
This commit is contained in:
@@ -420,62 +420,54 @@ Wi-Fi, as described here.
|
|||||||
<ol>
|
<ol>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
Connect Android device and adb host computer
|
<p>Connect your Android device and adb host computer
|
||||||
to a common Wi-Fi network accessible to both.
|
to a common Wi-Fi network accessible to both.
|
||||||
We have found that not all access points
|
We have found that not all access points
|
||||||
are suitable; you may need to use an access point
|
are suitable; you may need to use an access point
|
||||||
whose firewall is configured properly to support adb.
|
whose firewall is configured properly to support adb.</p>
|
||||||
|
|
||||||
|
<p class="note"><strong>Note: </strong>If you are attempting to connect
|
||||||
|
to a Wear device, force it to connect to Wi-Fi by shutting off Bluetooth
|
||||||
|
on the phone connected to it.</p>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
Connect the device with USB cable to host.
|
Connect the device to the host computer with a USB cable.
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
Make sure adb is running in USB mode on host.
|
Set the target device to listen for a TCP/IP connection on port 5555.
|
||||||
<pre>
|
<pre class="no-pretty-print">
|
||||||
$ adb usb
|
|
||||||
restarting in USB mode
|
|
||||||
</pre>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
Connect to the device over USB.
|
|
||||||
<pre>
|
|
||||||
$ adb devices
|
|
||||||
List of devices attached
|
|
||||||
######## device
|
|
||||||
</pre>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
<li>
|
|
||||||
Restart host adb in tcpip mode.
|
|
||||||
<pre>
|
|
||||||
$ adb tcpip 5555
|
$ adb tcpip 5555
|
||||||
restarting in TCP mode port: 5555
|
|
||||||
</pre>
|
</pre>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
Find out the IP address of the Android device:
|
Disconnect the USB cable from the target device.
|
||||||
Settings -> About tablet -> Status -> IP address.
|
|
||||||
Remember the IP address, of the form <code>#.#.#.#</code>.
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
Connect adb host to device:
|
Find the IP address of the Android device. For example, on a Nexus device, you can find
|
||||||
<pre>
|
the IP address at <strong>Settings</strong> > <strong>About tablet</strong>
|
||||||
$ adb connect #.#.#.#
|
(or <strong>About phone</strong>) > <strong>Status</strong> > <strong>IP address</strong>. Or,
|
||||||
connected to #.#.#.#:5555
|
on an Android Wear device, you can find the IP address at <strong>Settings</strong> >
|
||||||
|
<strong>Wi-Fi Settings</strong> > <strong>Advanced</strong> > <strong>IP address</strong>.
|
||||||
|
</li>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
Connect to the device, identifying it by IP address.
|
||||||
|
<pre class="no-pretty-print">
|
||||||
|
$ adb connect <device-ip-address>
|
||||||
</pre>
|
</pre>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
Remove USB cable from device, and confirm you can still access device:
|
Confirm that your host computer is connected to the target device:
|
||||||
<pre>
|
<pre class="no-pretty-print">
|
||||||
$ adb devices
|
$ adb devices
|
||||||
List of devices attached
|
List of devices attached
|
||||||
#.#.#.#:5555 device
|
<device-ip-address>:5555 device
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
</ol>
|
</ol>
|
||||||
@@ -500,10 +492,10 @@ Reconnect by executing the "adb connect" step again.
|
|||||||
|
|
||||||
<li>
|
<li>
|
||||||
Or if that doesn't work, reset your adb host:
|
Or if that doesn't work, reset your adb host:
|
||||||
<pre>
|
<pre class="no-pretty-print">
|
||||||
adb kill-server
|
adb kill-server
|
||||||
</pre>
|
</pre>
|
||||||
and then start over from the beginning.
|
and then start over from the beginning.
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
</ol>
|
</ol>
|
||||||
|
|||||||
Reference in New Issue
Block a user