Hi there,
Same issue, and tryed 2 solution on the script but nothing work.
My file :
assert(getprop(“ro.product.device”) == “starltexx” || getprop(“ro.build.product”) == “starltexx” ||
getprop(“ro.product.device”) == “starlteks” || getprop(“ro.build.product”) == “starlteks” ||
getprop(“ro.product.device”) == “starlte” || getprop(“ro.build.product”) == “starlte” || abort(“E3004: This package is for device: starltexx,starlteks,starlte; this device is " + getprop(“ro.product.device”) + “.”););
ifelse(is_mounted(”/vendor"), unmount("/vendor"));
mount(“ext4”, “EMMC”, “/dev/block/platform/11120000.ufs/by-name/VENDOR”, “/vendor”);
ifelse(file_getprop("/vendor/build.prop",“ro.vendor.build.date.utc”) != “1536890700”,
unmount("/vendor");
ui_print(" “);
ui_print(”=============================================");
ui_print("=============================================");
ui_print(" ERROR: “);
ui_print(” Vendor image on the device “);
ui_print(” is NOT compatible “);
ui_print(” Expected version: 27_ARI9 “);
ui_print(” You can download from is.gd/omexok “);
ui_print(”=============================================");
ui_print("============NO CHANGE HAS BEEN MADE==========");
abort(" “););
unmount(”/vendor");
ui_print(“Target: samsung/lineage_starlte/starlte:8.1.0/OPM7.181205.001/a863ee5b61:userdebug/dev-keys”);
ifelse(is_mounted("/system"), unmount("/system"));
package_extract_dir(“install”, “/tmp/install”);
set_metadata_recursive("/tmp/install", “uid”, 0, “gid”, 0, “dmode”, 0755, “fmode”, 0644);
set_metadata_recursive("/tmp/install/bin", “uid”, 0, “gid”, 0, “dmode”, 0755, “fmode”, 0755);
mount(“ext4”, “EMMC”, “/dev/block/platform/11120000.ufs/by-name/SYSTEM”, “/system”, “”);
run_program("/tmp/install/bin/backuptool.sh", “backup”);
unmount("/system");
show_progress(0.750000, 0);
ui_print(“Patching system image unconditionally…”);
block_image_update("/dev/block/platform/11120000.ufs/by-name/SYSTEM", package_extract_file(“system.transfer.list”), “system.new.dat.br”, “system.patch.dat”) ||
abort(“E1001: Failed to update system image.”);
run_program("/sbin/e2fsck", “-fy”, “/dev/block/platform/11120000.ufs/by-name/SYSTEM”);
run_program("/sbin/resize2fs", “/dev/block/platform/11120000.ufs/by-name/SYSTEM”);
run_program("/sbin/e2fsck", “-fy”, “/dev/block/platform/11120000.ufs/by-name/SYSTEM”);
show_progress(0.020000, 10);
mount(“ext4”, “EMMC”, “/dev/block/platform/11120000.ufs/by-name/SYSTEM”, “/system”, “”);
run_program("/tmp/install/bin/backuptool.sh", “restore”);
unmount("/system");
show_progress(0.050000, 5);
package_extract_file(“boot.img”, “/dev/block/platform/11120000.ufs/by-name/BOOT”);
show_progress(0.200000, 10);
mount(“ext4”, “EMMC”, “/dev/block/platform/11120000.ufs/by-name/SYSTEM”, “/system”);
run_program("/sbin/sed", “-i”, “/exfat/d”, “/system/etc/selinux/plat_sepolicy.cil”);
run_program("/sbin/sed", “-i”, “/sdfat/d”, “/system/etc/selinux/plat_sepolicy.cil”);
unmount("/system");
set_progress(1.000000);
help, any other suggest ?
best,