summaryrefslogtreecommitdiff
path: root/cmds/dumpstate/dumpstate.cpp
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2021-04-20 06:32:21 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2021-04-20 06:32:21 +0000
commit58d6f5fffc3fd7e8eeee59ee3c8a3cee2344e94d (patch)
tree21a5443d71bed347c8ffa7785492d921a93e4b0c /cmds/dumpstate/dumpstate.cpp
parent839e56672e876b85f6e7b6f217354066cc14dced (diff)
parent5d7cca20ed944b8f7516f3da37047493eccf9b53 (diff)
Merge "Rename ro.product.enforce_debugfs_restrictions" am: 5d7cca20ed
Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1677194 Change-Id: Ie82dd48deabb4ed6b78584cbbdd372a7bebf358a
Diffstat (limited to 'cmds/dumpstate/dumpstate.cpp')
-rw-r--r--cmds/dumpstate/dumpstate.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds/dumpstate/dumpstate.cpp b/cmds/dumpstate/dumpstate.cpp
index c2ae341600..b8df99fd55 100644
--- a/cmds/dumpstate/dumpstate.cpp
+++ b/cmds/dumpstate/dumpstate.cpp
@@ -2177,13 +2177,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);