I am developing Android application on macOS and my application runs well on the emulator. I want to run it on the device, but when I run adb dev
Referenced from this link!
THIS IS FOR A MAC ONLY!
Here’s what you need to do to make your phone visible to adb:
cd /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/IOUSBCompositeDriver.kext/Contentssudo nano Info.plist (or vi, or emacs, or whatever console editor you prefer)IOUSBComposite section (from to )bDeviceSubClass value from 0 to 2IOUSBComposite to GW620The end result should look something like this:
GW620
CFBundleIdentifier
com.apple.driver.AppleUSBComposite
IOClass
IOUSBCompositeDriver
IOProviderClass
IOUSBDevice
bDeviceClass
0
bDeviceSubClass
2
sudo diskutil repairpermissions / and let it finishsudo touch /System/Library/Extensions and wait a few mins for the extension reindexing to finishadb devices should now see your phoneNote, this is VERY kludgy, and will probably break every time OSX updates itself, but it works. I can finally stop rebooting every time I want to work on the phone! :D