Leem
Leem

Reputation: 18338

Problem to run my application on a real device

I am developing android application under Linux Ubuntu 10.04, with Eclipse IDE.

I successfully managed to run my application through eclipse virtual device emulator (target android2.1-update1).

Then, I followed the tutorial to run my application on a ZTE tablet device through eclipse. I followed every step of the tutorial.

My rules file is located under /etc/udev/rules.d/51-android.rules, with content:

SUBSYSTEM=="usb", SYSFS{idVendor}=="19D2", MODE="0666"

The vendor ID of ZTE is 19D2.

I also enabled USB debugging both on the ZTE device and in my application's manifest file.

When I run the application in Eclipse, there is a "Android Device chooser" window popped up, which shows a device with:

serial number: "?????????????"

AVD name: N/A

target : Unknown

Debug:

Why eclipse can not recognize the ZTE tablet device correctly?? What could be the possible reason?

(I also tried to reboot my linux machine, but nothing changed)

State: ??

Upvotes: 3

Views: 3199

Answers (3)

anshad
anshad

Reputation: 824

??? symbols means that device is either offline or adb has not wright permission to access the device.Inorder to change the permission we need to update /etc/udev/rules.d/51-android.rules file in the following way.

SUBSYSTEM=="usb", ATTRS{idVendor}=="1782" ,MODE="0666"

SUBSYSTEM=="usb", ATTRS{idVendor}=="0bb4", MODE="0666"

SUBSYSTEM=="usb", ATTRS{idVendor}=="0502", MODE="0666"

SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", MODE="0666"

SUBSYSTEM=="usb", ATTRS{idVendor}=="1004", MODE="0666"

SUBSYSTEM=="usb", ATTRS{idVendor}=="22b8", MODE="0666"

SUBSYSTEM=="usb", ATTRS{idVendor}=="04e8", MODE="0666"

SUBSYSTEM=="usb", ATTRS{idVendor}=="0fce", MODE="0666"

SUBSYSTEM=="usb", ATTRS{idVendor}=="0489", MODE="0666"

SUBSYSTEM=="usb", ATTRS{idVendor}=="18d1", SYMLINK+="android_adb", MODE="0666"

SUBSYSTEM=="usb", ATTRS{idVendor}=="04e8", MODE="0666", GROUP="plugdev"

using lsusb command to find vender id..

Upvotes: 1

Mark Allison
Mark Allison

Reputation: 21909

Try changing your /etc/udev/rules.d/51-android.rules to:

SUBSYSTEMS=="usb", ATTRS{idVendor}=="19D2", OWNER="user", GROUP="group"

where user is the username of the account you develop under; and group is the group of the account you developer under.

Upvotes: 3

Darokthar
Darokthar

Reputation: 1113

Change the line to SUBSYSTEM=="usb", ATTR{idVendor}=="19D2", MODE="0666"

Upvotes: 3

Related Questions