evergreen
evergreen

Reputation: 746

How to connect to a dev phone and gain the root permission through "adb shell"

I'm using a dev phone (Nexus One). I connected to it through "adb shell" but I couldn't get the root permission. When I run "su" in the shell, I got

$ su
su: permission denied

Actually I cannot access "/sbin" at all.

When I used the "root" option in "adb", I got errors too:

./adb root -s xxx shell
adbd cannot run as root in production builds

I got this error no matter I used a downloaded SDK or I compiled an SDK from the source. I'm not sure about what "production builds" actually means. Does it mean that I need to compile Android and put it on the phone? I thought a dev phone already has the root permission unlocked.

Thanks for your help.

Upvotes: 3

Views: 4564

Answers (1)

vendor
vendor

Reputation: 1854

You should unlock your phone - root it. Nexus One comes with this option, but you have to enable it. You can read this article or google for more.

Upvotes: 5

Related Questions