Alex Rivera | Logout

How to usb-connect android devices with adb under ubuntu

Asked 2012-02-19T15:54:37.293
10

Other may have experienced problems with adb debugging under ubuntu linux.

The symptom is the availability of usb connected android devices e.g. with eclipse. You may test this with

adb usb

When you get

error: insufficient permissions for device

you probably run into the same problem like me. However, I found on the internet some more or less sub optimal solutions

The basic idea is to start adb as root. The solutions I found were cumbersome.

One proposal is to start adb per sudo. An other proposal was to set up a boot script in /etc/init.d

My solution is to give adb the permission to start as root. To do so, switch to root

sudo bash
chown root adb
chmod ug+s-w adb

security fanatics may propose

sudo chown root adb
sudo chmod ug+s-w adb

If adb is already running you need to kill the demon to start with root permission

adb kill-server

When everything went right

adb usb

should return

restarting in USB mode

if not, try lsusb th check whether your device is already connected

Edit
Report

1 Answer

3

use following three command its works for me

sudo bash
adb kill-server
adb usb
answered 2013-06-29T05:45:58.943

Your Answer