Root Access on Android SDK (Emulator) [duplicate]

2019-06-08 07:58发布

问题:

This question already has an answer here:

  • How to get root access on Android emulator? 10 answers

I have installed SQLite Editor app on the emulator but its showing that ;The application don’t have root permission. Tried apps like SuperUser to provide root access bur unable to do the same.

What is the best way to gain root access from Emulator itself? Please post the step by step process to gain the root access on Android SDK.

回答1:

Use the shell, that already gives you root access on the emulator:

(on your computer)
$ adb -e shell
$ cd /data/data/org.myapp/databases
$ sqlite3 mydb.db

AFAIK, you can't give give an app super user access on the emulator by installing the Superuser.apk.