Reputation: 110530
I am on Ubuntu 12.04. And I need to use 'adb shell' to connect to my device on linux:
I get Insufficient permission when running 'adb shell'as myself. But when I run it as 'root', it works.
How can I fix 'adb shell' so that I don' need to run it as root everytime?
Upvotes: 3
Views: 6805
Reputation: 1734
I guess, the problem and solution are the same as in question "adb devices command not working".
In short: you must inform Ubuntu that android device, connected to USB can be used by unprivileged users (that's forbidden by default).
That's even decribed in official Android Developer's Guide: Configuring USB Access, but I prefer a bit simplier 51-android.rules file.
Upvotes: 2
Reputation: 3912
Can You try changing the owner of the file adb ?
sudo chown <usergroup>.<username> adb
This is may work for you!
Upvotes: 0