Hongyi Zhang | a6f9892 | 2018-10-25 20:09:55 -0700 | [diff] [blame] | 1 | typeattribute flags_health_check coredomain; |
| 2 | |
| 3 | init_daemon_domain(flags_health_check) |
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 4 | |
| 5 | set_prop(flags_health_check, device_config_boot_count_prop) |
| 6 | set_prop(flags_health_check, device_config_reset_performed_prop) |
| 7 | set_prop(flags_health_check, device_config_runtime_native_boot_prop) |
| 8 | set_prop(flags_health_check, device_config_runtime_native_prop) |
| 9 | set_prop(flags_health_check, device_config_input_native_boot_prop) |
| 10 | set_prop(flags_health_check, device_config_netd_native_prop) |
| 11 | set_prop(flags_health_check, device_config_activity_manager_native_boot_prop) |
| 12 | set_prop(flags_health_check, device_config_media_native_prop) |
Yi Kong | 0ac0072 | 2020-10-27 02:29:52 +0800 | [diff] [blame] | 13 | set_prop(flags_health_check, device_config_profcollect_native_boot_prop) |
Tej Singh | dd0988f | 2020-11-17 19:26:23 -0800 | [diff] [blame^] | 14 | set_prop(flags_health_check, device_config_statsd_native_prop) |
| 15 | set_prop(flags_health_check, device_config_statsd_native_boot_prop) |
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 16 | set_prop(flags_health_check, device_config_storage_native_boot_prop) |
| 17 | set_prop(flags_health_check, device_config_sys_traced_prop) |
| 18 | set_prop(flags_health_check, device_config_window_manager_native_boot_prop) |
| 19 | set_prop(flags_health_check, device_config_configuration_prop) |
| 20 | |
| 21 | # system property device_config_boot_count_prop is used for deciding when to perform server |
| 22 | # configurable flags related disaster recovery. Mistakenly set up by unrelated components can, at a |
| 23 | # wrong timing, trigger server configurable flag related disaster recovery, which will override |
| 24 | # server configured values of all flags with default values. |
| 25 | neverallow { domain -init -flags_health_check } device_config_boot_count_prop:property_service set; |
| 26 | |
| 27 | # system property device_config_reset_performed_prop is used for indicating whether server |
| 28 | # configurable flags have been reset during booting. Mistakenly modified by unrelated components can |
| 29 | # cause bad server configurable flags synced back to device. |
| 30 | neverallow { domain -init -flags_health_check } device_config_reset_performed_prop:property_service set; |