Enable USB debugging on your device

   网址:http://developer.android.com/intl/zh-cn/tools/device.html

  • On most devices running Android 3.2 or older, you can find the option under        Settings > Applications > Development.
  • On Android 4.0 and newer, it's in Settings > Developer options.       

    Note: On Android 4.2 and newer, Developer        options is hidden by default. To make it available, go        to Settings > About phone and tap Build number        seven times. Return to the previous screen to find Developer options.

    • Set up your system to detect your device.   
      • If you're developing on Windows, you need to install a USB driver for adb. For an installation guide and links to OEM drivers, see the OEM USB Drivers document.
      • If you're developing on Mac OS X, it just works. Skip this step.
      • If you're developing on Ubuntu Linux, you need to add audev rules file that contains a USB configuration for each type of device you want to use for development. In the rules file, each device manufacturer is identified by a unique vendor ID, as specified by theATTR{idVendor} property. For a list of vendor IDs, see  USB Vendor IDs, below. To set up device detection on Ubuntu Linux:       
        1. Log in as root and create this file:            /etc/udev/rules.d/android.rules.           

          Use this format to add each vendor to the file: SUBSYSTEM=="usb", ATTR{idVendor}=="19d2", MODE="0666", GROUP="plugdev"
                     

        2. Now execute: chmod a+r /etc/udev/rules.d/android.rules

  When plugged in over USB, you can verify that your device is connected by executing adb devices from your SDK platform-tools/ directory. If connected, you'll see the device name listed as a "device."

 

设置adb参考:http://www.cnblogs.com/herenzhiming/articles/4915490.html

posted @ 2015-10-27 21:06  何人之名  阅读(363)  评论(0)    收藏  举报