-
- Downloads
Switch /data/misc/reboot/last_reboot_reason to persistent property
Switch from /data/misc/reboot/last_reboot_reason to persistent Android property persist.sys.boot.reason for indicating why the device is rebooted or shutdown. Introduce protection for all boot reason properties Protect the following properties with these labels ro.boot.bootreason u:object_r:bootloader_boot_reason_prop:s0 sys.boot.reason u:object_r:sys_boot_reason_prop:s0 persist.sys.boot.reason u:object_r:last_boot_reason_prop:s0 Setup the current as-need access rules for each. ToDo: Remove u:object_r:reboot_data_file after internal fixes. Test: system/core/bootstat/boot_reason_test.sh Bug: 64687998 Change-Id: I3771c73933e8ae2d94aee936c7a38b6282611b80
Showing
- private/file_contexts 0 additions, 1 deletionprivate/file_contexts
- private/property_contexts 3 additions, 0 deletionsprivate/property_contexts
- private/system_server.te 5 additions, 4 deletionsprivate/system_server.te
- public/bootanim.te 4 additions, 0 deletionspublic/bootanim.te
- public/bootstat.te 3 additions, 0 deletionspublic/bootstat.te
- public/dumpstate.te 5 additions, 0 deletionspublic/dumpstate.te
- public/property.te 3 additions, 0 deletionspublic/property.te
- public/recovery.te 3 additions, 0 deletionspublic/recovery.te
- public/shell.te 5 additions, 0 deletionspublic/shell.te
Loading
Please register or sign in to comment