• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Car power policy server
2typeattribute carpowerpolicyd coredomain;
3typeattribute carpowerpolicyd mlstrustedsubject;
4
5type carpowerpolicyd_exec, exec_type, file_type, system_file_type;
6
7init_daemon_domain(carpowerpolicyd)
8add_service(carpowerpolicyd, carpowerpolicyd_service)
9binder_use(carpowerpolicyd)
10binder_service(carpowerpolicyd)
11
12hwbinder_use(carpowerpolicyd)
13get_prop(carpowerpolicyd, system_boot_reason_prop)
14get_prop(carpowerpolicyd, hwservicemanager_prop)
15hal_client_domain(carpowerpolicyd, hal_vehicle)
16
17# Configuration for carpowerpolicyd to check car_service.
18allow carpowerpolicyd carservice_service:service_manager find;
19
20# Allow reading and writing /sys/power/
21allow carpowerpolicyd sysfs_power:file rw_file_perms;
22
23# Allow updating properties to control boot animation
24set_prop(carpowerpolicyd, debug_prop)
25set_prop(carpowerpolicyd, bootanim_system_prop)
26