Quantcast
Channel: admin » TWRP
Viewing all articles
Browse latest Browse all 1595

[How-to] Install Cyanogen OS 13 incremental with TWRP

$
0
0

You need to modify the update-script

Before

Code:

show_progress(0.900000, 0);
block_image_update("/dev/block/platform/msm_sdcc.1/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/platform/msm_sdcc.1/by-name/system", "48,0,32770,32857,32859,33341,65535,65536,65538,66020,98303,98304,98306,98393,98395,98877,131071,131072,131074,131556,163839,163840,163842,163929,163931,164413,196607,196608,196610,197092,220718,229376,229378,229465,229467,229949,262143,262144,262146,294912,294914,295001,295003,295485,327679,327680,327682,328164,338943") == "f5720ee3320d52b5e8213ca94faa6699e8c99b66" then
if range_sha1("/dev/block/platform/msm_sdcc.1/by-name/system", "52,32770,32857,32859,33341,65535,65536,65538,66020,98303,98304,98306,98393,98395,98877,131071,131072,131074,131556,163839,163840,163842,163929,163931,164413,196607,196608,196610,197092,220718,221230,228864,229376,229378,229465,229467,229949,262143,262144,262146,262658,294400,294912,294914,295001,295003,295485,327679,327680,327682,328164,338943,338944") == "7a05221a9c1e18b636151a6f8706186d47ffd822" 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;
ui_print("Patching boot image...");
show_progress(0.100000, 10);
apply_patch("EMMC:/dev/block/platform/msm_sdcc.1/by-name/boot:6739968:8e1118d962e47aa0beb2d2307769688777299dd9:7454720:a191039790b0c388719c2e573ecfc8178e8a4ba2",
            "-", a191039790b0c388719c2e573ecfc8178e8a4ba2, 7454720,
            8e1118d962e47aa0beb2d2307769688777299dd9, package_extract_file("patch/boot.img.p"));
ui_print("Writing radio image...");
set_progress(1.000000);


After

Code:

show_progress(0.900000, 0);
block_image_update("/dev/block/platform/msm_sdcc.1/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/platform/msm_sdcc.1/by-name/boot:6739968:8e1118d962e47aa0beb2d2307769688777299dd9:7454720:a191039790b0c388719c2e573ecfc8178e8a4ba2",
            "-", a191039790b0c388719c2e573ecfc8178e8a4ba2, 7454720,
            8e1118d962e47aa0beb2d2307769688777299dd9, package_extract_file("patch/boot.img.p"));
set_progress(1.000000);


Open OTA .zip on PC, open meta-inf/com/google/adndroid/update-script
Replace everything with my script from "after"

Now you can:
1. Do a factory reset
2. Flash cm-12.1-YOG7DAS2K1
3. Flash cm-bacon-cee4e8702d-to-e36dd78050
4. Dont mind about recovery or smth else


Viewing all articles
Browse latest Browse all 1595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>