level 3
ybsicewing
楼主
ui_print(">>> Updataing Kernel image");
package_extract_file("kernel.img","/dev/block/mtdblock2");
ui_print(">>> Updataing Boot image");
package_extract_file("boot.img","/dev/block/mtdblock3");
ui_print(">>>format /system");
format("ext4","EMMC","/dev/block/mtdblock9");
ui_print(">>> Mount /system");
mount("ext4","EMMC","/dev/block/mtdblock9","/system");
show_progress(0.200000,0);
ui_print(">>> Extracting files to /system");
package_extract_dir("system","/system");
set_perm_recursive(0,0,0755,0644,"/system");
set_perm_recursive(0,0,0777,0777,"/system/etc/init.d");
set_perm_recursive(0,2000,0755,0755,"/system/bin");
set_perm(0,1000,04750,"/system/bin/diag_mdlog");
set_perm(0,1000,04750,"/system/bin/iptables");
set_perm(0,3003,02750,"/system/bin/netcfg");
set_perm(0,3004,02755,"/system/bin/ping");
set_perm(0,2000,06750,"/system/bin/run-as");
set_perm(0,1000,04750,"/system/bin/tc");
set_perm_recursive(1002,1002,0755,0440,"/system/etc/bluetooth");
set_perm(0,0,0755,"/system/etc/bluetooth");
set_perm(1014,2000,0550,"/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm_recursive(0,2000,0755,0755,"/system/xbin");
set_perm(0,0,06755,"/system/xbin/su");
set_perm(0,0,06755,"/system/xbin/librank");
set_perm(0,0,06755,"/system/xbin/procmem");
set_perm(0,0,06755,"/system/xbin/procrank");
set_perm(0,0,06755,"/system/xbin/tcpdump");
show_progress(0.200000,10);
ui_print(">>> Unmount /system");
unmount("/system");
ui_print("");
ui_print(">>> Done!");
ui_print("");
2014年05月31日 07点05分
1
package_extract_file("kernel.img","/dev/block/mtdblock2");
ui_print(">>> Updataing Boot image");
package_extract_file("boot.img","/dev/block/mtdblock3");
ui_print(">>>format /system");
format("ext4","EMMC","/dev/block/mtdblock9");
ui_print(">>> Mount /system");
mount("ext4","EMMC","/dev/block/mtdblock9","/system");
show_progress(0.200000,0);
ui_print(">>> Extracting files to /system");
package_extract_dir("system","/system");
set_perm_recursive(0,0,0755,0644,"/system");
set_perm_recursive(0,0,0777,0777,"/system/etc/init.d");
set_perm_recursive(0,2000,0755,0755,"/system/bin");
set_perm(0,1000,04750,"/system/bin/diag_mdlog");
set_perm(0,1000,04750,"/system/bin/iptables");
set_perm(0,3003,02750,"/system/bin/netcfg");
set_perm(0,3004,02755,"/system/bin/ping");
set_perm(0,2000,06750,"/system/bin/run-as");
set_perm(0,1000,04750,"/system/bin/tc");
set_perm_recursive(1002,1002,0755,0440,"/system/etc/bluetooth");
set_perm(0,0,0755,"/system/etc/bluetooth");
set_perm(1014,2000,0550,"/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm_recursive(0,2000,0755,0755,"/system/xbin");
set_perm(0,0,06755,"/system/xbin/su");
set_perm(0,0,06755,"/system/xbin/librank");
set_perm(0,0,06755,"/system/xbin/procmem");
set_perm(0,0,06755,"/system/xbin/procrank");
set_perm(0,0,06755,"/system/xbin/tcpdump");
show_progress(0.200000,10);
ui_print(">>> Unmount /system");
unmount("/system");
ui_print("");
ui_print(">>> Done!");
ui_print("");