How do I root the Android emulator? I need root to install an .apk file on the emulator.

  • If you're not fond of command lines, you can also explore the emulator with the Eclipse ADT plugin. The plugin integrates a couple of development tools like ADB, DDMS, logcat, etc. I find it very interesting to connect my phone with USB (enable USB Debugging) and watch how everything works, and the same can be done for the emulator. – Sander Versluys Dec 28 '10 at 18:39

The Android emulator gives you root access, you don't need to root it. Check out the emulator section on android.com for details on how to do things as root, for example:

-shell

Create a root shell console on the current terminal. It differs from the adb shell command in the following ways:

  • It creates a root shell that allows you to modify many parts of the system.
  • It works even if the adb daemon in the emulated system is broken.
  • Pressing Ctrl+C (⌘C) stops the emulator, instead of the shell.

For example:

$ emulator @Nexus_5X_API_23 -shell
  • Link dead, consider resourcing – samdd Mar 27 '17 at 8:16

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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