Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c3fa952c authored by Tom Powell's avatar Tom Powell
Browse files

Revert "Allow to force disable block based OTAs"

This reverts commit 1a03881e.

Recoveries do not use file_contexts.bin, so you're at the mercy of 
their file_contexts file, which isn't guaranteed to be accurate. 

Change-Id: I1941b899b0c719437f36ac5886f0caf3f7ccac6a
parent 1a03881e
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -2148,9 +2148,6 @@ else
endif
	$(hide) echo "ota_override_device=$(OTA_SCRIPT_OVERRIDE_DEVICE)" >> $(zip_root)/META/misc_info.txt
	$(hide) echo "ota_override_prop=$(OTA_SCRIPT_OVERRIDE_PROP)" >> $(zip_root)/META/misc_info.txt
ifdef BOARD_DISABLE_BLOCK_BASED_OTA
	$(hide) echo "disable_block_based_ota=$(BOARD_DISABLE_BLOCK_BASED_OTA)" >> $(zip_root)/META/misc_info.txt
endif
ifdef BOARD_PREBUILT_VENDORIMAGE
	$(hide) mkdir -p $(zip_root)/IMAGES
	$(hide) cp $(INSTALLED_VENDORIMAGE_TARGET) $(zip_root)/IMAGES/
@@ -2229,10 +2226,8 @@ ifneq ($(TARGET_UNIFIED_DEVICE),)
endif

ifneq ($(BLOCK_BASED_OTA),false)
ifneq ($(BOARD_DISABLE_BLOCK_BASED_OTA),true)
    $(INTERNAL_OTA_PACKAGE_TARGET): block_based := --block
endif
endif

$(INTERNAL_OTA_PACKAGE_TARGET): $(BUILT_TARGET_FILES_PACKAGE)
	@echo "$(OTA_FROM_TARGET_SCRIPT)" > $(PRODUCT_OUT)/ota_script_path
+0 −5
Original line number Diff line number Diff line
@@ -2097,11 +2097,6 @@ def main(argv):
  if "ota_override_prop" in OPTIONS.info_dict:
    OPTIONS.override_prop = OPTIONS.info_dict.get("ota_override_prop") == "true"

  disable_block_based_ota = OPTIONS.info_dict.get("disable_block_based_ota") == "true"
  if OPTIONS.block_based and disable_block_based_ota:
    print("Block based OTAs are disabled for this device")
    OPTIONS.block_based = False

  ab_update = OPTIONS.info_dict.get("ab_update") == "true"

  if ab_update: