views:

336

answers:

1

Using the Android Scripting Environment (ASE), I can run Python scripts on the Android emulator that ships with the SDK. However, I want to run the scripts as root/superuser for some reasons, like creating log files and some more.

Like the actual phones, can the emulator be rooted to execute these scripts as root or some superuser?

Thanks in advance.

A: 

You always have root on the Android emulator. To prove it, open a shell and type:

# su
# whoami
root

As for running scripts as root, you can do it from a shell, but not from within ASE currently. That's tracked by issue 184. You can star it if you'd like to be notified when that is supported.

Damon