diff options
author | Chirayu Desai <chirayudesai1@gmail.com> | 2015-06-09 00:11:29 +0530 |
---|---|---|
committer | Adnan Begovic <adnan@cyngn.com> | 2015-10-09 17:10:33 -0700 |
commit | 1797b2d5a9f5c8aefec22e4a8ceeef1b7eb78459 (patch) | |
tree | 4559b9f43c1df03495fe0629529ced2a1717c53c /tools/releasetools/edify_generator.py | |
parent | 8222d80fa56ad4e1d5894fc2dd16ae7cd3ecdcbf (diff) | |
download | build-1797b2d5a9f5c8aefec22e4a8ceeef1b7eb78459.zip build-1797b2d5a9f5c8aefec22e4a8ceeef1b7eb78459.tar.gz build-1797b2d5a9f5c8aefec22e4a8ceeef1b7eb78459.tar.bz2 |
otasigcheck: Extract the key
* commit b110c751b181423d268531c624db212d2d81e816
"build: ota: Support for install tools in /tmp/install"
erroneously removed the line extracting the releasekey,
making the script a no-op as it couldn't find a key to
compare against.
Change-Id: I0dc5d15dbf4b0531de4df9e62a5bd47ec463c2a1
Diffstat (limited to 'tools/releasetools/edify_generator.py')
-rw-r--r-- | tools/releasetools/edify_generator.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/releasetools/edify_generator.py b/tools/releasetools/edify_generator.py index 5d24a6b..e3425bf 100644 --- a/tools/releasetools/edify_generator.py +++ b/tools/releasetools/edify_generator.py @@ -151,6 +151,7 @@ class EdifyGenerator(object): self.script.append(('run_program("/tmp/install/bin/backuptool.sh", "%s");' % command)) def ValidateSignatures(self, command): + self.script.append('package_extract_file("META-INF/org/cyanogenmod/releasekey", "/tmp/releasekey");') # Exit code 124 == abort. run_program returns raw, so left-shift 8bit self.script.append('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");') |