Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d09460c6 authored by Hridya Valsaraju's avatar Hridya Valsaraju
Browse files

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
parent d5cc17b3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);