Skip to content

Commit

Permalink
Revert "ota: Make sure we don't install on top of an incompatible sys…
Browse files Browse the repository at this point in the history
…tem"

We can't use calendar since since some gapps packages replace it.

This reverts commit a0c7566.

Change-Id: Ic46589e47728804f2d89051f4aecf355f37d85a0
(cherry picked from commit 5875e34)
  • Loading branch information
Brint E. Kriebel committed Jul 10, 2014
1 parent ac1b300 commit 4e5c8c1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
11 changes: 0 additions & 11 deletions tools/releasetools/edify_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,17 +122,6 @@ def RunBackup(self, command):
self.script.append('delete("/system/bin/backuptool.sh");')
self.script.append('delete("/system/bin/backuptool.functions");')

def ValidateSignatures(self, command):
if command == "cleanup":
self.script.append('delete("/system/bin/otasigcheck.sh");')
else:
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");')
## Hax: a failure from run_program doesn't trigger an abort, so have it change the key value and 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");')

def ShowProgress(self, frac, dur):
"""Update the progress bar, advancing it over 'frac' over the next
'dur' seconds. 'dur' may be zero to advance it via SetProgress
Expand Down
6 changes: 0 additions & 6 deletions tools/releasetools/ota_from_target_files
Original file line number Diff line number Diff line change
Expand Up @@ -511,10 +511,6 @@ else if get_stage("%(bcb_dev)s", "stage") == "3/3" then

device_specific.FullOTA_InstallBegin()

script.Mount("/data")
script.ValidateSignatures("data")
script.Unmount("/data")

if OPTIONS.backuptool:
script.Mount("/system")
script.RunBackup("backup")
Expand Down Expand Up @@ -549,8 +545,6 @@ else if get_stage("%(bcb_dev)s", "stage") == "3/3" then
common.ZipWriteStr(output_zip, "boot.img", boot_img.data)
script.ShowProgress(0.2, 0)

script.ValidateSignatures("cleanup")

if OPTIONS.backuptool:
script.ShowProgress(0.2, 10)
script.RunBackup("restore")
Expand Down

0 comments on commit 4e5c8c1

Please sign in to comment.