Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio is not recognising OnePlus2 on Mac/Linux

My Android Studio (1.3.2) is not recognising my phone "OnePlus Two"

I am having Mac (OS x Yosemite 10.10.5) with latest Android SDK.

Update 1: The file transfer software installed on my mac "Android File Transfer" is able to recognise the phone as soon as I connect phone to mac.

Update 2: While trying to look for all connected device through terminal, I even don't see my device their by executing command adb devices

Update 3: I do tried killing adb and starting again but that too didn't work.

PS: I have enabled USB debugging on the Developer Option

like image 833
Irfan Raza Avatar asked Sep 16 '15 20:09

Irfan Raza


1 Answers

Got answer of my question on OnePlus2 Forum. Sharing the same here to help other users.

To solve this we need to run a script on Mac or Linux based system.

  1. Enable debugging mode on your OP2 (OnePlus2)
  2. Connect to your Mac or linux based PC
  3. You will see a drive on your finder with the name "One Plus Drivers"
  4. There you will see one file with the name "Op2_adb_config_Linux_OSX.sh"
  5. Copy this file to your documents folder
  6. Open terminal and execute the above file (sh Op2_adb_config_Linux_OSX.sh)
  7. It will perform necessary steps on your system and then your OP2 will be recognised by Android Studio.
like image 60
Irfan Raza Avatar answered Nov 13 '22 03:11

Irfan Raza