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!
     



    1. Download the Forums for Android™ app!


      Download

       
Loading...
Similar Threads - updater script check
  1. Ulrich Hansa
    Replies:
    1
    Views:
    200
  2. Leigh Clambakes
    Replies:
    2
    Views:
    239
  3. Leigh Clambakes
    Replies:
    1
    Views:
    164
  4. BrokeCurley
    Replies:
    4
    Views:
    267
  5. ironass
    Replies:
    5
    Views:
    643
  6. ironass
    Replies:
    5
    Views:
    741
  7. ironass
    Replies:
    5
    Views:
    755
  8. SUPER_JERK
    Replies:
    0
    Views:
    257
  9. Denis95M
    Replies:
    22
    Views:
    661
  10. userid2589
    Replies:
    3
    Views:
    549

Share This Page

Loading...