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
This commit is contained in:
parent
910e60c742
commit
a283ac713c
2 changed files with 6 additions and 0 deletions
|
@ -185,6 +185,9 @@ set_prop(dumpstate, dumpstate_options_prop)
|
|||
# Read device's serial number from system properties
|
||||
get_prop(dumpstate, serialno_prop)
|
||||
|
||||
# Read state of logging-related properties
|
||||
get_prop(dumpstate, device_logging_prop)
|
||||
|
||||
# Access to /data/media.
|
||||
# This should be removed if sdcardfs is modified to alter the secontext for its
|
||||
# accesses to the underlying FS.
|
||||
|
|
|
@ -75,6 +75,9 @@ userdebug_or_eng(`
|
|||
# Read device's serial number from system properties
|
||||
get_prop(shell, serialno_prop)
|
||||
|
||||
# Read state of logging-related properties
|
||||
get_prop(shell, device_logging_prop)
|
||||
|
||||
# allow shell access to services
|
||||
allow shell servicemanager:service_manager list;
|
||||
# don't allow shell to access GateKeeper service
|
||||
|
|
Loading…
Reference in a new issue