diff options
| author | 2021-04-22 21:43:18 +0000 | |
|---|---|---|
| committer | 2021-04-22 21:43:18 +0000 | |
| commit | 9fd3b6a1f98b3ead9fb4dce0d6fa409c0e1ede4c (patch) | |
| tree | 4e640391e639616b4757d5c04e81a875bab58318 | |
| parent | 8d437e41683afa0fda4b8a10f00d63c83d287c5a (diff) | |
| parent | 408d898a43794ede1214ecae9bd4f66d249fe608 (diff) | |
Merge "Enforce debugfs restrictions for S launching devices and newer"
| -rw-r--r-- | core/product_config.mk | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/product_config.mk b/core/product_config.mk index d703ee31bb..eb6f69fec6 100644 --- a/core/product_config.mk +++ b/core/product_config.mk @@ -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) |