How do I root the Android emulator? I need root to install an .apk file on the emulator.
Asked
Active
Viewed 1.6k times
1 Answers
23
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:
-shellCreate a root shell console on the current terminal. It differs from the
adb shellcommand 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
Matthew Read
- 50,777
- 30
- 148
- 275