婆罗门
精华
|
战斗力 鹅
|
回帖 0
注册时间 2010-4-30
|
本帖最后由 mirari 于 2013-9-22 17:14 编辑
#!/sbin/sh
if [ -e "/system/bin/samsungani.bak" ]
then
echo "Will NOT make a backup, as it already exists..."
else
cp /system/bin/samsungani /system/bin/samsungani.bak
echo "Backup created..."
fi
ui_print("");
ui_print("Custom Bootanimation - Enable");
ui_print("");
ui_print("Made by Anbech");
ui_print("");
run_program("/sbin/busybox", "mount", "/system");
package_extract_dir("anbech", "/sdcard/anbech");
set_perm(0, 0, 0755, "/sdcard/anbech/backup.sh");
run_program("/sdcard/anbech/backup.sh");
delete("/sdcard/anbech");
run_program("/sbin/busybox", "cp", "-f", "/system/bin/bootanimation", "/system/bin/samsungani");
run_program("/sbin/busybox", "umount", "/system");
run_program("/sbin/busybox", "umount", "/sdcard");
ui_print("Done.. Reboot!");
看了下zip包里的内容,其实没必要刷……跟文字教程一样,也只是做了一步把bootanimation替换成samsungani的操作。
不过我明明这么做了,启动还是会黑屏,莫非是之前的zip包不对,再试一次 |
|