From d09460c61c1321ae54731f586b10d6ae16a8a6cf Mon Sep 17 00:00:00 2001 From: Hridya Valsaraju Date: Thu, 15 Apr 2021 22:11:18 -0700 Subject: Rename ro.product.enforce_debugfs_restrictions Rename ro.product.enforce_debugfs_restrictions as per the sysprop naming scheme to ro.product.debugfs_restrictions.enabled. Test: adb shell am bug-report Bug: 184381659 Change-Id: Ia30d03a41b9c640c8722bef8cf1c373680232b68 --- cmds/dumpstate/dumpstate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmds') diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp index 039dbc5bf2..539b9e59b3 100644 --- a/cmds/dumpstate/dumpstate.cpp +++ b/cmds/dumpstate/dumpstate.cpp @@ -2174,13 +2174,13 @@ void Dumpstate::DumpstateBoard(int out_fd) { } /* - * mount debugfs for non-user builds with ro.product.enforce_debugfs_restrictions + * mount debugfs for non-user builds with ro.product.debugfs_restrictions.enabled * set to true and unmount it after invoking dumpstateBoard_* methods. * This is to enable debug builds to not have debugfs mounted during runtime. * It will also ensure that debugfs is only accessed by the dumpstate HAL. */ auto mount_debugfs = - android::base::GetBoolProperty("ro.product.enforce_debugfs_restrictions", false); + android::base::GetBoolProperty("ro.product.debugfs_restrictions.enabled", false); if (mount_debugfs) { RunCommand("mount debugfs", {"mount", "-t", "debugfs", "debugfs", "/sys/kernel/debug"}, AS_ROOT_20); -- cgit v1.2.3-59-g8ed1b