Skip to content
Snippets Groups Projects
Commit a283ac71 authored by Pavel Grafov's avatar Pavel Grafov
Browse files

Let shell and bugreport read logging related properties.

Currently ro.device_owner and persist.logd.security aren't accessible
without root, so "adb shell getprop" returns empty reply which is
confusing. Also these properties aren't seen from bugreport unless
their change happened recently.

Bug: 37053313
Test: manual, took bugreport and ran getprop after "adb unroot".
Change-Id: Id41cdabc282f2ebcdfc0ac7fe9df756322a0863d
parent 910e60c7
No related branches found
No related tags found
No related merge requests found
...@@ -185,6 +185,9 @@ set_prop(dumpstate, dumpstate_options_prop) ...@@ -185,6 +185,9 @@ set_prop(dumpstate, dumpstate_options_prop)
# Read device's serial number from system properties # Read device's serial number from system properties
get_prop(dumpstate, serialno_prop) get_prop(dumpstate, serialno_prop)
# Read state of logging-related properties
get_prop(dumpstate, device_logging_prop)
# Access to /data/media. # Access to /data/media.
# This should be removed if sdcardfs is modified to alter the secontext for its # This should be removed if sdcardfs is modified to alter the secontext for its
# accesses to the underlying FS. # accesses to the underlying FS.
......
...@@ -75,6 +75,9 @@ userdebug_or_eng(` ...@@ -75,6 +75,9 @@ userdebug_or_eng(`
# Read device's serial number from system properties # Read device's serial number from system properties
get_prop(shell, serialno_prop) get_prop(shell, serialno_prop)
# Read state of logging-related properties
get_prop(shell, device_logging_prop)
# allow shell access to services # allow shell access to services
allow shell servicemanager:service_manager list; allow shell servicemanager:service_manager list;
# don't allow shell to access GateKeeper service # don't allow shell to access GateKeeper service
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment