[Xiaomi Redmi Note 3 [Snapdragon] ROMs, Kernels, Re] Sudeep Duhoon:
Remove this too

[COLOR="DarkRed"]get_device_compatible("kenzo") == "OK" || abort("This package is for \"kenzo\" devices; this is a \"" + getprop("ro.product.device") + "\".");
ui_print("Target: Xiaomi/kenzo/kenzo:6.0.1/MMB29M/7.2.9:user/release-keys");
show_progress(0.100000, 2);
mount("ext4", "EMMC");
set_metadata_recursive("uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "u:object_r:system_file:s0");
show_progress(0.200000, 10);[/COLOR]

package_extract_file("boot.img", "/dev/block/bootdevice/by-name/boot");

And this too

[COLOR="darkred"]package_extract_file("META-INF/com/miui/miui_update", "/cache/miui_update");
set_metadata("/cache/miui_update", "uid", 0, "gid", 0, "mode", 0555, "capabilities", 0x0);
run_program("/cache/miui_update");
delete("/cache/miui_update");
show_progress(0.600000, 145);[/COLOR]

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

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

ui_print("Verifying the updated system image...");

if range_sha1("/dev/block/bootdevice/by-name/system", "78,0,32770,32929,32931,33439,65535,65536,65538,66046,98303,98304,98306,98465,98467,98975,131071,131072,131074,131582,163839,163840,163842,164001,164003,164511,196607,196608,196610,197118,229375,229376,229378,229537,229539,230047,262143,262144,262146,262654,294911,294912,294914,295073,295075,295583,327679,327680,327682,328190,360447,360448,360450,360958,393215,393216,393218,393726,425983,425984,425986,426494,444771,458752,458754,491520,491522,524288,524290,557056,557058,589824,589826,622592,622594,623102,650190,650191,655320") == "a5cbfacbe6c154ea15f42443934d455779e0e414" then

if range_sha1("/dev/block/bootdevice/by-name/system", "88,32770,32929,32931,33439,65535,65536,65538,66046,98303,98304,98306,98465,98467,98975,131071,131072,131074,131582,163839,163840,163842,164001,164003,164511,196607,196608,196610,197118,229375,229376,229378,229537,229539,230047,262143,262144,262146,262654,294911,294912,294914,295073,295075,295583,327679,327680,327682,328190,360447,360448,360450,360958,393215,393216,393218,393726,425983,425984,425986,426494,444771,445283,458240,458752,458754,459266,491008,491520,491522,492034,523776,524288,524290,524802,556544,557056,557058,557570,589312,589824,589826,590338,622080,622592,622594,623102,650190,650191") == "f90b76029652efc3cbe367d5f1de7bf247647d31" then

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

else

abort("system partition has unexpected non-zero contents after OTA update");

endif;

else

abort("system partition has unexpected contents after OTA update");

endif;

show_progress(0.100000, 2);

It will look like this

package_extract_file("boot.img", "/dev/block/bootdevice/by-name/boot");

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

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

ui_print("Verifying the updated system image...");

if range_sha1("/dev/block/bootdevice/by-name/system", "78,0,32770,32929,32931,33439,65535,65536,65538,66046,98303,98304,98306,98465,98467,98975,131071,131072,131074,131582,163839,163840,163842,164001,164003,164511,196607,196608,196610,197118,229375,229376,229378,229537,229539,230047,262143,262144,262146,262654,294911,294912,294914,295073,295075,295583,327679,327680,327682,328190,360447,360448,360450,360958,393215,393216,393218,393726,425983,425984,425986,426494,444771,458752,458754,491520,491522,524288,524290,557056,557058,589824,589826,622592,622594,623102,650190,650191,655320") == "a5cbfacbe6c154ea15f42443934d455779e0e414" then

if range_sha1("/dev/block/bootdevice/by-name/system", "88,32770,32929,32931,33439,65535,65536,65538,66046,98303,98304,98306,98465,98467,98975,131071,131072,131074,131582,163839,163840,163842,164001,164003,164511,196607,196608,196610,197118,229375,229376,229378,229537,229539,230047,262143,262144,262146,262654,294911,294912,294914,295073,295075,295583,327679,327680,327682,328190,360447,360448,360450,360958,393215,393216,393218,393726,425983,425984,425986,426494,444771,445283,458240,458752,458754,459266,491008,491520,491522,492034,523776,524288,524290,524802,556544,557056,557058,557570,589312,589824,589826,590338,622080,622592,622594,623102,650190,650191") == "f90b76029652efc3cbe367d5f1de7bf247647d31" then

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

else

abort("system partition has unexpected non-zero contents after OTA update");

endif;

else

abort("system partition has unexpected contents after OTA update");

endif;

show_progress(0.100000, 2);

miui_HMNote3ProGlobal_7.1.19_c69232a25b_6.0 updater-script attached.