Reputation: 1155
I have a script. Say suppose new.sh.It contains
su
cd /data/dalvik-cache/
ls
but i am unable to run the script in my emulator which starts with eclipse project . Any help would be sincerely appreciated.
Thank u, Sindhu
Upvotes: 0
Views: 143
Reputation: 5022
You can't simply run 'su' on the emulator, there's no root access by default. You'll need to install the 'su' program as well as the SuperUser.apk, and you'll have to do this each time you start the emulator unless using snapshots.
More information and links to the files you need can be found here on SO as well as this blog posting by Russell Davis
Upvotes: 2