Android »

Adb Udev

Running the ADB server on your developer machine, may fail to find your Android devices. This is because the server may need to run as root to be able to access the USB ports. Fix this by updating your udev rules.

/etc/udev/rules.d/51-android.rules

# My Sony Ericsson Xperia phone
SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", ATTR{idProduct}=="6168", MODE="0600", OWNER="me"

You'll find Vendor and Product id using the lsusb command once the phone is connected, and replace "me" with your username. Note that those may be different running fastboot, so you may need two udev rules if you're planning using fastboot as well. Then restart udev.

/etc/init.d/udev restart

All done, now the ADB server will be happy.

Home

Ping site


















Page last modified 2012-12-18 08:31Z

^