diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index 0fd1c3a..a33a7d5 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -62,9 +62,6 @@ BOARD_AVB_RECOVERY_KEY_PATH := external/avb/test/data/testkey_rsa4096.pem BOARD_AVB_RECOVERY_ROLLBACK_INDEX := 1 BOARD_AVB_RECOVERY_ROLLBACK_INDEX_LOCATION := 1 -# Board -TARGET_BOARD_INFO_FILE := $(COMMON_PATH)/board-info.txt - # Bootloader TARGET_NO_BOOTLOADER := true TARGET_BOOTLOADER_BOARD_NAME := sdm710 @@ -154,6 +151,7 @@ TARGET_RECOVERY_FSTAB := $(COMMON_PATH)/rootdir/etc/fstab.qcom TARGET_RECOVERY_PIXEL_FORMAT := BGRA_8888 # Releasetools +TARGET_ANDROID_INFO_EXTRA_FILE := $(COMMON_PATH)/android-info-extra.txt TARGET_RECOVERY_UPDATER_LIBS := librecovery_updater_samsung TARGET_RELEASETOOLS_EXTENSIONS := $(COMMON_PATH) diff --git a/board-info.txt b/android-info-extra.txt similarity index 100% rename from board-info.txt rename to android-info-extra.txt diff --git a/releasetools.py b/releasetools.py index da01820..4737fb7 100644 --- a/releasetools.py +++ b/releasetools.py @@ -1,5 +1,5 @@ # -# Copyright (C) 2019-2022 The LineageOS Project +# Copyright (C) 2019-2023 The LineageOS Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -72,7 +72,7 @@ def AddImage(info, basename, dest): info.script.AppendExtra('package_extract_file("%s", "%s");' % (basename, dest)) def AddTrustZoneAssertion(info, input_zip): - android_info = info.input_zip.read("OTA/android-info.txt") + android_info = info.input_zip.read("OTA/android-info-extra.txt") m = re.search(r'require\s+version-trustzone\s*=\s*(\S+)', android_info.decode('utf-8')) if m: versions = m.group(1).split('|')