Martin Stjernholm | 9939267 | 2023-04-19 15:10:06 +0100 | [diff] [blame] | 1 | # Copyright (C) 2023 The Android Open Source Project |
Chris Wailes | e0d677d | 2021-03-03 12:29:08 -0800 | [diff] [blame] | 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
Jiakai Zhang | c5ee51b | 2024-01-31 10:26:02 +0800 | [diff] [blame] | 15 | # A service that handles dexopt. See art/artd/README.md. It's a lazy service |
| 16 | # that is started and stopped dynamically as needed. |
Chris Wailes | e0d677d | 2021-03-03 12:29:08 -0800 | [diff] [blame] | 17 | service artd /apex/com.android.art/bin/artd |
Jiakai Zhang | a312d8a | 2022-05-27 18:15:42 +0100 | [diff] [blame] | 18 | interface aidl artd |
| 19 | disabled # Prevents the service from automatically starting at boot. |
| 20 | oneshot # Prevents the service from automatically restarting each time it is stopped. |
Chris Wailes | e0d677d | 2021-03-03 12:29:08 -0800 | [diff] [blame] | 21 | class core |
Jiakai Zhang | a312d8a | 2022-05-27 18:15:42 +0100 | [diff] [blame] | 22 | user artd |
Jiakai Zhang | 5825509 | 2022-06-07 15:09:42 +0100 | [diff] [blame] | 23 | group artd |
Jiakai Zhang | bc1d0af | 2022-07-20 16:01:21 +0100 | [diff] [blame] | 24 | capabilities DAC_OVERRIDE DAC_READ_SEARCH FOWNER CHOWN |
Martin Stjernholm | 9939267 | 2023-04-19 15:10:06 +0100 | [diff] [blame] | 25 | |
Jiakai Zhang | c5ee51b | 2024-01-31 10:26:02 +0800 | [diff] [blame] | 26 | # Same as above, but for Pre-reboot Dexopt. It runs in a chroot environment that |
| 27 | # is set up by dexopt_chroot_setup. It's a lazy service that is started and |
| 28 | # stopped dynamically as needed. |
| 29 | service artd_pre_reboot /apex/com.android.art/bin/art_exec --chroot=/mnt/pre_reboot_dexopt -- /apex/com.android.art/bin/artd --pre-reboot |
| 30 | interface aidl artd_pre_reboot |
| 31 | disabled # Prevents the service from automatically starting at boot. |
| 32 | oneshot # Prevents the service from automatically restarting each time it is stopped. |
| 33 | class core |
| 34 | user artd |
| 35 | group artd |
| 36 | capabilities DAC_OVERRIDE DAC_READ_SEARCH FOWNER CHOWN SYS_CHROOT |
| 37 | seclabel u:r:artd:s0 |
| 38 | |
| 39 | # A service that sets up the chroot environment for Pre-reboot Dexopt. See |
| 40 | # art/dexopt_chroot_setup/README.md. It's a lazy service that is started and |
| 41 | # stopped dynamically as needed. |
| 42 | service dexopt_chroot_setup /apex/com.android.art/bin/dexopt_chroot_setup |
| 43 | interface aidl dexopt_chroot_setup |
| 44 | disabled # Prevents the service from automatically starting at boot. |
| 45 | oneshot # Prevents the service from automatically restarting each time it is stopped. |
| 46 | class core |
| 47 | user artd |
| 48 | group artd |
| 49 | |
Martin Stjernholm | d36df66 | 2023-05-11 15:27:58 +0100 | [diff] [blame] | 50 | # Run at boot in Android U and later. |
Martin Stjernholm | 9939267 | 2023-04-19 15:10:06 +0100 | [diff] [blame] | 51 | service art_boot /apex/com.android.art/bin/art_boot |
Martin Stjernholm | d36df66 | 2023-05-11 15:27:58 +0100 | [diff] [blame] | 52 | disabled # Started explicitly from system/core/rootdir/init.rc |
Martin Stjernholm | 9939267 | 2023-04-19 15:10:06 +0100 | [diff] [blame] | 53 | oneshot |
| 54 | class core |
Samuel Holland | 877358e | 2023-06-21 18:12:59 -0700 | [diff] [blame] | 55 | user root |