[K3 Note General] kongha:
Hi, I tried to update my VIBEUI_V3.0_1549_7.358.1_DEV with the update zip but did get an error in the TWRP. I looked into the 2nd post of hackerpower of how to update the script but it dosent look the same as the update script.

anyone that can help?

This is how the updater script looks for the update

getprop("ro.product.device") == "aio_otfp" || abort("This package is for "aio_otfp" devices; this is a "" + getprop("ro.product.device") + "".");

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

getprop("ro.build.fingerprint") == "Lenovo/aio_otfp/aio_otfp:5.1/LMY47D/R1448864469.11301422:user/release-keys" ||

getprop("ro.build.fingerprint") == "Lenovo/aio_otfp/aio_otfp:5.1/LMY47D/R1449425778.12070217:user/release-keys" ||

abort("Package expects build fingerprint of Lenovo/aio_otfp/aio_otfp:5.1/LMY47D/R1448864469.11301422:user/release-keys or Lenovo/aio_otfp/aio_otfp:5.1/LMY47D/R1449425778.12070217:user/release-keys; this device has " + getprop("ro.build.fingerprint") + ".");

apply_patch_check("EMMC:boot:7766016:67f4de7e4cf6238972a64355019c127f680eca88:7766016:ff50e4e36988e0e50bbd80fd1d970960dbea8147") || abort(""EMMC:boot:7766016:67f4de7e4cf6238972a64355019c127f680eca88:7766016:ff50e4e36988e0e50bbd80fd1d970960dbea8147" has unexpected contents.");

(range_sha1("system", "2,0,1") == "cfa266287b8d80b929d114068ca378cc492b007f") || abort("system has been remounted R/W; reflash device to reenable OTA updates");

if range_sha1("system", "66,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,275286,294912,294914,295073,295075,295587,327679,327680,327682,360448,360450,393216,393218,425984,425986,458752,458754,491520,491522,524288,524290,557056,557058,589824,589826,622592,622594") == "eb0d7954843fb8730bc11d46fb745cb40e0a3098" then

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

else

(range_sha1("system", "66,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,275318,294912,294914,295073,295075,295587,327679,327680,327682,360448,360450,393216,393218,425984,425986,458752,458754,491520,491522,524288,524290,557056,557058,589824,589826,622592,622594") == "8661f0db2563347fd7bcb8d69aefd670bb38d160") ||

abort("system partition has unexpected contents");

endif;

# ---- start making changes here ----

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

show_progress(0.900000, 0);

block_image_update("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:boot:7766016:67f4de7e4cf6238972a64355019c127f680eca88:7766016:ff50e4e36988e0e50bbd80fd1d970960dbea8147",

"-", ff50e4e36988e0e50bbd80fd1d970960dbea8147, 7766016,

67f4de7e4cf6238972a64355019c127f680eca88, package_extract_file("patch/boot.img.p"));

mount("ext4", "EMMC", "/dev/block/mmcblk0p3", "/data", "");

delete_recursive("/data/data/com.android.providers.media/databases");

delete_recursive("/data/data/com.android.providers.telephony/databases/telephony.db");

delete_recursive("/data/data/com.android.providers.telephony/databases/telephony.db-journal");

unmount("/data");

assert(package_extract_file("uboot.img", "/tmp/uboot.img"),

write_raw_image("/tmp/uboot.img", "uboot"),

delete("/tmp/uboot.img"));

set_progress(1.000000);