Skip to content

Commit

Permalink
Merge pull request SlimRoms#4 from CyanogenMod/cm-12.0
Browse files Browse the repository at this point in the history
Revert "otasigcheck: Go back to the key-rewrite check."
  • Loading branch information
STELIX committed Dec 2, 2014
2 parents d9bbbaa + 21fee4a commit 4aa9f8a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/releasetools/edify_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,8 @@ def ValidateSignatures(self, command):
self.script.append('package_extract_file("system/bin/otasigcheck.sh", "/tmp/otasigcheck.sh");')
self.script.append('package_extract_file("META-INF/org/cyanogenmod/releasekey", "/tmp/releasekey");')
self.script.append('set_metadata("/tmp/otasigcheck.sh", "uid", 0, "gid", 0, "mode", 0755);')
self.script.append('run_program("/tmp/otasigcheck.sh");')
## The script changes the key value when it fails, check for "INVALID"
self.script.append('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");')
# Exit code 124 == abort. run_program returns raw, so left-shift 8bit
self.script.append('run_program("/tmp/otasigcheck.sh") != "31744" || abort("Can\'t install this package on top of incompatible data. Please try another package or run a factory reset");')

def ShowProgress(self, frac, dur):
"""Update the progress bar, advancing it over 'frac' over the next
Expand Down

0 comments on commit 4aa9f8a

Please sign in to comment.