diff options
| author | Glenn Kasten <gkasten@google.com> | 2014-02-04 19:02:57 +0000 |
|---|---|---|
| committer | Android Git Automerger <android-git-automerger@android.com> | 2014-02-04 19:02:57 +0000 |
| commit | c734de9c2bcd17e5b07647002acb11afcf19aff6 (patch) | |
| tree | 44fe5eb5d3539ebf2e3341066c5ed3a8a7427c2e /docs/html/tools/help | |
| parent | 94c40a4cf90933216e6d656213dfdfa19c68a9c3 (diff) | |
| parent | 9d2ad12181a1793686d7cdbdf11b3aa5a92030c4 (diff) | |
| download | frameworks_base-c734de9c2bcd17e5b07647002acb11afcf19aff6.zip frameworks_base-c734de9c2bcd17e5b07647002acb11afcf19aff6.tar.gz frameworks_base-c734de9c2bcd17e5b07647002acb11afcf19aff6.tar.bz2 | |
am 9d2ad121: am 830d4ffc: am 74dc4bd0: am 983a9381: am 11263b24: Merge "Add adb over Wi-Fi" into klp-docs
* commit '9d2ad12181a1793686d7cdbdf11b3aa5a92030c4':
Add adb over Wi-Fi
Diffstat (limited to 'docs/html/tools/help')
| -rw-r--r-- | docs/html/tools/help/adb.jd | 98 |
1 files changed, 98 insertions, 0 deletions
diff --git a/docs/html/tools/help/adb.jd b/docs/html/tools/help/adb.jd index 1850123..f980042 100644 --- a/docs/html/tools/help/adb.jd +++ b/docs/html/tools/help/adb.jd @@ -27,6 +27,7 @@ page.tags=adb </li> <li><a href="#logcat">Enabling logcat logging</a></li> <li><a href="#stopping">Stopping the adb server</a></li> + <li><a href="#wireless">Wireless usage</a></li> </ol> </div> @@ -1342,3 +1343,100 @@ application and sends 500 pseudo-random events to it.</p> You can then restart the server by issuing any other adb command. </p> +<h2 id="wireless">Wireless usage</h2> + +<p> +adb is usually used over USB. However, it is also possible to use over +Wi-Fi, as described here. +</p> + +<ol> + +<li> +Connect Android device and adb host computer +to a common Wi-Fi network accessible to both. +We have found that not all access points +are suitable; you may need to use an access point +whose firewall is configured properly to support adb. +</li> + +<li> +Connect the device with USB cable to host. +</li> + +<li> +Make sure adb is running in USB mode on host. +<pre> +$ 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 +restarting in TCP mode port: 5555 +</pre> +</li> + +<li> +Find out the IP address of the Android device: +Settings -> About tablet -> Status -> IP address. +Remember the IP address, of the form <code>#.#.#.#</code>. +</li> + +<li> +Connect adb host to device: +<pre> +$ adb connect #.#.#.# +connected to #.#.#.#:5555 +</pre> +</li> + +<li> +Remove USB cable from device, and confirm you can still access device: +<pre> +$ adb devices +List of devices attached +#.#.#.#:5555 device +</pre> + +</ol> + +<p> +You're now good to go! +</p> + +<p> +If the adb connection is ever lost: +</p> + +<ol> + +<li> +Make sure that your host is still connected to the same Wi-Fi network your Android device is. +</li> + +<li> +Reconnect by executing the "adb connect" step again. +</li> + +<li> +Or if that doesn't work, reset your adb host: +<pre> +adb kill-server +</pre> +and then start over from the beginning. +</li> + +</ol> |
