1. Are you ready for the Galaxy S20? Here is everything we know so far!

updater script check release key cm11 kitkat

Discussion in 'Android Development' started by skfl, Jun 28, 2020.

  1. skfl

    skfl Member
    Thread Starter

    Hi I am porting roms for my spare phone. The updater-script will perform "otasigcheck" after mounting /data partition. Here is what it says:
    mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "/data");
    package_extract_file("system/bin/otasigcheck.sh", "/tmp/otasigcheck.sh");
    package_extract_file("META-INF/org/cyanogenmod/releasekey", "/tmp/releasekey");
    set_metadata("/tmp/otasigcheck.sh", "uid", 0, "gid", 0, "mode", 0755);
    run_program("/tmp/otasigcheck.sh");
    sha1_check(read_file("/tmp/releasekey"),"7241e92725436afc79389d4fc2333a2aa8c20230") && abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");

    Can anyone tell what is the use of the "otasigcheck" codes? Thanks!
     


Loading...

Share This Page

Loading...