Revert^2 "Add a check for apex/allowed_deps.txt to droidcore."

67e8be4b9c340a7e82808fced835c3fbbdeb2c77

Test: presubmit
Change-Id: I5695dd1003386191dbbe0ea511ef5b615d0d5e4e
Merged-In: I5695dd1003386191dbbe0ea511ef5b615d0d5e4e
(cherry picked from commit 0efeca6a2510834868d6d0a624db1c8437f0e839)
diff --git a/core/main.mk b/core/main.mk
index 9ba43f6..6a35417 100644
--- a/core/main.mk
+++ b/core/main.mk
@@ -1899,6 +1899,11 @@
 ndk: $(SOONG_OUT_DIR)/ndk.timestamp
 .PHONY: ndk
 
+# Checks that build/soong/apex/allowed_deps.txt remains up to date
+ifneq ($(UNSAFE_DISABLE_APEX_ALLOWED_DEPS_CHECK),true)
+  droidcore: ${APEX_ALLOWED_DEPS_CHECK}
+endif
+
 $(call dist-write-file,$(KATI_PACKAGE_MK_DIR)/dist.mk)
 
 $(info [$(call inc_and_print,subdir_makefiles_inc)/$(subdir_makefiles_total)] writing build rules ...)