Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I get root permissions in a terminal?

share|improve this question

Type su and your terminal prompt should change from $ to #. This is assuming that your device is already rooted.

share|improve this answer
AND that su is installed. – Matthew Read Dec 24 '10 at 22:56
i try it but this message shown "permission denide" – mahdi Dec 25 '10 at 11:03
@mahdi: Is your device already rooted? – Lie Ryan Dec 25 '10 at 11:51
no i try it on emulator – mahdi Dec 25 '10 at 19:31
is it possible to do root on emulator ? – mahdi Dec 26 '10 at 18:47

Production phones don't ship with root access, developer phones do. If you have a production phone (likely: you'd know if you bought a dev phone), you have to "root" them first. As @Joe_Casadonte points out, there are some great instructions here and elsewhere (Notably the CyanogenMod Wiki and Android Rom's google group) to get you started rooting your phone. (And if you get stuck ... come back here with your questions!).

Once you've rooted your phone, you can gain root privileges in the adb shell or the terminal emulator with the su command.

Note: it sounds from some of your responses like you haven't yet rooted your phone. So you'll need to start there.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.