开发者

Scripting in android

开发者 https://www.devze.com 2023-04-05 22:58 出处:网络
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 appreci

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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号