1 2ifeq (true,$(non_system_module)) 3 ifneq (,$(filter $(dir $(DEFAULT_SYSTEM_DEV_CERTIFICATE))%,$(LOCAL_CERTIFICATE))) 4 CERTIFICATE_VIOLATION_MODULES += $(LOCAL_MODULE) 5 ifeq (true,$(PRODUCT_ENFORCE_ARTIFACT_SYSTEM_CERTIFICATE_REQUIREMENT)) 6 $(if $(filter $(LOCAL_MODULE),$(PRODUCT_ARTIFACT_SYSTEM_CERTIFICATE_REQUIREMENT_WHITELIST)),,\ 7 $(call pretty-error,The module in product partition cannot be signed with certificate in system.)) 8 endif 9 endif 10endif 11