platform_build/tools
Tao Bao d42e97ebb4 Build recovery-two-step.img for two-step OTAs.
In two-step OTAs, we write recovery image to /boot as the first step so
that we can reboot from there and install a new recovery image to
/recovery. However, bootloader will show "Your device is corrupt"
message when booting /boot with the recovery image. Because the recovery
image encodes the path of "/recovery" as part of the signature metadata,
which fails the verified boot.

This CL generates a special "recovery-two-step.img" in addition to the
regular recovery.img. This image encodes "/boot" when being signed,
which will be flashed to /boot at stage 1/3 in a two-step OTA.

Here are the desired changes:

- 'IMAGES/recovery-two-step.img' exists in target_files.zip for non-A/B
targets (e.g. bullhead). The image should not exist for targets that
don't have a recovery partition (e.g. A/B devices like sailfish).

- <device>-img.zip should not contain 'recovery-two-step.img'.

- Nothing should change when building non-two-step OTAs. For two-step
OTAs, 'recovery-two-step.img' should be included in the OTA package;
'updater-script' should flash this image to /boot at stage 1/3.

- When building a two-step OTA with an input TF.zip that doesn't have
  IMAGES/recovery-two-step.img, it should use the existing
  IMAGES/recovery.img instead.

Bug: 32986477
Test: Tested the steps above on bullhead and sailfish.
Change-Id: I34e6c599bcf2011d4cd5c926999418b3975d6d0f
2016-12-01 17:47:59 -08:00
..
acp Switch some build tools to Soong 2016-06-06 14:51:52 -07:00
apicheck Ensure prebuilt executables are executable 2016-04-11 11:21:47 -07:00
atree Fix clang-tidy performance warnings. 2016-07-27 10:28:33 -07:00
droiddoc Creates a css nowrap class for non-breaking elements 2016-11-09 21:17:41 +00:00
fs_config Merge "fs_config: move sort to be consistent with other sort" 2016-11-18 00:29:53 +00:00
fs_get_stats
ijar Use more prebuilt build-tools 2016-06-14 13:50:38 -07:00
libhost Remove build/libs 2016-06-16 14:52:47 -07:00
makeparallel Propagate signals through makeparallel 2016-10-03 15:33:11 -07:00
releasetools Build recovery-two-step.img for two-step OTAs. 2016-12-01 17:47:59 -08:00
signapk "SignApk" in Created-By header 2016-09-07 13:21:00 -07:00
signtos
zipalign zipalign missing header 2016-10-17 12:22:44 -07:00
ziptime Switch some build tools to Soong 2016-06-06 14:51:52 -07:00
adbs
Android.mk
brillo-clang-format
buildinfo.sh
check_builds.sh
check_link_type.py Fix link_type checking 2016-09-15 14:40:39 -07:00
check_radio_versions.py
compare_fileslist.py
dump-package-stats
event_log_tags.py
fat16copy.py fat16copy: Fix allocation logic when extending directories. 2016-09-23 14:21:43 -07:00
fileslist.py build: tools: Add json collection of installed files with hashes. 2016-10-14 16:29:16 -07:00
fileslist_util.py build: tools: Add json collection of installed files with hashes. 2016-10-14 16:29:16 -07:00
filter-product-graph.py
findleaves.py findleaves.py: prevent recursion into symlink loops 2016-11-03 14:29:40 -07:00
fixlinebreaks.sh
generate-notice-files.py
java-event-log-tags.py
java-layers.py
kati_all_products.sh Add tool to run kati for all products 2016-10-05 14:04:21 -07:00
merge-event-log-tags.py
mktarball.sh
normalize_path.py
parsedeps.py
post_process_props.py
print_module_licenses.sh
product_debug.py
soong_to_convert.py Identify modules ready to be converted to Soong 2016-08-26 13:33:31 -07:00
warn.py Update warn.py for new Error Prone diagnostics 2016-11-22 10:35:07 -08:00