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

Commit 51a066f9 authored by Wei Li's avatar Wei Li
Browse files

Convert build/make/target/product/security/Android.mk to Android.bp

Bug: 371107666
Change-Id: If449d135781cae429d14aa5ca725a7b7910be833
Test: lunch aosp_cf_x86_64_phone-trunk_staging-eng, file product/etc/security/adb_keys should exist
Test: lunch aosp_cf_x86_64_phone-trunk_staging-user, file product/etc/security/adb_keys should NOT exist
parent 9622b9c7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -364,6 +364,8 @@ $(call add_json_list, DeviceProductCompatibilityMatrixFile, $(DEVICE_PRODUCT_COM
$(call add_json_list, BoardAvbSystemAddHashtreeFooterArgs, $(BOARD_AVB_SYSTEM_ADD_HASHTREE_FOOTER_ARGS))
$(call add_json_bool, BoardAvbEnable, $(filter true,$(BOARD_AVB_ENABLE)))

$(call add_json_str, AdbKeys, $(PRODUCT_ADB_KEYS))

$(call add_json_map, PartitionVarsForSoongMigrationOnlyDoNotUse)
  $(call add_json_str,  ProductDirectory,    $(dir $(INTERNAL_PRODUCT)))

+4 −0
Original line number Diff line number Diff line
@@ -37,3 +37,7 @@ otacerts_zip {
    relative_install_path: "security",
    filename: "otacerts.zip",
}

adb_keys {
    name: "adb_keys",
}
+0 −17
Original line number Diff line number Diff line
LOCAL_PATH:= $(call my-dir)

#######################################
# adb key, if configured via PRODUCT_ADB_KEYS
ifdef PRODUCT_ADB_KEYS
  ifneq ($(filter eng userdebug,$(TARGET_BUILD_VARIANT)),)
    include $(CLEAR_VARS)
    LOCAL_MODULE := adb_keys
    LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
    LOCAL_LICENSE_CONDITIONS := notice
    LOCAL_NOTICE_FILE := build/soong/licenses/LICENSE
    LOCAL_MODULE_CLASS := ETC
    LOCAL_MODULE_PATH := $(TARGET_OUT_PRODUCT_ETC)/security
    LOCAL_PREBUILT_MODULE_FILE := $(PRODUCT_ADB_KEYS)
    include $(BUILD_PREBUILT)
  endif
endif