Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 28032f6b authored by Dan Pasanen's avatar Dan Pasanen Committed by Tom Powell
Browse files

Revert "ota: Remove cruft we don't care about"

* We really should prevent users from "downgrading" builds

This reverts commit 0a09be83.

Change-Id: Id703a71ca1f1b571d8e4285152717ac07d01d904
parent d6656404
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -601,10 +601,10 @@ def WriteFullOTAPackage(input_zip, output_zip):

  metadata["ota-type"] = "BLOCK" if block_based else "FILE"

  #if not OPTIONS.omit_prereq:
  #  ts = GetBuildProp("ro.build.date.utc", OPTIONS.info_dict)
  #  ts_text = GetBuildProp("ro.build.date", OPTIONS.info_dict)
  #  script.AssertOlderBuild(ts, ts_text)
  if not OPTIONS.omit_prereq:
    ts = GetBuildProp("ro.build.date.utc", OPTIONS.info_dict)
    ts_text = GetBuildProp("ro.build.date", OPTIONS.info_dict)
    script.AssertOlderBuild(ts, ts_text)

  AppendAssertions(script, OPTIONS.info_dict, oem_dict)
  device_specific.FullOTA_Assertions()