add info about enabling USB debugging to adb doc.

part of initiative to document the flash process for L preview.

Change-Id: I5177ba63d1cb2f291002b0fdb0b0209ca9e17072
This commit is contained in:
smain@google.com
2014-06-19 10:57:11 -07:00
parent 4d521ed966
commit b6974e9261

View File

@@ -8,6 +8,7 @@ page.tags="adb"
<div id="qv">
<h2>In this document</h2>
<ol>
<li><a href="#Enabling">Enabling adb Debugging</a></li>
<li><a href="#issuingcommands">Syntax</a></li>
<li><a href="#commandsummary">Commands</a></li>
<li><a href="#devicestatus">Querying for Emulator/Device Instances</a></li>
@@ -72,6 +73,19 @@ instances and handles commands from multiple adb clients, you can control any em
instance from any client (or from a script).</p>
<h2 id="Enabling">Enabling adb Debugging</h2>
<p>In order to use adb with a device connected over USB, you must enable
<strong>USB debugging</strong> in the device system settings, under <strong>
Developer options</strong>.</p>
<p>On Android 4.2 and higher, the Developer options screen is
hidden by default. To make it visible, go to
<b>Settings &gt; About phone</b> and tap <b>Build number</b> seven times. Return to the previous
screen to find <strong>Developer options</strong> at the bottom.</p>
<p>On some devices, the Developer options screen may be located or named differently.</p>
<p class="note"><strong>Note:</strong> When you connect a device running Android 4.2.2 or higher
to your computer, the system shows a dialog asking whether to accept an RSA key that allows
debugging through this computer. This security mechanism protects user devices because it ensures
@@ -80,6 +94,11 @@ device and acknowledge the dialog. This requires that you have adb version 1.0.3
SDK Platform-tools r16.0.1 and higher) in order to debug on a device running Android 4.2.2 or
higher.</p>
<p>For more information about connecting to a device over USB, read
<a href="{@docRoot}tools/device.html">Using Hardware Devices</a>.</p>
<h2 id="issuingcommands">Syntax</h2>