blob: ef84551a34c8dcc17753c3e818b82488f5cad848 [file] [log] [blame]
David Brazdil6df78e42021-01-20 10:27:06 +00001#
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 Ioffe3a747a62023-03-23 00:35:47 +000022# 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 Hsieh8ddc77d2021-07-09 15:26:36 -070025PRODUCT_PACKAGES += \
26 com.android.compos \
Victor Hsieh8ddc77d2021-07-09 15:26:36 -070027
Alan Stokes1c6f91c2021-11-19 14:11:30 +000028# TODO(b/207336449): Figure out how to get these off /system
Alan Stokese54f3302021-10-18 12:30:31 +010029PRODUCT_ARTIFACT_PATH_REQUIREMENT_ALLOWED_LIST := \
Alan Stokese54f3302021-10-18 12:30:31 +010030 system/framework/oat/%@service-compos.jar@classes.odex \
31 system/framework/oat/%@service-compos.jar@classes.vdex \
32
Ulyana Trafimovich78581012021-11-24 15:50:04 +000033PRODUCT_APEX_SYSTEM_SERVER_JARS := com.android.compos:service-compos
Alan Stokese54f3302021-10-18 12:30:31 +010034
Ulyana Trafimovich78581012021-11-24 15:50:04 +000035PRODUCT_SYSTEM_EXT_PROPERTIES := ro.config.isolated_compilation_enabled=true
Victor Hsieh735292c2022-01-05 11:47:59 -080036
Victor Hsieh733becf2022-09-09 12:29:00 -070037PRODUCT_FSVERITY_GENERATE_METADATA := true
Nikita Ioffe50e2ebe2022-10-24 17:16:25 +010038
39PRODUCT_AVF_ENABLED := true