summaryrefslogtreecommitdiff
path: root/libs/gui/LayerDebugInfo.cpp
diff options
context:
space:
mode:
author Nandana Dutt <nandana@google.com> 2018-11-02 16:17:05 +0000
committer Nandana Dutt <nandana@google.com> 2018-11-13 14:44:50 +0000
commit4b392be4068fba0307191d15145f3306433c9ebc (patch)
tree3085cf8870b6f7d432b29780563db03b49e345e4 /libs/gui/LayerDebugInfo.cpp
parent13ad9e89040015ea830a8f6a6dbff0ae5ab64d83 (diff)
Added system property (dumpstate.unroot).
Dumpstate starts off as root but drops root as soon as it's done with some important commands and actions that need root privilege. After that, on non-user builds it's still possible to assume root with 'su root <cmd>', which it does with AsRoot() option. This means that the output of such commands (i.e. commands that are run after dropping root, and require root priviliges) on user-debug builds differ from those on user devices. This can make it hard for developers to anticipate what bugreports from user builds are going to look like. dumpstate.unroot property allows ignoring the availability of "su" in non-user builds and emulate the user build behavior for those commands. Fixes: 117980186 Test: adb shell setprop dumpstate.unroot true && \ adb shell cmd activity bug-report --progress Test: adb shell /data/nativetest64/dumpstate_test/dumpstate_test --gtest_filter=DumpstateTest.RunCommandAsRootNonUserBuild_withUnroot Test: adb shell /data/nativetest64/dumpstate_test/dumpstate_test --gtest_filter=DumpstateTest.RunCommandAsRootIfAvailableOnDebugBuild_withUnroot Change-Id: I8d8d2f0733a8d13754c7d2e6a0d323c73afcbbbb
Diffstat (limited to 'libs/gui/LayerDebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions