OSDN Git Service

Write AB_OTA_POSTINSTALL_CONFIG to META/postinstall_config.txt.
authorSen Jiang <senj@google.com>
Thu, 12 Nov 2015 21:53:25 +0000 (13:53 -0800)
committerSen Jiang <senj@google.com>
Fri, 13 Nov 2015 18:46:09 +0000 (10:46 -0800)
The config file will be passed to delta_generator to add the postinstall
field in the update payload.

Bug: 24537566
Change-Id: I06b8d9d0b2c37f9a3e7a844ac4d9e2eead8cd4d2
TEST: make dist

core/Makefile

index 8922f06..c930708 100644 (file)
@@ -1629,6 +1629,9 @@ ifeq ($(AB_OTA_UPDATER),true)
        $(hide) for part in $(AB_OTA_PARTITIONS); do \
          echo "$${part}" >> $(zip_root)/META/ab_partitions.txt; \
        done
+       $(hide) for conf in $(AB_OTA_POSTINSTALL_CONFIG); do \
+         echo "$${conf}" >> $(zip_root)/META/postinstall_config.txt; \
+       done
        @# Include the build type in META/misc_info.txt so the server can easily differentiate production builds.
        $(hide) echo "build_type=$(TARGET_BUILD_VARIANT)" >> $(zip_root)/META/misc_info.txt
 ifdef OSRELEASED_DIRECTORY