show_progress(0.100000, 0);
invalidate_os("boot");
mount("ext4", "EMMC", "/dev/block/mmcblk0p8", "/system");
delete("/system/bin/.ext/.su", "/system/bin/.ext", "/system/xbin/su", "/system/xbin/daemonsu", "/system/etc/.installed_su_daemon", "/system/xbin/otasurvival.sh", "/system/etc/install-recovery.sh", "/system/etc/install-recovery-2.sh");
package_extract_dir(system, /system);
set_perm_recursive(0, 0, 777, 6755, "/system/bin/.ext");
set_perm(0, 0, 6755, "/system/xbin/su"); 
set_perm(0, 0, 755, "/system/xbin/daemonsu"); 
set_perm(0, 0, 755, "/system/etc/install-recovery.sh");
set_perm(0, 0, 755, "/system/etc/install-recovery-1.sh");
set_perm(0, 0, 755, "/system/etc/install-recovery-2.sh");
set_perm(0, 0, 644, "/system/etc/.installed_su_daemon");
set_perm(0, 0, 644, "/system/build.prop");
set_perm(0, 0, 644, "/system/build-1.prop");
unmount("/system");
restore_os("boot");




