blob: c3f575f655a466aba0d8019844f123e76b79dd2b [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)
Howard Chen2a2278e2020-04-30 17:45:45 +080017
18# Allow to get the DSU status
19get_prop(update_engine, gsid_prop)
Yifan Hong8ac37f02020-06-01 15:07:50 -070020
21# Allow update_engine to call the callback function provided by GKI update hook.
22binder_call(update_engine, gki_apex_prepostinstall)
David Anderson09bb9442020-11-13 00:45:59 -080023
24# Allow to communicate with the snapuserd service, for dm-user snapshots.
25allow update_engine snapuserd:unix_stream_socket connectto;
26allow update_engine snapuserd_socket:sock_file write;
David Anderson9e21df22021-07-27 18:51:18 -070027get_prop(update_engine, snapuserd_prop)
Mohammad Samiul Islam606a3dc2021-02-18 19:55:31 +000028
29# Allow to communicate with apexd for calculating and reserving space for
30# capex decompression
31allow update_engine apex_service:service_manager find;
32binder_call(update_engine, apexd)