assert(getprop("ro.modversion") == "********" || getprop("ro.product.device") == "bird73_gb");
ui_print("");
ui_print("===============================");
ui_print(" ;
ui_print("");
ui_print(" ;
ui_print("===============================");
ui_print("");
show_progress(0.500000, 0);
ui_print("[ ] Format partition: DATA");
format("yaffs2", "MTD", "userdata");
delete_recursive("/sdcard/.android_secure");
ui_print("[ ] Mount partition: DATA");
mount("yaffs2", "MTD", "userdata", "/data");
ui_print("[ ] Format partition: CACHE");
format("yaffs2", "MTD", "cache");
ui_print("[ ] Format partition: SYSTEM");
format("yaffs2", "MTD", "system");
ui_print("[ ] Mount partition: SYSTEM");
mount("yaffs2", "MTD", "system", "/system");
show_progress(0.200000, 0);
ui_print("[ ] Installing files: DATA");
package_extract_dir("data", "/data");
set_perm_recursive(0, 0, 0777, 0777, "/data");
ui_print("[ ] Installing files: SYSTEM");
package_extract_dir("system", "/system");
symlink("toolbox", "/system/bin/cat", "/system/bin/chmod",
"/system/bin/chown", "/system/bin/cmp", "/system/bin/date",
"/system/bin/dd", "/system/bin/df", "/system/bin/dmesg",
"/system/bin/getevent", "/system/bin/getprop", "/system/bin/hd",
"/system/bin/id", "/system/bin/ifconfig", "/system/bin/iftop",
"/system/bin/insmod", "/system/bin/ioctl", "/system/bin/ionice",
"/system/bin/kill", "/system/bin/ln", "/system/bin/log",
"/system/bin/ls", "/system/bin/lsmod", "/system/bin/lsof",
"/system/bin/mkdir", "/system/bin/mount", "/system/bin/mv",
"/system/bin/nandread", "/system/bin/netstat",
"/system/bin/newfs_msdos", "/system/bin/notify", "/system/bin/printenv",
"/system/bin/ps", "/system/bin/reboot", "/system/bin/renice",
"/system/bin/rm", "/system/bin/rmdir", "/system/bin/rmmod",
"/system/bin/route", "/system/bin/schedtop", "/system/bin/sendevent",
"/system/bin/setconsole", "/system/bin/setprop", "/system/bin/sleep",
"/system/bin/smd", "/system/bin/start", "/system/bin/stop",
"/system/bin/sync", "/system/bin/top", "/system/bin/umount",
"/system/bin/uptime", "/system/bin/vmstat", "/system/bin/watchprops",
"/system/bin/wipe");
symlink("bash", "/system/bin/sh");
ui_print("[ ] Setting permissions");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm_recursive(0, 0, 0755, 0755, "/system/etc/init.d");
set_perm(0, 2000, 04755, "/system/bin/aee");
set_perm(0, 2000, 04755, "/system/bin/check_ota");
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(2000, 2000, 0755, "/system/bin/bash");
set_perm (0, 0, 0777, "/system/bin/zipalign");
set_perm (0, 0, 0777, "/system/bin/sysinit");
set_perm (0, 0, 0777, "/system/bin/e2fsck");
set_perm (0, 0, 0777, "/system/bin/tune2fs");
set_perm (0, 0, 0777, "/system/bin/fix_permissions");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm(0, 0, 0755, "/system/etc/bash.bashrc");
set_perm(0, 0, 0755, "/system/etc/profile");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm(0, 2000, 0755, "/system/vendor");
set_perm_recursive(0, 2000, 0755, 0755, "/system/vendor/bin");
set_perm(0, 2000, 0755, "/system/vendor/lib");
set_perm(0, 2000, 0755, "/system/vendor/lib/egl");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/lib/hw");
set_perm(0, 0, 0644, "/system/vendor/lib/hw/gralloc.mt6573.so");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
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/su");
set_perm(0, 0, 06755, "/system/xbin/tcpdump");
set_perm(0, 0, 04755, "/system/xbin/busybox");
symlink("/system/xbin/su", "/system/bin/su");
symlink("/system/xbin/busybox", "/system/bin/busybox");
set_perm(2000, 2000, 0755, "/data/local/.bash_aliases");
set_perm(2000, 2000, 0755, "/data/local/.bashrc");
set_perm(2000, 2000, 0755, "/data/local/.inputrc");
set_perm(2000, 2000, 0755, "/data/local/.profile");
show_progress(0.200000, 10);
ui_print("[ ] Flashing partition: BOOT");
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
ui_print("[ ] Flashing partition: LOGO");
assert(package_extract_file("logo.bin", "/tmp/logo.bin"),
write_raw_image("/tmp/logo.bin", "logo"),
delete("/tmp/logo.bin"));
show_progress(0.100000, 0);
ui_print("[ ] Unmount partition: SYSTEM");
unmount("/system");
ui_print("[ ] Unmount partition: DATA");
unmount("/data");
ui_print("[*] Installation complete.");
ui_print("");
ui_print("Please enjoy and donate if you like my work!");
ui_print("");
ui_print("[?] Questions / comments:");
ui_print(" Visit support forum. ");
ui_print("");
Das hier ist ein Update-script kann aber nicht finden wo die Apps installiert werden ????