关于sh脚本的问题,谢谢!
在安卓系统中编写sh脚本的问题
我发现安卓系统中一下代码可以执行
#!/system/bin/sh#added by link2sdsleep 2mount -t ext3 -o rw /dev/block/vold/179:2 /data/sdext2mount -t ext3 -o rw /dev/block/mmcblk0p2 /data/sdext2
#!/system/bin/shsleep 2mount rootfs rootfs / rw remountif [ ! -e /system/app2ext -a -e /dev/block/mcblk0p2];then #busybox rm -rf /data/app#busybox rm -rf /data/app-private#busybox rm -rf /data/dalvik-cachemkdir /system/app2extmount -t ext3 -o rw /dev/block/vold/179:2 /system/app2extmount -t ext3 -o rw /dev/block/mmcblk0p2 /system/app2extmkdir /system/app2ext/datamkdir /system/app2ext/data/appmkdir /system/app2ext/data/app-privatemkdir /system/app2ext/data/dalvik-cachefiif [ -e /system/app2ext -a -e /dev/block/mmcblk0p2 ];then #busybox ln -s /system/app2ext/data/app-private /data/app-private#busybox ln -s /system/app2ext/data/app /data/app#busybox ln -s /system/app2ext/data/dalvik-cache /data/dalvik-cachefi