[K3 Note General] stone_henge:
Editing the updater script

This is the guide for editing the updater script. Posting yet again. :crying:

However, [MENTION=599775]coolman7[/MENTION] : That's not the updater-script for VIBE3.0 1604 ST (android 5.1) rom, what you provided. That's for VIBE 3.1 1604 ST(android 6.0)

This is the original updater-script for VIBE3.0 1604 ST:

[COLOR="Red"]mount("ext4", "EMMC", "/dev/block/mmcblk0p3", "/data", "");
get_lenovo_custom1("1453430707") == "OK" || abort("Can't install this package (Fri Jan 22 10:45:07 CST 2016) over newer build (" + getprop("ro.build.data") + "). Or lenovo can't allow to rollback.");
unmount("/data");
getprop("ro.product.model") == "Lenovo K50-t5" || abort("This package is for \"Lenovo K50-t5\" devices; this is a \"" + getprop("ro.product.model") + "\".");
[/COLOR]show_progress(0.750000, 0);
ui_print("Patching system image unconditionally...");
block_image_update("system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat");
show_progress(0.050000, 5);
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "bootimg"),
delete("/tmp/boot.img"));
assert(package_extract_file("mobicore.bin", "/tmp/tee1.img"),
write_raw_image("/tmp/tee1.img", "tee1"),
delete("/tmp/tee1.img"));
show_progress(0.200000, 10);
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");
mount("ext4", "EMMC", "/dev/block/mmcblk0p3", "/data", "");
!(get_lenovo_custom2("1453430707") == "OK") || format("ext4", "EMMC", "/dev/block/mmcblk0p3", "0", "/data");
unmount("/data");
apply_sig(package_extract_file("sig/boot.sig"), "bootimg");

You need to delete the red lines. So this is the modified updater-script for VIBE 3.0 1604 ST:

show_progress(0.750000, 0);
ui_print("Patching system image unconditionally...");
block_image_update("system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat");
show_progress(0.050000, 5);
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "bootimg"),
delete("/tmp/boot.img"));
assert(package_extract_file("mobicore.bin", "/tmp/tee1.img"),
write_raw_image("/tmp/tee1.img", "tee1"),
delete("/tmp/tee1.img"));
show_progress(0.200000, 10);
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");
mount("ext4", "EMMC", "/dev/block/mmcblk0p3", "/data", "");
!(get_lenovo_custom2("1453430707") == "OK") || format("ext4", "EMMC", "/dev/block/mmcblk0p3", "0", "/data");
unmount("/data");
apply_sig(package_extract_file("sig/boot.sig"), "bootimg");

Basically you need to delete everything before the first line with "show_progress(...)".

This method works with any official rom with android 5.1.

Note: Always edit the script with PC (Noobs: Open zip with winrar, go to \META-INF\com\google\, open updater-script file with notepad++, edit the file as shown, SAVE, close notepad++, accept changes on zip in winrar, and voila! Now flash the zip.)

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

---------- Post added at 11:48 AM ---------- Previous post was at 11:46 AM ----------

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

NEWS: TWRP 3.0.0-0 Released

What’s new in 3.0.0-0:

Completely new theme - Much more modern and much nicer looking (by z31s1g)

True Terminal Emulator - Includes arrow keys, tab and tab completion, etc. (by _that)

Language translation - It won’t be perfect and especially some languages that require large font files like Chinese & Japanese won’t be availble on most devices. Also some languages may only be partially translated at this time. Feel free to submit more translations to OmniROM’s Gerrit. (mostly by Dees_Troy)

Flashing of sparse images - On select devices you will be able to flash some parts of factory images via the TWRP GUI (by HashBang173)

Adopted storage support for select devices - TWRP can now decrypt adopted storage partitions from Marshmallow

Reworked graphics to bring us more up to date with AOSP - includes support for adf and drm graphics (by Dees_Troy)

SuperSU prompt will no longer display if a Marshmallow ROM is installed

Update exfat, exfat fuse, dosfstools (by mdmower)

Update AOSP base to 6.0

A huge laundry list of other minor fixes and tweaks

WARNING: This is our first release in a long time. We have a lot of new and somewhat aggressive changes in this new release. The changes to the graphics back-end may cause some devices to not boot up properly or have other display-related issues. If you are not in a position to reflash an older build of TWRP, then wait until you are or at least wait until others have tried the new version for your specific device.

Source (Official Site):

https://twrp.me/site/update/2016/02/05/twrp-3.0.0-0-released.html

Hoping this will be ported to our K3 Note soon. :)