Adb device offline on Ubuntu Natty

3k Views Asked by At

I am developing on Android and I am running Ubuntu. I have a really hard time getting the device 'Online'. I already tried:

  • All the udev rules that can be found on the internet.
  • Add the .ini file in the .android folder.
  • The usual reboot computer, deivce, unplug device, uncheck developer and recheck it ...

At the moment I just spent about 30minutes to one houre just changing USB ports, rebooting the computer, device. And after a while it always works. But this is getting really frustrating spending so much time just to get the device recognized.

Something I noticed. When I spam adb devices while booting the tablet:

student@terminal32:~$ ./adb devices
List of devices attached 
46411960A012FCCE    device

student@terminal32:~$ ./adb devices
List of devices attached 
46411960A012FCCE    device

student@terminal32:~$ ./adb devices
List of devices attached 

student@terminal32:~$ ./adb devices
List of devices attached 

student@terminal32:~$ ./adb devices
List of devices attached 
????????????    offline

student@terminal32:~$ ./adb devices
List of devices attached 
????????????    offline

At first it recognized my devices, but then when it is fully booted, it apears to be offline anyway.

Can any one give me some tips on what I can do to fix this frustrating problem. And maybe someone can give me some inside on what the problem actually is, why does it still work after 30 minutes to one hour ?

2

There are 2 best solutions below

0
On

It happend to me recently, change your phone usb connection to PTP camera.

1
On

I just went through the same hell, reboot device, pc... various times actually.

Not saying that this would always work, but my last successful attempt at least did not involve unplugging or rebooting the pc: - adb client was running - device recognized but offline - device connected via usb

Then I simply rebooted the device (i.e. without unplugging or restarting the dab or anything).