• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

updater script check release key cm11 kitkat

skfl

Member
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!
 
Back
Top Bottom