Enable incidentd access to ro.boot.bootreason
incident report contains similar data as in a bugreport, but in proto format. This is a cherry-pick from aosp/1283764 with conflicts resolved. Test: adb shell incident -p LOCAL 1000 Bug: 152173578 Change-Id: Iee53a3b8a6c95629a1d5c15b4d17f3d680b14178 Merged-In: Iee53a3b8a6c95629a1d5c15b4d17f3d680b14178
This commit is contained in:
parent
f7c70427b4
commit
eee53bc24b
2 changed files with 9 additions and 0 deletions
|
@ -168,6 +168,14 @@ userdebug_or_eng(`
|
|||
get_prop(incidentd, serialno_prop)
|
||||
')
|
||||
|
||||
# Read ro.boot.bootreason, persist.sys.boot.bootreason
|
||||
# This is used to track reports from lab testing devices
|
||||
userdebug_or_eng(`
|
||||
get_prop(incidentd, bootloader_boot_reason_prop);
|
||||
get_prop(incidentd, system_boot_reason_prop);
|
||||
get_prop(incidentd, last_boot_reason_prop);
|
||||
')
|
||||
|
||||
###
|
||||
### neverallow rules
|
||||
###
|
||||
|
|
|
@ -39,6 +39,7 @@ neverallow {
|
|||
-bootanim
|
||||
-bootstat
|
||||
-dumpstate
|
||||
userdebug_or_eng(`-incidentd')
|
||||
-init
|
||||
-recovery
|
||||
-shell
|
||||
|
|
Loading…
Reference in a new issue