Jane Doh
Jane Doh

Reputation: 2913

Can't debug android on actual device?

Running ubuntu 10.4 and trying to debug on a galaxy s2. I am able to connect the USB to the computer and get the notification. Debug mode is on, on the phone and I have added the debuggable:true to the manifest file. Any tips?

Upvotes: 0

Views: 111

Answers (2)

HotIceCream
HotIceCream

Reputation: 2309

Two ways:

Add info about you device to /etc/udev/rules.d/51-android.rules :

Exec in console:

lsusb

find you device info (idVendor and idProduct) and add it to like /etc/udev/rules.d/51-android.rules this:

# adb protocol on maguro/toro (Galaxy Nexus)
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", ATTR{idProduct}=="6860", MODE="0600", OWNER="  <username>"

more information you can fine here: http://source.android.com/source/initializing.html Configuring USB Access section.

Or try to run adb from sudo:

sudo ./adb kill-server
sudo ./adb devices

Upvotes: 0

Yogesh Tatwal
Yogesh Tatwal

Reputation: 2751

You have to go in setting->application->development->usb debugging and enable usb debugging in mobile device

still you are facing problem than click here

Upvotes: 2

Related Questions