Enabling USB-Debugging

To communicate with an Android device over the Android Debug Bridge (adb), enable USB debugging on the device.
  1. On the Android device, open the settings.
  2. Tap Developer Settings. The developer settings are hidden by default. If the developer settings are not included in the settings menu of the device:
    1. Depending on whether the device is a phone or a pad, scroll down and tap About phone or About Pad.
    2. Scroll down again and tap Build Number seven times.
  3. In the Developer settings window, check USB-Debugging.
  4. Set the USB mode of the device to Media device (MTP), which is the default setting. For additional information, refer to the documentation of the device.