I have a strange problem while developing in Android Studio on mac and i am using OnePlus one. While debugging if a call come on my mobile adb disconnect my device and don't show it again. Help me to solve this permanently. Only solution that i have found and which works is in following step:
- Restart mac
- disconnect cable from mac and OnePlus One
- Kill adb server
- start adb server
- Revoke developer certificate and turn off developers option.
- restart onePlus One
- Turn on OnePlusOne and connect device with mac
- Open Android Studio
- Enable developer option and then enable debugging option
After I follow these steps, fingerprint dialog show and once I allow that dialog, device starts to show. This process is time consuming. I am facing this problem on mac.
Are you using EasyTether? If yes, you can disable it by using the following command:
sudo kextunload /System/Library/Extensions/EasyTetherUSBEthernet.kext
If that does not work, open System Information utility and check your device manufacturer ID (Vendor ID). Copy that and paste it into your adb usb config by using
echo 0x9d17 >> ~/.android/adb_usb.ini
Then restart your macbook and mobile phone and try if it works.