David Brazdil | 6df78e4 | 2021-01-20 10:27:06 +0000 | [diff] [blame] | 1 | # |
| 2 | # Copyright (C) 2021 Google Inc. |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | |
| 17 | # TODO: Remove this once the APEX is included in base system. |
| 18 | |
| 19 | # To include the APEX in your build, insert this in your device.mk: |
| 20 | # $(call inherit-product, packages/modules/Virtualization/apex/product_packages.mk) |
| 21 | |
Nikita Ioffe | 3a747a6 | 2023-03-23 00:35:47 +0000 | [diff] [blame] | 22 | # If devices supports AVF it implies that it uses non-flattened APEXes. |
| 23 | $(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk) |
| 24 | |
Victor Hsieh | 8ddc77d | 2021-07-09 15:26:36 -0700 | [diff] [blame] | 25 | PRODUCT_PACKAGES += \ |
| 26 | com.android.compos \ |
Victor Hsieh | 8ddc77d | 2021-07-09 15:26:36 -0700 | [diff] [blame] | 27 | |
Alan Stokes | 1c6f91c | 2021-11-19 14:11:30 +0000 | [diff] [blame] | 28 | # TODO(b/207336449): Figure out how to get these off /system |
Alan Stokes | e54f330 | 2021-10-18 12:30:31 +0100 | [diff] [blame] | 29 | PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST := \ |
Alan Stokes | e54f330 | 2021-10-18 12:30:31 +0100 | [diff] [blame] | 30 | system/framework/oat/%@service-compos.jar@classes.odex \ |
| 31 | system/framework/oat/%@service-compos.jar@classes.vdex \ |
| 32 | |
Ulyana Trafimovich | 7858101 | 2021-11-24 15:50:04 +0000 | [diff] [blame] | 33 | PRODUCT_APEX_SYSTEM_SERVER_JARS := com.android.compos:service-compos |
Alan Stokes | e54f330 | 2021-10-18 12:30:31 +0100 | [diff] [blame] | 34 | |
Ulyana Trafimovich | 7858101 | 2021-11-24 15:50:04 +0000 | [diff] [blame] | 35 | PRODUCT_SYSTEM_EXT_PROPERTIES := ro.config.isolated_compilation_enabled=true |
Victor Hsieh | 735292c | 2022-01-05 11:47:59 -0800 | [diff] [blame] | 36 | |
Victor Hsieh | 733becf | 2022-09-09 12:29:00 -0700 | [diff] [blame] | 37 | PRODUCT_FSVERITY_GENERATE_METADATA := true |
Nikita Ioffe | 50e2ebe | 2022-10-24 17:16:25 +0100 | [diff] [blame] | 38 | |
| 39 | PRODUCT_AVF_ENABLED := true |
Nikita Ioffe | 9d042eb | 2023-09-05 14:29:31 +0100 | [diff] [blame^] | 40 | |
| 41 | # The cheap build flags dependency management system until there is a proper one. |
| 42 | ifdef RELEASE_AVF_ENABLE_DEVICE_ASSIGNMENT |
| 43 | ifndef RELEASE_AVF_ENABLE_VENDOR_MODULES |
| 44 | $(error RELEASE_AVF_ENABLE_VENDOR_MODULES must also be enabled) |
| 45 | endif |
| 46 | endif |