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.