OSDN Git Service

ota: Remove cruft we don't care about
authorRicardo Cerqueira <github@cerqueira.org>
Wed, 16 Nov 2011 23:14:27 +0000 (23:14 +0000)
committerMichael Bestas <mikeioannina@gmail.com>
Fri, 30 Dec 2016 23:29:12 +0000 (01:29 +0200)
Skip the date check (downgrade to your content), and don't include
recovery in otapackages.
5.0.0 update: We want the recovery patchstuff back

tools/releasetools/ota_from_target_files.py

index d3d4974..ae413fb 100755 (executable)
@@ -575,10 +575,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()