New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
sz_gergo
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 9
Join Date: Nov 2010
Location: Budapest
Default ADB problem on Ubuntu 12.04

Hi All

i have a problem on Ubuntu 12.04 with the adb .
My device is simply not detected by adb. ( there are no devices in the device list.
I have updated the udev rules many times , and it seems to me that the device itself is detected by the system.
I wiould need any help with that problem , which makes me slowly really mad.

Thank you for your help

BR
sz_gergo
 
craterib
Old
#2  
Junior Member
Thanks Meter 4
Posts: 24
Join Date: Dec 2010
Location: Puducherry
Hi,

The problem got solved for me when I started adb server as root process.

Open a terminal and go to android-sdk-linux_x86/platform-tools or wherever adb resides, and type

Code:
adb kill-server
sudo ./adb start-server
Now hopefully when you type adb-devices, adb-server will recognize your device provided the udev-rules are correct.

All the best !
 
sz_gergo
Old
#3  
Junior Member - OP
Thanks Meter 0
Posts: 9
Join Date: Nov 2010
Location: Budapest
Quote:
Originally Posted by craterib View Post
Hi,

The problem got solved for me when I started adb server as root process.

Open a terminal and go to android-sdk-linux_x86/platform-tools or wherever adb resides, and type

Code:
adb kill-server
sudo ./adb start-server
Now hopefully when you type adb-devices, adb-server will recognize your device provided the udev-rules are correct.

All the best !
Hi craterib !!

Firstly thanks for your answere.
I will try your sollution when i arrive at home, today.
I will provide you the results. Could you paste your udev rules ??
Just for the case that mine are not the best ones

THX

Gergo
 
kuisma
Old
(Last edited by kuisma; 23rd July 2012 at 02:04 PM.)
#4  
kuisma's Avatar
Senior Member
Thanks Meter 148
Posts: 361
Join Date: Jun 2009
Location: Sweden
Quote:
Originally Posted by sz_gergo View Post
Hi craterib !!

Firstly thanks for your answere.
I will try your sollution when i arrive at home, today.
I will provide you the results. Could you paste your udev rules ??
Just for the case that mine are not the best ones

THX

Gergo
Code:
kuisma@workstation:/etc/udev/rules.d$ more 51-android.rules
# Sony Ericsson Mobile Communications AB
SUBSYSTEM=="usb", ATTR{idVendor}=="0fce", ATTR{idProduct}=="6168", MODE="0600", OWNER="kuisma"
Using this, you don't have to run the adb server as root. Use the "lsusb" to get Vendor and Product id for your device.
Also, change "kuisma" to your user, of course, unless toy happen to be me.
Restart udev (/etc/init.d/udev restart) once you've edited this.
 
bronzext
Old
#5  
Junior Member
Thanks Meter 1
Posts: 4
Join Date: Mar 2011
Quote:
Originally Posted by sz_gergo View Post
Hi All

i have a problem on Ubuntu 12.04 with the adb .
My device is simply not detected by adb. ( there are no devices in the device list.
I have updated the udev rules many times , and it seems to me that the device itself is detected by the system.
I wiould need any help with that problem , which makes me slowly really mad.

Thank you for your help

BR
sz_gergo
To get your newly build Apps down to your device you have to use the ADB (Android Debug Bridge). The common way to make your device ready for playing is to download the USB driver package which is included in the SDK Manager.

But these drivers are only for a couple of common mobile devices, so what if you have an ARCHOS 8 like me…. You will still get stuck with a nice…. device not found ….

The first part is easy, Archos in my case, offers his own usb drivers .

After downloading the USB driver I got a shiny “Archos 7 ADB” item under “Android Phone” in my windows device manager. But what is this,…. after restarting the ADB daemon,…. “ADB devices” was only showing an annoying message… “device not found….” Gees.

Hmm, Google is your best friend …… The solution is that the ADB daemon needs also your USB device vendor ID (VID)

If you cannot get it from your device vendor you may look under device manager -> device details -> hardware ID -> USB\VID_xxxx.

The VID for the adb should be placed in a file under {user home}/.android/adb_usb.ini.

Insert the VID in HEX notation {0x0e79}

If this file does not exist, just create it!
 
sz_gergo
Old
#6  
Junior Member - OP
Thanks Meter 0
Posts: 9
Join Date: Nov 2010
Location: Budapest
Quote:
Originally Posted by bronzext View Post
To get your newly build Apps down to your device you have to use the ADB (Android Debug Bridge). The common way to make your device ready for playing is to download the USB driver package which is included in the SDK Manager.

But these drivers are only for a couple of common mobile devices, so what if you have an ARCHOS 8 like me…. You will still get stuck with a nice…. device not found ….

The first part is easy, Archos in my case, offers his own usb drivers .

After downloading the USB driver I got a shiny “Archos 7 ADB” item under “Android Phone” in my windows device manager. But what is this,…. after restarting the ADB daemon,…. “ADB devices” was only showing an annoying message… “device not found….” Gees.

Hmm, Google is your best friend …… The solution is that the ADB daemon needs also your USB device vendor ID (VID)

If you cannot get it from your device vendor you may look under device manager -> device details -> hardware ID -> USB\VID_xxxx.

The VID for the adb should be placed in a file under {user home}/.android/adb_usb.ini.

Insert the VID in HEX notation {0x0e79}

If this file does not exist, just create it!
Dear all suddenly it is solved !!!!!!
Well the sollution was for me to insert the Vendor Id of my box into the $HOME/.android/abd_usb.ini in the hex notation.
After that i have killed the server and restarted it as a normal user.

It is working fine now and the device is shown by the adb devices

Thank you for your help

BR
Gergo
 
x1123
Old
#7  
x1123's Avatar
Senior Member
Thanks Meter 443
Posts: 558
Join Date: Mar 2011
Location: Banda Aceh
I did not see anybody here mention Knives-And-Forks Tools which is easiest way to Install adb and Fastboot on multiplatform computer. I did it and works like a charm

Simplicity is Ultimate Sophistication : L Da Vinci


XDA PORTAL POSTS

Pearl Chen to Talk NFC Development at XDA:DevCon 2013

From HTML to LEDs or Android to Arduino, Hardware Hacking is a pastime of many people … more

Avoid Framework Bootloops on Xperias Running Jelly Bean

If you’re a Sony device owner running a stock Android Jelly Bean firmware and … more

Forum Added for the Samsung Galaxy Mega

What do you do when the Galaxy Note line is simply not big enough? You get theSamsung Galaxy Mega. … more

Voice Control Your Phone with Tasker and AutoVoice – XDA Developer TV

XDA Developer TV Producer Kevin set up his phone to respond to … more