Scripting in android
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.
开发者_如何学PythonThank u, Sindhu
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
精彩评论