[Galaxy S 5 Q&A, Help & Troubleshooting] Alfred1516:
ui_print("Target: 1476761072");

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/platform/msm_sdcc.1/by-name/system", "/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/platform/msm_sdcc.1/by-name/userdata", "/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;

ui_print(" ");

ui_print(" ");

ui_print(" ");

ui_print(" RRRRRRRRRRRRRRRRR RRRRRRRRRRRRRRRRR ");

ui_print(" R::::::::::::::::R R::::::::::::::::R ");

ui_print(" R::::::RRRRRR:::::R R::::::RRRRRR:::::R ");

ui_print(" RR:::::R R:::::R RR:::::R R:::::R");

ui_print(" R::::R R:::::R R::::R R:::::R");

ui_print(" R::::R R:::::R R::::R R:::::R");

ui_print(" R::::RRRRRR:::::R R::::RRRRRR:::::R ");

ui_print(" R:::::::::::::RR R:::::::::::::RR ");

ui_print(" R::::RRRRRR:::::R R::::RRRRRR:::::R ");

ui_print(" R::::R R:::::R R::::R R:::::R");

ui_print(" R::::R R:::::R R::::R R:::::R");

ui_print(" R::::R R:::::R R::::R R:::::R");

ui_print(" RR:::::R R:::::R RR:::::R R:::::R");

ui_print(" R::::::R R:::::R R::::::R R:::::R");

ui_print(" R::::::R R:::::R R::::::R R:::::R");

ui_print(" RRRRRRRR RRRRRRR RRRRRRRR RRRRRRR");

ui_print(" ");

ui_print(" ");

show_progress(0.750000, 0);

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

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", "58,0,32767,32768,32770,32921,32923,33435,65535,65536,65538,98304,98306,98457,98459,98971,131071,131072,131074,163840,163842,163993,163995,164507,196607,196608,196610,229376,229378,229529,229531,230043,254534,262144,262146,294912,294914,295065,295067,327680,327682,360448,360450,393216,393218,425984,425986,458752,458754,491520,491522,524288,524290,557056,557058,589824,589826,590338,622079") == "59e89db3ffb06e47ada9cc702f0f6ffe23455202" then

if range_sha1("/dev/block/platform/msm_sdcc.1/by-name/system", "86,32767,32768,32770,32921,32923,33435,65535,65536,65538,66050,97792,98304,98306,98457,98459,98971,131071,131072,131074,131586,163328,163840,163842,163993,163995,164507,196607,196608,196610,197122,228864,229376,229378,229529,229531,230043,254534,255046,261632,262144,262146,262658,294400,294912,294914,295065,295067,295579,327168,327680,327682,328194,359936,360448,360450,360962,392704,393216,393218,393730,425472,425984,425986,426498,458240,458752,458754,459266,491008,491520,491522,492034,523776,524288,524290,524802,556544,557056,557058,557570,589312,589824,589826,590338,622079,622080") == "243655f02337041e8492bdd59d398f1a9ac41f2c" 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/platform/msm_sdcc.1/by-name/system", "/system", "");

run_program("/tmp/install/bin/backuptool.sh", "restore");

unmount("/system");

show_progress(0.050000, 5);

package_extract_file("boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");

show_progress(0.200000, 10);

STATUS ERROR 7 I ALREADY DELETED THE ASSERT THING AND STILL GETTTING ERROR 7

PD: IM RUNNING THE 6.0.1 STOCK MARHSMELLOW

SM-G900M

can u guys help me and in case of tell me what to do to fix this problem and same problem while flashing CM13

Thanks