From 49c8f941924a41d600457bd9399125ca37832eef Mon Sep 17 00:00:00 2001 From: Aaron Ding Date: Sat, 8 May 2021 00:11:45 +0800 Subject: [PATCH] Enable PRODUCT_SET_DEBUGFS_RESTRICTIONS on userdebug builds Bug: 186500818 Change-Id: Ic8534da52b093fc3278abd2f243a506d87196b1e Signed-off-by: Aaron Ding --- device.mk | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/device.mk b/device.mk index 2ae775a9..5eac8c8d 100644 --- a/device.mk +++ b/device.mk @@ -215,8 +215,10 @@ DEVICE_PACKAGE_OVERLAYS += device/google/gs101/overlay # This will be updated to 31 (Android S) for shipping PRODUCT_SHIPPING_API_LEVEL := 30 -# Temporarily disable the debugfs restriction on 31 (Android S) -PRODUCT_SET_DEBUGFS_RESTRICTIONS := false +# Enable the debugfs restriction before upgrading shipping abi level to 31 (Android S) +ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT))) +PRODUCT_SET_DEBUGFS_RESTRICTIONS := true +endif # Enforce the Product interface PRODUCT_PRODUCT_VNDK_VERSION := current