Android - OnePlus does not work over ADB

mattrick picture mattrick · Dec 21, 2015 · Viewed 16.7k times · Source

I've been at this for a while. My issue is with using my OnePlus in order to run apps over ADB. As expected, when I connect my OnePlus without USB Debugging enabled, it is connected as a "Portable Device" in my Device Manager. However, when I turn on USB Debugging, the device "disconnects" from the computer altogether (I can't even access the files on it).

I've tried numerous tutorials and driver installers, all unsuccessful. I have the latest Android Studio along with the latest ADB drivers. If anyone could point me in the right direction, that would be much appreciated!

Update: The (ancient) Samsung Galaxy SII works properly when connected to my computer. I can only assume this is an issue with my OnePlus.

Answer

Bexolo picture Bexolo · Dec 13, 2016

I managed to resolve this problem, albeit after many hours, by following these really helpful instructions. I also had to put device into PTP mode, as mentioned by @mattrick in an earlier answer.

If you don't have Android SDK installed, please install it first.

  1. Open Start menu. Select Android SDK Tools -> SDK Manager.
  2. Right-click on it and select "Run as Administrator".
  3. 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!
  4. In the SDK Manager select "Extras->Google USB Driver". Enable the checkbox and click "Install 1 Package".
  5. 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.
  6. Open the System Properties dialog (press Win+Break on the keyboard or locate "Computer" in Start Menu, right-click on it and select "Properties".
  7. Click on the "Device Manager" link. In the Device Manager locate your Android device. Then right-click on it and select "Update Driver Software".
  8. Select "Browse my computer for driver software".
  9. Select "Let me pick from a list of device drivers on my computer".
  10. Select "Show All Devices".
  11. Press the "Have Disk" button.
  12. 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

  1. Select "Android ADB Interface" from the list of device types.
  2. Confirm the installation of the driver by pressing "Yes".
  3. Confirm the installation again by pressing "Install".
  4. When the installation is done, press "Close".

Hope this helps! Here's my source: visualgdb.com