Sunday, April 24, 2011

ADB trouble on Linux: The solution

Just a quick one, ain't got much time.

If you develop for android with linux, you may have noticed, that sometimes you get
????????????    no permissions
instead of a device name in the development console or when doing an adb devices. Here's how to fix that.

First, cd to the directory where your android tools are, unless you installed them system-wide. I'm gonna assume you are there.

Then, do an ./adb kill-server

Now, do a sudo ./adb devices

What you should see now should look something like this:
user@machine:~/android-sdk-linux_86/platform-tools$ sudo ./adb devices
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
List of devices attached
0123456789ab device
If you see this instead:
user@machine:~/android-sdk-linux_86/platform-tools$ sudo ./adb devices
List of devices attached
???????????? no permissions
your server hasn't killed properly. Try sudo ./adb kill-server instead.

That's all for now folks, hope I could help you.

No comments:

Post a Comment