platform_build/tools
Tao Bao 9f884e6c55 releasetools: Add support for --override_timestamp.
We use the timestamps in builds to determine a downgrade, which might
not be always the truth. For examples, two builds cut from different
branches may carry timestamps in a reverse order. An incremental package
won't be able to be pushed nor applied, based on the timestamp
comparison.

We used to handle such a case with manual work, by setting the
post-timestamp to (pre-timestamp + 1) in the package metadata. This CL
automates the process by adding a new flag --override_timestamp.

Note that it doesn't change anything in the installed image, but only
affects the assertions for pushing / installing the package.

With the change in this CL:
 - If it's a downgrade without any extra flag, fail the package
   generation (we only print warnings prior to this CL);
 - If it's a downgrade with --downgrade flag, generate a downgrade
   package with forced data wipe (same as before);
 - If it's a downgrade with --override_timestamp, generate a normal
   incremental with hacked timestamp (pre-timestamp + 1) (new in this CL
   to avoid the manual change);
 - If it's not a downgrade but with any of the above two flags specified,
   fail the package generation.

Bug: 33744169
Test: Generate an incremental from builds with reversed timestamps.
Change-Id: I8b187d32708b4a7c3e20f8c6adb8f9527b73b965
Merged-In: I8b187d32708b4a7c3e20f8c6adb8f9527b73b965
(cherry picked from commit 3e6161a3b3)
2017-03-16 11:26:06 -07:00
..
acp Clean up Mac OS hacks in acp slightly. 2016-01-05 09:32:42 -08:00
apicheck Ensure prebuilt executables are executable 2016-04-11 11:21:47 -07:00
atree Clean up Mac OS hacks in acp slightly. 2016-01-05 09:32:42 -08:00
droiddoc Fix samples metadata concat. 2016-10-07 12:12:50 -07:00
fs_config
fs_get_stats
ijar
makeparallel makeparallel: unset MAKEFLAGS and MAKELEVEL 2016-02-16 13:10:40 -08:00
releasetools releasetools: Add support for --override_timestamp. 2017-03-16 11:26:06 -07:00
rgb2565
signapk Fix bug in APK entry alignment. 2016-03-23 18:11:35 -07:00
signtos
zipalign Fix 2 unused parameter warnings in zipalign. 2016-02-12 02:13:30 +00:00
ziptime
adbs
Android.mk Remove unneccessary TARGET_BUILD_APPS conditional 2015-12-15 15:49:53 -08:00
buildinfo.sh
check_builds.sh
check_radio_versions.py
compare_fileslist.py
diff_package_overlays.py
dump-package-stats
event_log_tags.py
fileslist.py
filter-product-graph.py
findleaves.py
fixlinebreaks.sh
generate-notice-files.py
java-event-log-tags.py
java-layers.py
merge-event-log-tags.py
mktarball.sh
normalize_path.py
parsedeps.py
post_process_props.py
print_module_licenses.sh
product_debug.py
warn.py