diff --git a/config/common.mk b/config/common.mk index 580234f0e3f2cdf6a056d49129e23f61ddda350c..eb6f7ca8372153e167c9b7cd5260535fbb20f0c1 100644 --- a/config/common.mk +++ b/config/common.mk @@ -45,6 +45,12 @@ PRODUCT_COPY_FILES += \ $(VENDOR_PATH)/config/permissions/eos-permissions.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/default-permissions/eos-permissions.xml \ $(VENDOR_PATH)/config/permissions/eos-allowlist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/eos-allowlist.xml +ifneq ($(filter user,$(TARGET_BUILD_VARIANT)),) + # Do not include ih8sn on user build. + # Indeed, some security SDKs included in 3rd party apps can detect it. + INCLUDE_IH8SN ?= false +endif + # SafetyNet compatibility ifneq ($(filter official community partner,$(RELEASE_TYPE)),) # Ship ih8sn on community & official builds