[Lenovo A6000/Plus ROMs, Kernels, Recoveries, & Oth] Moslem Ahmed:
I Always Get Error 6&7 ! How can i fix it?

assert(getprop("ro.product.device") == "Kraft-T" || getprop("ro.build.product") == "Kraft-T" ||

getprop("ro.product.device") == "a6000" || getprop("ro.build.product") == "a6000" ||

getprop("ro.product.device") == "K30-T" || getprop("ro.build.product") == "K30-T" ||

getprop("ro.product.device") == "A6000" || getprop("ro.build.product") == "A6000" ||

getprop("ro.product.device") == "Kraft-W" || getprop("ro.build.product") == "Kraft-W" ||

getprop("ro.product.device") == "Kraft-C" || getprop("ro.build.product") == "Kraft-C" ||

getprop("ro.product.device") == "k30t" || getprop("ro.build.product") == "k30t" ||

getprop("ro.product.device") == "msm8916" || getprop("ro.build.product") == "msm8916" ||

getprop("ro.product.device") == "Kraft-A6000" || getprop("ro.build.product") == "Kraft-A6000" ||

getprop("ro.product.device") == "wt86518" || getprop("ro.build.product") == "wt86518" || abort("E3004: This package is for device: Kraft-T,a6000,K30-T,A6000,Kraft-W,Kraft-C,k30t,msm8916,Kraft-A6000,wt86518; this device is " + getprop("ro.product.device") + "."););

ui_print("Target: Lenovo/Kraft-A6000/Kraft-A6000:5.0.2/LRX22G/Kraft-A6000_S061_160727:user/release-keys");

ui_print("***********************************************");

ui_print("* .___ __ ________ _________*");

ui_print("* __| _/ ____ _/ |_ \_____ \ / _____/*");

ui_print("* / __ | / _ \ \ __\ / | \ \_____ \ *");

ui_print("*/ /_/ | ( <_> ) | | / | \ / \*");

ui_print("*\____ | \____/ |__| \_______ //_______ /*");

ui_print("* \/ ***Droid On Time*** \/ \/ *");

ui_print("***********************************************");

ui_print("***********|*Based On Pure Aosp*|**************");

ui_print("***********************************************");

sleep (2);

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/bootdevice/by-name/system", "/system", "");

run_program("/tmp/install/bin/backuptool.sh", "backup");

unmount("/system");

mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/system", "/system", "");

run_program("/system/bin/clean_cache.sh");

unmount("/system");

ui_print(" **************** Software *****************");

ui_print(" OS version: DotOS-v3.0-UNOFFICIAL");

ui_print("");

ui_print(" Android version: 9");

ui_print("");

ui_print(" Security patch: 2019-04-05");

ui_print("");

ui_print(" SDK version: 28");

ui_print("");

ui_print(" Root status: Disabled");

ui_print("");

ui_print(" Build ID: PQ2A.190405.003");

ui_print("");

ui_print(" Build date: Mon May 6 06:38:29 EEST 2019");

ui_print(" **************** Hardware *****************");

ui_print(" Device codename: a6000");

ui_print("");

ui_print(" Manufacturer: Lenovo");

ui_print("");

ui_print(" *******************************************");

show_progress(0.750000, 0);

ui_print("Patching system image unconditionally...");

block_image_update("/dev/block/bootdevice/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat.br", "system.patch.dat") ||

abort("E1001: Failed to update system image.");

show_progress(0.020000, 10);

mount("ext4", "EMMC", "/dev/block/bootdevice/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/bootdevice/by-name/boot");

show_progress(0.200000, 10);

set_progress(1.000000);

----------------------------------------------------------------------------------------------------------------------------------------------------------------------

This is the updater script. I've made many searches on how to fix the error 6&7.

1 - They told me to remove the assert line to get rid of error 7.

2 - And told me to remove the spaces between lines to get rid of error 6.

Are these steps right?:confused::eek:

Please i want a full answer :crying::crying::crying: