Question: ./adb devices
List of devices attached
???????????? no permissions in ubuntu?
You can develop and debug on real Android device just as you would on the emulator. Before you can start, there are just a few things to do. Refer to Android document Using Hardware Devices. I describe how to add the file /etc/udev/rules.d/51-android.rules.
- Start Terminal
- Switch to /etc/udev/rules.d/ directory
$cd /etc/udev/rules.d/
- In Ubuntu, create/open 51-android.rules as su.
$sudo gedit 51-android.rules
- Add the text in the file (for HTC), and save it:(you can get for all devices link from http://code.google.com/p/51-android/)
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev"
for other vendor ID, refer to USB Vendor IDs in the document Using Hardware Devices.
- execute :
$chmod a+r /etc/udev/rules.d/51-android.rules
- Finally, check if your device connected; run the command from your SDK platform-tools/ directory:
$su
$./adb devices
One can get the all device rules from following link-
http://code.google.com/p/51-android/
http://developer.android.com/tools/device.html
You can develop and debug on real Android device just as you would on the emulator. Before you can start, there are just a few things to do. Refer to Android document Using Hardware Devices. I describe how to add the file /etc/udev/rules.d/51-android.rules.
- Start Terminal
- Switch to /etc/udev/rules.d/ directory
$cd /etc/udev/rules.d/
- In Ubuntu, create/open 51-android.rules as su.
$sudo gedit 51-android.rules
- Add the text in the file (for HTC), and save it:(you can get for all devices link from http://code.google.com/p/51-android/)
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev"
for other vendor ID, refer to USB Vendor IDs in the document Using Hardware Devices.
- execute :
$chmod a+r /etc/udev/rules.d/51-android.rules
- Finally, check if your device connected; run the command from your SDK platform-tools/ directory:
$su
$./adb kill-server$./adb start-server
$./adb devices
One can get the all device rules from following link-
http://code.google.com/p/51-android/
http://developer.android.com/tools/device.html
No comments:
Post a Comment