Alex Klyubin | f5446eb | 2017-03-23 14:27:32 -0700 | [diff] [blame] | 1 | typeattribute update_engine coredomain; |
| 2 | |
dcashman | cc39f63 | 2016-07-22 13:13:11 -0700 | [diff] [blame] | 3 | init_daemon_domain(update_engine); |
Yifan Hong | 07a99e1 | 2019-08-07 13:01:15 -0700 | [diff] [blame] | 4 | |
| 5 | # Allow to talk to gsid. |
| 6 | allow update_engine gsi_service:service_manager find; |
| 7 | binder_call(update_engine, gsid) |
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 8 | |
| 9 | # Allow to start gsid service. |
| 10 | set_prop(update_engine, ctl_gsid_prop) |
| 11 | |
David Anderson | 09bb944 | 2020-11-13 00:45:59 -0800 | [diff] [blame] | 12 | # Allow to start snapuserd for dm-user communication. |
| 13 | set_prop(update_engine, ctl_snapuserd_prop) |
| 14 | |
Inseob Kim | 55e5c9b | 2020-03-04 17:20:35 +0900 | [diff] [blame] | 15 | # Allow to set the OTA related properties, e.g. ota.warm_reset. |
| 16 | set_prop(update_engine, ota_prop) |
Kelvin Zhang | 60456bd | 2023-05-18 09:50:05 -0700 | [diff] [blame] | 17 | get_prop(update_engine, ota_build_prop) |
Howard Chen | 2a2278e | 2020-04-30 17:45:45 +0800 | [diff] [blame] | 18 | |
| 19 | # Allow to get the DSU status |
| 20 | get_prop(update_engine, gsid_prop) |
Yifan Hong | 8ac37f0 | 2020-06-01 15:07:50 -0700 | [diff] [blame] | 21 | |
| 22 | # Allow update_engine to call the callback function provided by GKI update hook. |
| 23 | binder_call(update_engine, gki_apex_prepostinstall) |
David Anderson | 09bb944 | 2020-11-13 00:45:59 -0800 | [diff] [blame] | 24 | |
Pawan Wagh | c35c8af | 2023-09-20 00:05:07 +0000 | [diff] [blame] | 25 | # Allow update_engine to call the callback function by settings app |
| 26 | # for the kernel update triggered using 16k developer option |
| 27 | binder_call(update_engine, system_app) |
| 28 | |
David Anderson | 09bb944 | 2020-11-13 00:45:59 -0800 | [diff] [blame] | 29 | # Allow to communicate with the snapuserd service, for dm-user snapshots. |
| 30 | allow update_engine snapuserd:unix_stream_socket connectto; |
| 31 | allow update_engine snapuserd_socket:sock_file write; |
David Anderson | 9e21df2 | 2021-07-27 18:51:18 -0700 | [diff] [blame] | 32 | get_prop(update_engine, snapuserd_prop) |
Mohammad Samiul Islam | 606a3dc | 2021-02-18 19:55:31 +0000 | [diff] [blame] | 33 | |
| 34 | # Allow to communicate with apexd for calculating and reserving space for |
| 35 | # capex decompression |
| 36 | allow update_engine apex_service:service_manager find; |
| 37 | binder_call(update_engine, apexd) |
Kelvin Zhang | 187cb2c | 2022-03-30 20:05:23 -0700 | [diff] [blame] | 38 | |
| 39 | # let this domain use the hal service |
| 40 | binder_use(update_engine) |
| 41 | hal_client_domain(update_engine, hal_bootctl) |