3

Should not shell@mako:/ $ be shell@mako:/ #? Or I haven't root successfully yet? How to check whether my nexus4 have root successfully?

Thanks!

Dan Hulme
  • 35,000
  • 17
  • 90
  • 155
wbj1022
  • 33
  • 4

1 Answers1

4

Rooted or not: Logging in via adb shell first brings you to a user-prompt only (connected with the "shell" account). In order to work with root, you need to "escalate" your permissions by invoking su:

> adb shell
shell@mako:/ $ su
#

Apart from that, there are a few root checker apps available as well...

Izzy
  • 91,166
  • 73
  • 343
  • 943
  • Alternatively, re-starting adb as root via adb root will start the shell in escalated mode. This will only work with custom ROMs though, not rooted stock. – Chahk Aug 26 '13 at 13:41
  • No. This only works with ROMs signed for development (check the error message on stock ;). Or with adbd Insecure. – Izzy Aug 26 '13 at 14:53
  • but why it shows root@android:/ # in another phone (Philips) when i enter command adb shell? What's the difference? – wbj1022 Aug 27 '13 at 08:37
  • The other phone might be running a developer's ROM with the daemon (adbd) running in root mode by default. See my previous comment. – Izzy Aug 27 '13 at 09:00