Android: Yeahpad Pillbox7´s idVendor? - android

I am trying to run/debug and my Android-app via Eclipce on an Yeahpad Pillbox7.
My OS is Ubuntu 12.10..
From the http://developer.android.com/tools/device.html#setting-up page,
I can see I need to set the:
sudo gedit /etc/udev/rules.d/51-android.rules
Then I need to add this:
SUBSYSTEM=="usb", ATTR{idVendor}=="?", MODE="0666", GROUP="plugdev"
But I can´t find the ATTR{idVendor} for Yeahpad devies!!
UPDATE:
Just use
18d1
So it look like this.
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev"

Show connected devices by running sudo lsusb -v

Related

Eclipse ADT won't detect android devices

I've done everithing I need to in order to ADB recognize my device
As you can see, it is connected.
But eclipse won't let me work in peace
Additional info:
juan#juan-TE5:~$ lsusb
Bus 002 Device 006: ID 22b8:2d66 Motorola PCS
juan#juan-TE5:~$ cat /etc/udev/rules.d/51-android.rules
UBSYSTEM=="usb", SYSFS{idVendor}=="22b8", MODE="0666"
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666", GROUP="plugdev"
I have also checked in the device "debuggable mode".
Any ideas?
Updated
Now I see this
Sometimes there is another option inside of Dev Options called USB Debuggable. Need to have that on as well...as Isabel suggested.
I had a similar issue on Ubuntu 14 with OpenCv 2.4.9, I found a solution.
Check out this link for more info:
http://developer.android.com/tools/device.html
Basically, all you should need to do is:
Create this file as sudo
sudo nano /etc/udev/rules.d/51-android.rules
Copy and paste this line, but check and make sure you have the right vendor ID, into the file:
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev"
Finally, use chmod to give permissions:
chmod a+r /etc/udev/rules.d/51-android.rules
You can get the vendorid from the link, it should have all of them. The mode, specifies read/write/etc. and the group defines which Unix group owns the device node.

Android Device doesn't appear online in Ubuntu 13.04

My device is a Pantech Flex (ATT carrier and rooted)
It will not show up in ADB device chooser
I have created a file /etc/udev/rules.d/51-android.rules
I have created a file /etc/udev/rules.d/50-android.rules
I have created a file /etc/udev/rules.d/70-android.rules
I have edited the file ~/.android/adb_usb.ini
I am running eclipse ADT. I am using ubuntu 13.04
The contents for each of the files are identical (idVendor 10a9 for Pantech):
# ANDROID 3RD PARTY USB VENDOR ID LIST -- DO NOT EDIT.
# USE 'android update adb' TO GENERATE.
# 1 USB VENDOR ID PER LINE.
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTR{idVendor}=="10a9", MODE="0666", GROUP="plugdev"
SUBSYSTEM=="usb", ATTR{idVendor}=="04e8", MODE="0666", GROUP="plugdev"
Turns out that one of those files fixed the problem after a reboot.
No harm in having all of these files if you arnt sure which one your system needs. Its ugly but it works:
/etc/udev/rules.d/51-android.rules
/etc/udev/rules.d/50-android.rules
/etc/udev/rules.d/70-android.rules
~/.android/adb_usb.ini

Unable to connect android device to eclipse on linux system

I'm unable to connect an android device to eclipse on the linux system using abd. I have created 51-android.rules file in root/etc/udev/rules.d as follows:
SUBSYSTEM="usb", ATTR{idVendor}=="2821", MODE="0666", GROUP="plugdev"
SUBSYSTEM="usb", ATTR{idVendor}=="04e8", MODE="0666", GROUP="plugdev"
SUBSYSTEM="usb", ATTR{idVendor}=="0955", MODE="0666", GROUP="plugdev"
SUBSYSTEM="usb", ATTR{idVendor}=="0b05", MODE="0666", GROUP="plugdev"
SUBSYSTEM="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev"
SUBSYSTEMS="usb", ATTRS{idVendor}=="2821",ATTRS{idProduct}=="19983" MODE="0666"
SUBSYSTEM="usb", SYSFS{idVendor}=="0bb4" MODE="0666"
When I connect an android device to the linux system, the device isn't recognizable. Rather, I get ?????? as the device name.
Softwares installed:
Ubuntu 10.04
Eclipse Indigo
Android 4.3
Try:
sudo adb kill-server
sudo adb start-server
if ADB is in your $PATH. if not,
sudo ./adb kill-server
sudo ./adb start-server
From android-sdk/platform-tools.
You need two '=' after the SUBSYSTEM (ie. SUBSYSTEM**==**"usb", ATTR{idVendor}=="2821", ...)
Make sure your file name is correct !
/etc/udev/rules.d/51-android.rules. (Contains . at the end)
You must add permission to this file so external application can gain privilege to access it by
chmod a+r /etc/udev/rules.d/51-android.rules
Detail Description about device configuration is here..

