Pages

Monday, April 29, 2013

Enable USB Debugging

http://visualgdb.com/tutorials/android/usbdebug/


Setting up USB debugging for your Android device

This tutorial explains how to prepare your Android device for USB debugging.
  1. If yon don't have Android SDK installed, please install it first.
  2. Open Start menu. Select Android SDK Tools -> SDK Manager. Right-click on it and select "Run as Administrator".Running SDK Manager as Administrator is very important. If you just click on it, the SDK manager will start, but will encounter errors when you try to install new components!
  3. In the SDK Manager select "Extras->Google USB Driver". Enable the checkbox and click "Install 1 Package".
  4. When the Google USB driver is installed, plug in your device. 
    Warning: The driver won't install automatically. We will do it manually in the next steps.
  5. On your Android device go to Settings->Develop Option and enable USB Debugging
  6. Ensure that the USB connection type is not set to "Internet pass-through". Otherwise you won't be able to debug your device. For simplicity, you can set it to "Charge only".
  7. Open the System Properties dialog (press Win+Break on the keyboard or locate "Computer" in Start Menu, right-click on it and select "Properties".
  8. Click on the "Device Manager" link.
  9. In the Device Manager locate your Android device. Then right-click on it and select "Update Driver Software".
  10. Select "Browse my computer for driver software".
  11. Select "Let me pick from a list of device drivers on my computer".
  12. Select "Show All Devices".
  13. Press the "Have Disk" button.
  14. Enter the path to the Google USB driver. Normally it is located in the following directory:
    C:\Program Files (x86)\Android\android-sdk\extras\google\usb_driver
  15. Select "Android ADB Interface" from the list of device types.
  16. Confirm the installation of the driver by pressing "Yes".
  17. Confirm the installation again by pressing "Install".
  18. When the installation is done, press "Close".
  19. Now it's the time to test the driver. Open the Android SDK directory (C:\Program Files (x86)\Android\android-sdk) in Explorer.
  20. Hold the Shift button and right-click on the platform-tools folder. Select "Open command window here" from the menu.If you do not hold SHIFT while right-clicking, you won't see the "Open command window here" option.
  21. Type "adb devices" in the command window:
    If the driver has been installed correctly, you will see your device in the list.

No comments:

Post a Comment