Merge "Enforce debugfs restrictions for S launching devices and newer" am: 9fd3b6a1f9

Original change: https://android-review.googlesource.com/c/platform/build/+/1668925

Change-Id: Icbc07c385c84a689a4bab028a7bac54d93fc6481
This commit is contained in:
Treehugger Robot
2021-04-22 22:02:26 +00:00
committed by Automerger Merge Worker

View File

@@ -359,6 +359,14 @@ ifeq ($(PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS),)
endif
endif
ifeq ($(PRODUCT_SET_DEBUGFS_RESTRICTIONS),)
ifdef PRODUCT_SHIPPING_API_LEVEL
ifeq (true,$(call math_gt_or_eq,$(PRODUCT_SHIPPING_API_LEVEL),31))
PRODUCT_SET_DEBUGFS_RESTRICTIONS := true
endif
endif
endif
ifdef PRODUCT_SHIPPING_API_LEVEL
ifneq (,$(call math_gt_or_eq,29,$(PRODUCT_SHIPPING_API_LEVEL)))
PRODUCT_PACKAGES += $(PRODUCT_PACKAGES_SHIPPING_API_LEVEL_29)