[XDA Assist] tmarsh12345:
I've searched XDA (and the web) without finding an answer but apologies if I've missed it somewhere. I have a Lenovo tab 3 10 inch tablet that is rooted. A new update has become available but I'm getting a "status error 7" so can't update. There is a XDA thread that tells how to modify the updater script to remove assert but there is no assert comments in the script. Can anyone please tell me what to remove in the script below to make it work? Thanks.

ui_print("Verifying current system...");

getprop("ro.build.fingerprint") == "Lenovo/YT3-X50F/YT3-X50F:5.1.1/LMY47V/YT3-X50F_USR_S22_160606_Q1241_ROW:user/release-keys" ||

getprop("ro.build.fingerprint") == "Lenovo/YT3-X50F/YT3-X50F:5.1.1/LMY47V/YT3-X50F_USR_S23_161201_Q1241_ROW:user/release-keys" ||

abort("Package expects build fingerprint of Lenovo/YT3-X50F/YT3-X50F:5.1.1/LMY47V/YT3-X50F_USR_S22_160606_Q1241_ROW:user/release-keys or Lenovo/YT3-X50F/YT3-X50F:5.1.1/LMY47V/YT3-X50F_USR_S23_161201_Q1241_ROW:user/release-keys; this device has " + getprop("ro.build.fingerprint") + ".");

apply_patch_check("EMMC:/dev/block/bootdevice/by-name/boot:12869024:83911ae0e88ec1762a0dbffaf8f0898e040d5721:12869024:c4378aa55de3d480fba1cfebc73a207bc3d84e1d") || abort(""EMMC:/dev/block/bootdevice/by-name/boot:12869024:83911ae0e88ec1762a0dbffaf8f0898e040d5721:12869024:c4378aa55de3d480fba1cfebc73a207bc3d84e1d" has unexpected contents.");

apply_patch_check("EMMC:/dev/block/bootdevice/by-name/recovery:13352356:c744e76f582f781f5a19d0e3ac59093b5d605d98:13350308:eda6d93b41c0fe93023b7e992f5fcbf4861719c2") || abort(""EMMC:/dev/block/bootdevice/by-name/recovery:13352356:c744e76f582f781f5a19d0e3ac59093b5d605d98:13350308:eda6d93b41c0fe93023b7e992f5fcbf4861719c2" has unexpected contents.");

show_progress(0.250000, 40);

if block_image_verify("/dev/block/bootdevice/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat") then

ui_print("Verified system image...");

else

(range_sha1("/dev/block/bootdevice/by-name/system", "2,0,1") == "036c26f0f24f832a038a451242a578a49940cab6") || (range_sha1("/dev/block/bootdevice/by-name/system", "2,0,1") == "e2a3cb2dc451ef93e253c536c7bf190219814a15") || abort("/dev/block/bootdevice/by-name/system has been remounted R/W; reflash device to reenable OTA updates");

(range_sha1("/dev/block/bootdevice/by-name/system", "80,0,32770,32929,32931,33443,65535,65536,65538,66050,98303,98304,98306,98465,98467,98979,131071,131072,131074,131586,163839,163840,163842,164001,164003,164515,196607,196608,196610,197122,229375,229376,229378,229537,229539,230051,262143,262144,262146,262658,294911,294912,294914,295073,295075,295587,327679,327680,327682,328194,360447,360448,360450,360962,393215,393216,393218,393730,425983,425984,425986,426498,458751,458752,458754,459266,490994,491520,491522,492034,524287,524288,524290,524802,527229,557056,557058,589824,589826,622592,622594") == "8b2860bc3e2860a7efe6417a1132884f8fa19b89") ||

abort("system partition has unexpected contents");

endif;

show_progress(0.500000, 60);

ui_print("Patching system image after verification.");

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

ui_print("Patching boot image...");

show_progress(0.100000, 10);

apply_patch("EMMC:/dev/block/bootdevice/by-name/boot:12869024:83911ae0e88ec1762a0dbffaf8f0898e040d5721:12869024:c4378aa55de3d480fba1cfebc73a207bc3d84e1d",

"-", c4378aa55de3d480fba1cfebc73a207bc3d84e1d, 12869024,

83911ae0e88ec1762a0dbffaf8f0898e040d5721, package_extract_file("patch/boot.img.p"));

ui_print("Patching recovery image...");

apply_patch("EMMC:/dev/block/bootdevice/by-name/recovery:13352356:c744e76f582f781f5a19d0e3ac59093b5d605d98:13350308:eda6d93b41c0fe93023b7e992f5fcbf4861719c2",

"-", eda6d93b41c0fe93023b7e992f5fcbf4861719c2, 13350308,

c744e76f582f781f5a19d0e3ac59093b5d605d98, package_extract_file("patch/recovery.img.p"));

show_progress(0.150000, 4);

package_extract_file("NON-HLOS.bin", "/dev/block/bootdevice/by-name/modem");

package_extract_file("emmc_appsboot.mbn", "/dev/block/bootdevice/by-name/aboot");

package_extract_file("rpm.mbn", "/dev/block/bootdevice/by-name/rpm");

package_extract_file("tz.mbn", "/dev/block/bootdevice/by-name/tz");

package_extract_file("sbl1.mbn", "/dev/block/bootdevice/by-name/sbl1");

set_progress(1.000000);​