hello I want some help with modifying rom cm 13

I have researched how to modify rom cm 13 to be installed on any device
And having applied all the instructions meticulously
What I still have an error in the installation of recovery
I suspect that the error in updater-script file
This is the file that you've modified it

Code:
assert(getprop("ro.product.device") == "j1pop3g" || getprop("ro.build.product") == "j1pop3g" || abort("This package is for device: j1pop3g; this device is " + getprop("ro.product.device") + ".");); ui_print("Target: samsung/j1pop3gjv/j1pop3g:4.4.4/KTU84P/J110HXXU0APD3:user/release-keys"); ifelse(is_mounted("/system"), unmount("/system")); package_extract_dir("install", "/tmp/install"); set_metadata_recursive("/tmp/install", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644); set_metadata_recursive("/tmp/install/bin", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755); mount("ext4", "EMMC", "/dev/block/mmcblk0p24", "/system", ""); run_program("/tmp/install/bin/backuptool.sh", "backup"); unmount("/system"); if is_mounted("/data") then package_extract_file("META-INF/org/cyanogenmod/releasekey", "/tmp/releasekey"); run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset"); else mount("f2fs", "EMMC", "/dev/block/mmcblk0p26", "/data", ""); package_extract_file("META-INF/org/cyanogenmod/releasekey", "/tmp/releasekey"); run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset"); unmount("/data"); endif; show_progress(0.750000, 0); ui_print("Patching system image unconditionally..."); block_image_update("/dev/block/mmcblk0p24", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat"); ui_print("Verifying the updated system image..."); if range_sha1("/dev/block/mmcblk0p24", "34,0,32770,32841,32843,33310,65535,65536,65538,98304,98306,98377,98379,98846,131071,131072,131074,163840,163842,163913,163915,164382,196607,196608,196610,229376,229378,229449,229451,229918,242027,262144,262146,262613,268543") == "78bc7cc69b723be97505fae5a10f33da9e2d457f" then if range_sha1("/dev/block/mmcblk0p24", "42,32770,32841,32843,33310,65535,65536,65538,66050,97792,98304,98306,98377,98379,98846,131071,131072,131074,131586,163328,163840,163842,163913,163915,164382,196607,196608,196610,197122,228864,229376,229378,229449,229451,229918,242027,242539,261632,262144,262146,262613,268543,268544") == "8a123b7047923c07b2557d9e700ace3006757cca" 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.020000, 10); mount("ext4", "EMMC", "/dev/block/mmcblk0p24", "/system", ""); run_program("/tmp/install/bin/backuptool.sh", "restore"); unmount("/system"); show_progress(0.050000, 5); package_extract_file("boot.img", "/dev/block/mmcblk0p2"); show_progress(0.200000, 10);

Note:
I modified it to a phone
samsung j1 j110h

Show Accepted Answer

Guest Quick Reply (No URL, BBcode or HTML)

Help, SGH-T989D
Started by kaci36
Last post by ybalistreri
4 hours ago
Last post by idell03
14 minutes ago
Last post by leannon.verla
4 hours ago
Last post by brett35
4 hours ago
Last post by rey.cummerata
4 hours ago
Apps
Started by buckridge.clark
Last post by jamie.collier
27 minutes ago
Last post by colby.greenholt
4 hours ago
Last post by edward59
4 hours ago
Last post by lsawayn
4 hours ago
Last post by auer.amalia
2 hours ago