From cc4d08b4ae7ef130656b707901578e18ac9b0750 Mon Sep 17 00:00:00 2001 From: Rich Slogar Date: Fri, 7 Nov 2014 13:26:17 -0800 Subject: [PATCH] docs:setting up hardware devices [CP] Change-Id: I3a04df7b70bf8e389361e3c333e62a639a70d36e (cherry picked from commit daaa16403fbd82406535367c528ff8757e111b06) --- docs/html/tools/device.jd | 20 ++++++++++---- docs/html/tools/extras/oem-usb.jd | 46 ------------------------------- 2 files changed, 14 insertions(+), 52 deletions(-) diff --git a/docs/html/tools/device.jd b/docs/html/tools/device.jd index 89b3857ab6e69..5d8d3842008a1 100644 --- a/docs/html/tools/device.jd +++ b/docs/html/tools/device.jd @@ -27,7 +27,7 @@ environment and Android-powered device for testing and debugging on the device.<

You can use any Android-powered device as an environment for running, debugging, and testing your applications. The tools included in the SDK make it easy to install and run your application on the device each time you compile. You can install your application on the -device directly from Eclipse or from the command line with ADB. If +device directly from Android Studio or from the command line with ADB. If you don't yet have a device, check with the service providers in your area to determine which Android-powered devices are available.

@@ -73,13 +73,21 @@ screen to find Developer options at the bottom.

would on the emulator. Before you can start, there are just a few things to do:

    -
  1. Declare your application as "debuggable" in your Android Manifest. -

    When using Eclipse, you can skip this step, because running your app directly from -the Eclipse IDE automatically enables debugging.

    +
  2. Verify that your application is "debuggable" in your manifest or build.gradle file. +

    In the build file, make sure the debuggable property in the debug build + type is set to true. The build type property overrides the manifest setting.

    +
    +android {
    +    buildTypes {
    +        debug {
    +            debuggable true
    +        }
    +
    +

    In the AndroidManifest.xml file, add android:debuggable="true" to the <application> element.

    Note: If you manually enable debugging in the manifest - file, be sure to disable it before you build for release (your published application + file, be sure to disable it in your release build (your published application should usually not be debuggable).

  3. Enable USB debugging on your device.
      @@ -148,7 +156,7 @@ higher.

      devices from your SDK {@code platform-tools/} directory. If connected, you'll see the device name listed as a "device."

      -

      If using Eclipse, run or debug your application as usual. You will be +

      If using Android Studio, run or debug your application as usual. You will be presented with a Device Chooser dialog that lists the available emulator(s) and connected device(s). Select the device upon which you want to install and run the application.

      diff --git a/docs/html/tools/extras/oem-usb.jd b/docs/html/tools/extras/oem-usb.jd index e0bbf335d89bc..b25b41e82c27d 100644 --- a/docs/html/tools/extras/oem-usb.jd +++ b/docs/html/tools/extras/oem-usb.jd @@ -8,7 +8,6 @@ page.title=OEM USB Drivers
    • Installing a USB Driver
      1. Windows 7
      2. -
      3. Windows XP
      4. Windows Vista
    • @@ -58,7 +57,6 @@ development.

      1. Windows 7
      2. -
      3. Windows XP
      4. Windows Vista
      @@ -116,50 +114,6 @@ Driver is located in {@code <sdk>\extras\google\usb_driver\}.) - - -

      Windows XP

      - -

      To install the Android USB driver on Windows XP for the first time:

      - -
        -
      1. Connect your Android-powered device to your computer's USB port. Windows - will detect the device and launch the Hardware Update Wizard.
      2. -
      3. Select Install from a list or specific location and click - Next.
      4. -
      5. Select Search for the best driver in these locations; un-check -Search - removable media; and check Include -this location in the search.
      6. -
      7. Click Browse and locate the USB driver folder. (The Google USB -Driver is located in {@code <sdk>\extras\google\usb_driver\}.)
      8. -
      9. Click Next to install the driver.
      10. -
      - -

      Or, to upgrade an existing Android USB driver on Windows XP with the new -driver:

      - -
        -
      1. Connect your Android-powered device to your computer's USB port.
      2. -
      3. Right-click on My Computer from your desktop or Windows Explorer, - and select Manage.
      4. -
      5. Select Device Manager in the left pane.
      6. -
      7. Locate and expand Android Phone in the right pane.
      8. -
      9. Right-click Android Composite ADB Interface and select Update - Driver. - This will launch the Hardware Update Wizard.
      10. -
      11. Select Install from a list or specific location and click - Next.
      12. -
      13. Select Search for the best driver in these locations; un-check Search - removable media; and check Include -this location in the search.
      14. -
      15. Click Browse and locate the USB driver folder. (The Google USB -Driver is located in {@code <sdk>\extras\google\usb_driver\}.)
      16. -
      17. Click Next to upgrade the driver.
      18. -
      - - -

      Windows Vista

      To install the Android USB driver on Windows Vista for the first time: