blob: 862a62a3bf9abe299ea62117001004eff260f87d [file] [log] [blame]
Alex Klyubinf5446eb2017-03-23 14:27:32 -07001typeattribute update_engine coredomain;
2
dcashmancc39f632016-07-22 13:13:11 -07003init_daemon_domain(update_engine);
Yifan Hong07a99e12019-08-07 13:01:15 -07004
5# Allow to talk to gsid.
6allow update_engine gsi_service:service_manager find;
7binder_call(update_engine, gsid)
Inseob Kim55e5c9b2020-03-04 17:20:35 +09008
9# Allow to start gsid service.
10set_prop(update_engine, ctl_gsid_prop)
11
David Anderson09bb9442020-11-13 00:45:59 -080012# Allow to start snapuserd for dm-user communication.
13set_prop(update_engine, ctl_snapuserd_prop)
14
Inseob Kim55e5c9b2020-03-04 17:20:35 +090015# Allow to set the OTA related properties, e.g. ota.warm_reset.
16set_prop(update_engine, ota_prop)
Kelvin Zhang60456bd2023-05-18 09:50:05 -070017get_prop(update_engine, ota_build_prop)
Howard Chen2a2278e2020-04-30 17:45:45 +080018
19# Allow to get the DSU status
20get_prop(update_engine, gsid_prop)
Yifan Hong8ac37f02020-06-01 15:07:50 -070021
22# Allow update_engine to call the callback function provided by GKI update hook.
23binder_call(update_engine, gki_apex_prepostinstall)
David Anderson09bb9442020-11-13 00:45:59 -080024
Pawan Waghc35c8af2023-09-20 00:05:07 +000025# Allow update_engine to call the callback function by settings app
26# for the kernel update triggered using 16k developer option
27binder_call(update_engine, system_app)
28
David Anderson09bb9442020-11-13 00:45:59 -080029# Allow to communicate with the snapuserd service, for dm-user snapshots.
30allow update_engine snapuserd:unix_stream_socket connectto;
31allow update_engine snapuserd_socket:sock_file write;
David Anderson9e21df22021-07-27 18:51:18 -070032get_prop(update_engine, snapuserd_prop)
Mohammad Samiul Islam606a3dc2021-02-18 19:55:31 +000033
34# Allow to communicate with apexd for calculating and reserving space for
35# capex decompression
36allow update_engine apex_service:service_manager find;
37binder_call(update_engine, apexd)
Kelvin Zhang187cb2c2022-03-30 20:05:23 -070038
39# let this domain use the hal service
40binder_use(update_engine)
41hal_client_domain(update_engine, hal_bootctl)