diff options
author | Ricardo Cerqueira <github@cerqueira.org> | 2011-11-16 23:14:27 +0000 |
---|---|---|
committer | Adnan Begovic <adnan@cyngn.com> | 2015-10-06 16:05:02 -0700 |
commit | 80ed6ec048dfeb2e5c4c8e3432898c6cc89f05c0 (patch) | |
tree | 16ef1085169bd2294d757c17f34d7f5cdf70137e /tools/releasetools/ota_from_target_files | |
parent | 988bc10f3d7f998cf871c42a0d0ab11fca86b0e9 (diff) | |
download | build-80ed6ec048dfeb2e5c4c8e3432898c6cc89f05c0.zip build-80ed6ec048dfeb2e5c4c8e3432898c6cc89f05c0.tar.gz build-80ed6ec048dfeb2e5c4c8e3432898c6cc89f05c0.tar.bz2 |
ota: Remove cruft we don't care about
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
Change-Id: Id1d63f759315ad47d2aed6d0464cef3e448e58b5
Diffstat (limited to 'tools/releasetools/ota_from_target_files')
-rwxr-xr-x | tools/releasetools/ota_from_target_files | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/releasetools/ota_from_target_files b/tools/releasetools/ota_from_target_files index 9951b39..9552f0a 100755 --- a/tools/releasetools/ota_from_target_files +++ b/tools/releasetools/ota_from_target_files @@ -521,10 +521,10 @@ def WriteFullOTAPackage(input_zip, output_zip): has_recovery_patch = HasRecoveryPatch(input_zip) block_based = OPTIONS.block_based and has_recovery_patch - 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() @@ -680,7 +680,6 @@ endif; def WritePolicyConfig(file_name, output_zip): common.ZipWrite(output_zip, file_name, os.path.basename(file_name)) - def WriteMetadata(metadata, output_zip): common.ZipWriteStr(output_zip, "META-INF/com/android/metadata", "".join(["%s=%s\n" % kv |