Enable incidentd access to ro.serialno
incident report contains similar data as in a bugreport, but in proto format. Currently ro.serialno is not captured due to selinux settings. Test: adb shell incident -p LOCAL 1000 Bug: 143372261 Change-Id: I6a89308c1347fba2ce4f7b469f9a02b119d4aeb7
This commit is contained in:
parent
175a317083
commit
c8ae8fa616
2 changed files with 7 additions and 0 deletions
|
@ -150,6 +150,12 @@ allow incidentd { dumpstate incident }:fifo_file write;
|
|||
# Allow incident to call back to incident with status updates.
|
||||
binder_call(incidentd, incident)
|
||||
|
||||
# Read device serial number from system properties
|
||||
# This is used to track reports from lab testing devices
|
||||
userdebug_or_eng(`
|
||||
get_prop(incidentd, serialno_prop)
|
||||
')
|
||||
|
||||
###
|
||||
### neverallow rules
|
||||
###
|
||||
|
|
|
@ -539,6 +539,7 @@ neverallow {
|
|||
-hal_camera_server
|
||||
-hal_cas_server
|
||||
-hal_drm_server
|
||||
userdebug_or_eng(`-incidentd')
|
||||
-init
|
||||
-mediadrmserver
|
||||
-recovery
|
||||
|
|
Loading…
Reference in a new issue