assert(getprop("ro.product.device") == "GT-S5830" ||
       getprop("ro.build.product") == "GT-S5830"  ||
       getprop("ro.product.device") == "GT-S5570" ||
       getprop("ro.build.product") == "GT-S5570"  ||
       getprop("ro.product.device") == "GT-S5670" ||
       getprop("ro.product.product") == "GT-S5670"||
       getprop("ro.product.device") == "GT-B7510" ||
       getprop("ro.product.product") == "GT-B7510"
       );
show_progress(0.100000, 0);
show_progress(0.500000, 0);
# format("MTD", "system");
#mount("MTD", "system", "/system");
package_extract_dir("system", "/system");
set_perm(0, 0, 04755, "/system/xbin/sqlite3");
set_perm(0, 0, 04755, "/system/xbin/su-v1");
set_perm(0, 0, 04755, "/system/xbin/su-v2");
set_perm(0, 0, 04755, "/system/xbin/su-v3");
set_perm(0, 0, 04755, "/system/xbin/su");
set_perm(0, 0, 04755, "/system/xbin/sh");
set_perm(0, 0, 04755, "/system/xbin/busybox");
#unmount("/system");