Android Device doesn't appear online in Ubuntu 12.04

I just updated my ubuntu 11.10 to 12.04 and getting this problem, my android device does not appear online while I run android project from eclipse.I've attached a screenshot. I also put file in /etc/udev/rules.d/51-android.rules.
the content of 51-android.rules file is
SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0bb4", MODE="0666"
screenshot is
SYSFS was deprecated in the recent versions of udev.
Your file should only have lines like this:
SUBSYSTEM=="usb", ATTR{idVendor}=="0bb4", MODE="0666", GROUP="plugdev"
where 0bb4 is the vendor id.
You can get the vendor id for your phone through the terminal. Run 'lsusb' on the commmand line and find the line with your device.
For example, on my case:
Bus 004 Device 004: ID 18d1:4e22 Google Inc. Nexus S (debug)
So the vender id is 18d1.
And the above line becomes:
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev"

Debugging Android App on Device

I know there are many questions about this but none of them helped my situation.I'm running Ubuntu 11.10 and I'm trying to debug an app on my LG phone. I followed this guide: http://developer.android.com/guide/developing/device.html
I enabled USB debugging on my phone,set the project to debuggable in the manifest, and edited the /etc/udev/rules.d/51-android.rules rules file. Here is the contents of the file:
SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666", GROUP="plugdev"
1004 is the vendor ID for LG. The device is mounted; I can access it in my filesystem and the USB mounted indicator is in the notifications area. When I run adb devices, the phone is not listed, only the emulator is. It is also not recognized in Eclipse. How can I get Eclipse to recognize my device?
Here is my ultimate script to adding rules for all Android devices. You should delete your xx-android.rules files if you wrote it and make this with sudo:
#!/bin/bash
android_SDK=$1
if [[ $android_SDK == "" ]]
then
echo 'usage: sudo add_device_rules_to_unix.sh /android-SDK/platform-tools/dir/path'
exit
fi
PATH=$PATH:$android_SDK
rules_file="/etc/udev/rules.d/99-android.rules"
# Adding rules to 99-android.rules file
echo '# Acer
SUBSYSTEM=="usb", SYSFS{idVendor}=="0502", MODE="0666"
# Dell
SUBSYSTEM=="usb", SYSFS{idVendor}=="413c", MODE="0666"
# Foxconn
SUBSYSTEM=="usb", SYSFS{idVendor}=="0489", MODE="0666"
# Garmin-Asus
SUBSYSTEM=="usb", SYSFS{idVendor}=="091E", MODE="0666"
# Google
SUBSYSTEM=="usb", SYSFS{idVendor}=="18d1", MODE="0666"
# HTC
SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
# Huawei
SUBSYSTEM=="usb", SYSFS{idVendor}=="12d1", MODE="0666"
#Kyocera
SUBSYSTEM=="usb", SYSFS{idVendor}=="0482", MODE="0666"
# LG
SUBSYSTEM=="usb", SYSFS{idVendor}=="1004", MODE="0666"
# Motorola
SUBSYSTEM=="usb", SYSFS{idVendor}=="22b8", MODE="0666"
# Nvidia
SUBSYSTEM=="usb", SYSFS{idVendor}=="0955", MODE="0666"
# Pantech
SUBSYSTEM=="usb", SYSFS{idVendor}=="10A9", MODE="0666"
# Samsung
SUBSYSTEM=="usb", SYSFS{idVendor}=="04e8", MODE="0666"
# Sharp
SUBSYSTEM=="usb", SYSFS{idVendor}=="04dd", MODE="0666"
# Sony Ericsson
SUBSYSTEM=="usb", SYSFS{idVendor}=="0fce", MODE="0666"
# ZTE
SUBSYSTEM=="usb", SYSFS{idVendor}=="19D2", MODE="0666"' > $rules_file
# Applying rules and restarting adb
chmod a+r $rules_file
service udev restart
adb kill-server
adb start-server
Hope it helps you.
I found my problem. The Android guide says to name the udev file 51-android.rules. But for newer version of Ubuntu (Karmic and sooner) it needs to be names 70-android.rules. This is the tutorial I followed: http://esausilva.com/2010/05/13/setting-up-adbusb-drivers-for-android-devices-in-linux-ubuntu/. Thanks for your answers though.
You should install usb-drivers for your device (even if you have access with your file system). Maybe it's a standart driver, that allows you to use SD card on your phone (but nothing more).
Try searching for generic adb drivers for LG for Ubuntu, install them, reboot and connect your phone. Then go to terminal, navigate to folder with adb and use the following command to see if your device is recognised:
./adb devices
If it shows your device, it is ready to be used with android sdk.
There is an extra step on 64 bit Ubuntu:
apt-get install ia32-libs
Maybe this is the issue?

Categories

Resources