关于android中运行dos命令

shell@android:/ $ su
shell@android:/ # mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system
shell@android:/ # chmod 777 /system 
shell@android:/ # cd system
shell@android:/system # chmod 777 app
shell@android:/system # cd app
shell@android:/system/app # exit
shell@android:/ $ exit
这串命令以什么格式在代码中运行

Java or android : Runtime,getRuntime().exec("ddos命令"); 例如pc关机:Runtime.getRuntime().exec("shutdown " + " " + "/s"); 如果android关机要root,自己试一下就知道了

不知道你所谓的格式是什么意思

shell命令。
http://blog.csdn.net/junmail/article/details/4602745

用re管理器,新建文笨存为.sh文件即可执行