Fix freeze test condition to board api
Bug: 314010177
Test: build and boot
Change-Id: I5ccd1018a0dadb5259ac23a18635951cee107421
diff --git a/Android.mk b/Android.mk
index 63b74aa..fe6a773 100644
--- a/Android.mk
+++ b/Android.mk
@@ -248,10 +248,10 @@
endif # SELINUX_IGNORE_NEVERALLOWS
endif # with_asan
-ifneq ($(PLATFORM_SEPOLICY_VERSION),$(TOT_SEPOLICY_VERSION))
+ifeq ($(BOARD_API_LEVEL_FROZEN),true)
LOCAL_REQUIRED_MODULES += \
se_freeze_test
-endif # ($(PLATFORM_SEPOLICY_VERSION),$(TOT_SEPOLICY_VERSION))
+endif
include $(BUILD_PHONY_PACKAGE)