谁帮我看看这脚本。
安卓移植吧
全部回复
仅看楼主
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
level 3
ybsicewing 楼主
总提示status6
2014年05月31日 07点05分 2
level 10
如果我不是3楼请楼上楼下监督我吃翔[滑稽] 我!今!天!没!吃!药!感!觉!自!己!萌!萌!哒!
2014年06月08日 11点06分 3
1