2022-10-28 20:12:50 +00:00
|
|
|
COMMON_SEPOLICY_PATH := device/qcom/common/sepolicy
|
|
|
|
|
|
|
|
ifeq ($(TARGET_SEPOLICY_DIR),)
|
|
|
|
TARGET_SEPOLICY_DIR := $(TARGET_BOARD_PLATFORM)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq (,$(filter sdm845 sdm710, $(TARGET_BOARD_PLATFORM)))
|
|
|
|
BOARD_VENDOR_SEPOLICY_DIRS += \
|
|
|
|
$(COMMON_SEPOLICY_PATH)/generic/vendor/common \
|
|
|
|
$(COMMON_SEPOLICY_PATH)/qva/vendor/common \
|
|
|
|
$(COMMON_SEPOLICY_PATH)/generic/vendor/$(TARGET_SEPOLICY_DIR) \
|
|
|
|
$(COMMON_SEPOLICY_PATH)/qva/vendor/$(TARGET_SEPOLICY_DIR)
|
|
|
|
else # 845 and 710
|
|
|
|
BOARD_VENDOR_SEPOLICY_DIRS += \
|
|
|
|
$(COMMON_SEPOLICY_PATH)/legacy/vendor/ssg \
|
|
|
|
$(COMMON_SEPOLICY_PATH)/legacy/vendor/common \
|
|
|
|
$(COMMON_SEPOLICY_PATH)/legacy/vendor/$(TARGET_SEPOLICY_DIR)
|
|
|
|
|
|
|
|
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
|
|
|
|
BOARD_VENDOR_SEPOLICY_DIRS += \
|
|
|
|
$(COMMON_SEPOLICY_PATH)/legacy/vendor/test \
|
|
|
|
$(COMMON_SEPOLICY_PATH)/legacy/vendor/test/sysmonapp
|
|
|
|
endif
|
|
|
|
|
|
|
|
endif # 845 and 710
|
2023-01-19 14:53:39 +00:00
|
|
|
|
|
|
|
# Common system policies
|
|
|
|
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += \
|
|
|
|
$(COMMON_SEPOLICY_PATH)/common/private
|
|
|
|
SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS += \
|
|
|
|
$(COMMON_SEPOLICY_PATH)/common/public
|