ADB: USB detect
Revision as of 21:34, 18 November 2024 by Onnowpurbo (talk | contribs) (Created page with " There might be a problem with your USB device vender id. Try different device ids as available in Android documentation (http://developer.android.com/tools/device.html). Man...")
There might be a problem with your USB device vender id.
Try different device ids as available in Android documentation (http://developer.android.com/tools/device.html). Many devices are recognized using Google (18d1). All other things are simple. Just Create a file:
sudo gedit /etc/udev/rules.d/51-android.rules
and add:
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev"
then run:
sudo chmod a+r /etc/udev/rules.d/51-android.rules
Then plug your device into PC with USB debugging OFF, after connecting, turn USB debugging ON and goto:
cd <sdk_path>/platform-tools
and run:
./adb devices
You'll see a device with some code excluding emulator (if running). That's it! Now you can test your apps in your real device. While running, SDK will offer you to choose device if simulator is also running.