I followed the tutorial to set up ZTE tablet device for development. I am developing under Ubuntu 10.04.
After create the rules file: /etc/udev/rules.d/51-android.rules
SUBSYSTEM=="usb", SYSFS{idVendor}=="19D2", MODE="0666"
After I plug in the ZTE tablet device with debugging enabled. I run command:
adb kill-server
adb start-server
adb devices
I got :
List of devices attached
???????????? no permissions
I thought may be it is because I did not restart adb as root. SO, I tried to restart adb as root, and I entered the command in my terminal:
sudo adb kill-server , but I got the message in terminal that "sudo: adb: command not found"
But if I enter command without "sudo", that's "adb kill-server" it works.
Is it because my path setting is wrong?????
I set the path under HOME/.bashrc, with :
export PATH=$PATH{}:/home/user/android-sdk-linux_x86/platform-tools:/home/user/android-sdk-linux_x86/platform-tools
Conclude all above, I got two problems:
the adb listed device has no permissions
I can not run adb as root
My questions:
Are the problems all because of my path setting is wrong?
Is it because ZTE tablet device is different from mobile device? Some tricks need to be done for tablet??
something else?
Where am I wrong?
P.S. Since I lost the USB cable shipped with the ZTE tablet, I use a NOKIA USB cable to connect the ZTE tablet with my development Ubuntu machine, could this also cause the above problems???? (With Nokia USB cable, I can still access the ZTE tablet file system anyhow)
Every thing goes fine after I run the command:
sudo -s
adb kill-server
adb start-server
adb devices
Then my ZTE tablet is shown.
Related
I'm running adb on ubuntu, and my app (that I'd like to test) on a Galaxy S3. Got my S3 in debugging mode, I've edited /lib/udev/rules.d/51.android and .android files, restarted adb, and my laptop, but no luck. Any ideas what I might be doing wrong?
Try this on command prompt:
sudo -s
adb kill-server
adb start-server
Some more things you can try as I often find this helpful.
Check the Data Card, it might have problem.
Plug the data card to another port on the system.
I purchased a new tablet which is manufactured by a company called Azpen. The product page for the device is http://www.azpenpc.com/product_t64.html I'm trying to develop apps for it and I'm a beginner. I connected the device to my Linux machine (running CentOS 5.3) but something isn't working right. I can't install the simple HelloWorld program via 'ant debug install'. Here's the output of some adb commands, which I ran as a regular user, then as root:
# adb usb
error: insufficient permissions for device
# adb devices
List of devices attached
???????????? no permissions
I did 'adb kill-server ; adb start-server' as root, but this didn't help.
Does anyone know what the problems is? My next attempt at debugging this myself was to create a new rules file in /etc/udev/rules.d, but I don't know what 'idVendor' to use for Azpen devices. Can anyone help with this?
ps. I also posted this on http://forums.androidcentral.com
I ran 'dmesg' and grepped for 'idVendor' in the output and found:
usb 2-1.2: New USB device found, idVendor=18d1, idProduct=0003
So I added this line to /etc/udev/rules.d/51-android.rules
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev"
then restarted adb as root: 'adb kill-server ; adb start-server' and it worked.
I bought a new Samsung Galaxy Tab GT-P6200 for developing android application. When I connect my tablet device to the system(with Ubuntu 11.04 OS and with Eclipse ), it doesn't recognize debugging mode even I enable debugging mode in the settings. It automatically connects to MTP-mode(Media Transfer Protocol), and I cannot view the folders in the sdcard. Someone please help me to connect my device in debugging mode.
Have you try restarting the adb server?
Open a Terminal, go to your android-sdk/platform-tools folder and execute:
./adb kill-server
then start it again with root access
sudo ./adb start-server
I remember I faced this problem before. You should try to following:
Check if you have install driver for it(in Help/Software Updates of eclispe)
Also, sudo ./adb kill-server sudo ./adb start-server check if it connected by sudo ./adb devices
Try with other USB port.
Hope it helps
I'm trying to debug an Application on a Xperia cellphone with Cyanogenmod installed, but it doesn't seem to recognize my cell phone. Also, adb seems to be gone, I followed http://developer.android.com/guide/developing/device.html the official guide, but when executing:
$./adb devices
on the plataform-tools/ directory the system doesn't recognize the device.
also I tried
$sudo ./adb devices
any ideas?
thanks to everyone for the help.!! I solved
the problem was that I needed to restart the adb server I did it like this:
$sudo ./adb kill-server
$sudo ./adb start-server
Adb devices is not listing my Samsung Pop 5570 wen connected in with USB debugging on in ubuntu 10.10
adb devices
?????????? no permissions
i did add the 51-android.rules file in /etc/udev/rules.d folder but still adb devices shows that devices wit ?????? no permissions.
51-android.rules file has the following contents:
SUBSYSTEM=="usb_device", SYSFS{idVendor}=="04e8", MODE="0666"
please let me know if i am missing something
I resolved the issue by appending #samsung in the 51-android.rules file and copying the "adb" command to /bin folder.
$ restart udev
$ cp adb /bin
$ sudo adb kill-server
$ sudo adb start-server
$ sudo adb devices
List of devices attached
S5570e905be1c device
Edit: I suspect your subsystem name is the culprit (simply try "usb" instead). However, I am unable to comment as to whether or not that subsystem name is still valid in 10.10 as I do not know what changes have been made to udev.
First step would be to verify that your vendor id is correct with lsusb (that appears to be Samsung's vendor id, but it can't hurt to check).
I am also running 10.10, but I have an HTC device. Here is my rule file's content:
SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
After editing the file, I unplugged my device. Just in case, I kill adb's daemon:
sudo adb kill-server
I then reconnected my device and executed "adb devices". adb started the daemon without sudo. My device was listed properly.
I resolved the above problem by prefixing the 51-android-rules file with #samsung, i mean,
'#samsung SUBSYSTEM=="usb_device", SYSFS{idVendor}=="04e8", MODE="0666"'.
I killed the adb server and restarted in SU mode and then ran
$sudo adb devices,
i was able to see my device listed.