blob: dab23957797b93042112f261fea0e4c73e49b289 [file] [log] [blame]
Amit Pundir4e375822019-04-18 16:46:10 +05301#
2# Copyright (C) 2014 The Android Open-Source Project
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
John Stultzfa0fa162020-02-06 23:14:28 +000017# Enable updating of APEXes
18$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
19
Amit Pundir4e375822019-04-18 16:46:10 +053020# Device overlay
21DEVICE_PACKAGE_OVERLAYS := $(LOCAL_PATH)/overlay
22
23# Build and run only ART
24PRODUCT_RUNTIMES := runtime_libart_default
25
John Stultze4b2cbd2021-07-02 21:23:59 +000026PRODUCT_SHIPPING_API_LEVEL := 31
Amit Pundir4e375822019-04-18 16:46:10 +053027PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS := false
28
John Stultz80e228b2020-10-06 05:03:30 +000029# Enable Scoped Storage related
30$(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk)
31
Amit Pundir4e375822019-04-18 16:46:10 +053032# vndk
33PRODUCT_PACKAGES := vndk-sp
34
35# Dynamic partitions
36PRODUCT_BUILD_SUPER_PARTITION := true
37PRODUCT_USE_DYNAMIC_PARTITIONS := true
38PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true
39
Amit Pundir4e375822019-04-18 16:46:10 +053040# HACK: Avoid usb crash
41PRODUCT_PRODUCT_PROPERTIES := \
42 persist.adb.nonblocking_ffs=0 \
43 ro.adb.nonblocking_ffs=0
44
45# Display
46PRODUCT_PACKAGES += \
John Stultzd9b540e2021-07-02 20:20:37 +000047 android.hardware.drm@1.3-service.clearkey \
48 android.hardware.drm@1.3-service.widevine \
Amit Pundir4e375822019-04-18 16:46:10 +053049 libGLES_mesa
50
51PRODUCT_PROPERTY_OVERRIDES += \
John Stultz26f5a0d2020-09-18 20:54:06 +000052 ro.hardware.gralloc=minigbm_msm \
Amit Pundir4e375822019-04-18 16:46:10 +053053 ro.hardware.hwcomposer=drm \
Amit Pundir4e375822019-04-18 16:46:10 +053054 ro.opengles.version=196608 \
55 persist.demo.rotationlock=1
56
John Stultz26f5a0d2020-09-18 20:54:06 +000057
58#
59# Hardware Composer HAL
60#
61PRODUCT_PACKAGES += \
62 hwcomposer.drm \
63 android.hardware.graphics.composer@2.3-impl \
64 android.hardware.graphics.composer@2.3-service
65
66#
67# Gralloc HAL
68#
69PRODUCT_PACKAGES += \
70 gralloc.minigbm_msm \
71 android.hardware.graphics.allocator@4.0-service.minigbm_msm \
72 android.hardware.graphics.mapper@4.0-impl.minigbm_msm
73
74
Amit Pundir4e375822019-04-18 16:46:10 +053075# Use Launcher3QuickStep
76PRODUCT_PACKAGES += Launcher3QuickStep
77
78# Enable WiFi
79PRODUCT_PACKAGES += \
80 hostapd \
81 libwpa_client \
82 wpa_supplicant \
83 wpa_supplicant.conf \
Elliott Hughes6e1a73e2020-11-06 14:25:45 -080084 wificond
Amit Pundir4e375822019-04-18 16:46:10 +053085
86PRODUCT_PROPERTY_OVERRIDES += \
87 wifi.interface=wlan0 \
88 wifi.supplicant_scan_interval=15
89
90PRODUCT_COPY_FILES += \
91 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
92 frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
93 $(LOCAL_PATH)/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf \
94 $(LOCAL_PATH)/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf
95
96# Enable BT
97PRODUCT_PACKAGES += \
John Stultz59657d52020-01-31 23:51:58 +000098 android.hardware.bluetooth@1.1-service.btlinux
Amit Pundir4e375822019-04-18 16:46:10 +053099
100PRODUCT_COPY_FILES += \
101 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
102 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
103
John Stultzd9b540e2021-07-02 20:20:37 +0000104#
105# Power HAL
106#
107PRODUCT_PACKAGES += \
108 android.hardware.power-service.example
109
110#
111# PowerStats HAL
112#
113PRODUCT_PACKAGES += \
114 android.hardware.power.stats-service.example
115
116
Amit Pundir4e375822019-04-18 16:46:10 +0530117# Audio
118PRODUCT_PACKAGES += \
John Stultzfb810a92021-07-01 22:06:21 +0000119 android.hardware.audio.service \
120 android.hardware.audio@7.0-impl \
121 android.hardware.audio.effect@7.0-impl \
Xin Lia55f3262021-08-18 08:00:09 +0000122 android.hardware.soundtrigger@2.3-impl \
John Stultz59657d52020-01-31 23:51:58 +0000123 android.hardware.bluetooth.audio@2.0-impl
Amit Pundir4e375822019-04-18 16:46:10 +0530124
125# Build default bluetooth a2dp and usb audio HALs
126PRODUCT_PACKAGES += \
127 audio.a2dp.default \
John Stultz59657d52020-01-31 23:51:58 +0000128 audio.bluetooth.default \
Amit Pundir4e375822019-04-18 16:46:10 +0530129 audio.usb.default \
130 audio.r_submix.default
131
132# Build tinyalsa cli tools for debugging
133PRODUCT_PACKAGES += \
134 tinyplay \
135 tinycap \
136 tinymix \
137 tinypcminfo
138
139# audio policy configuration
140USE_XML_AUDIO_POLICY_CONF := 1
141PRODUCT_COPY_FILES += \
Amit Pundire6732bb2020-09-28 12:43:59 +0530142 $(LOCAL_PATH)/etc/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
Amit Pundir4e375822019-04-18 16:46:10 +0530143 $(LOCAL_PATH)/etc/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
144 $(LOCAL_PATH)/etc/audio_policy_configuration_bluetooth_legacy_hal.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration_bluetooth_legacy_hal.xml \
145 frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
146 frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration.xml \
Amit Pundir456949d2020-02-18 22:44:16 +0530147 frameworks/av/services/audiopolicy/config/primary_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/primary_audio_policy_configuration.xml \
Amit Pundir4e375822019-04-18 16:46:10 +0530148 frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \
149 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
150 frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml \
151 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
152 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml
153
154# Copy media codecs config file
155PRODUCT_COPY_FILES += \
156 $(LOCAL_PATH)/etc/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
Amit Pundir456949d2020-02-18 22:44:16 +0530157 frameworks/av/media/libeffects/data/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
Amit Pundir4e375822019-04-18 16:46:10 +0530158 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \
159 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml
160
Amit Pundired6df0d2020-02-19 00:05:38 +0530161PRODUCT_COPY_FILES += \
Amit Pundir6d532ae2021-01-15 02:21:28 +0530162 $(LOCAL_PATH)/seccomp_policy/mediaswcodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
Amit Pundired6df0d2020-02-19 00:05:38 +0530163 $(LOCAL_PATH)/seccomp_policy/mediaswcodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaswcodec.policy
164
John Stultz365efe22020-09-23 02:09:15 +0000165# Copy hardware config file(s)
166PRODUCT_COPY_FILES += \
167 device/linaro/dragonboard/etc/permissions/android.software.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.xml
168
John Stultz1b1a81a2021-07-27 05:38:32 +0000169
170# External Web Cam support
171PRODUCT_PACKAGES += \
172 android.hardware.camera.provider@2.4-impl \
173 android.hardware.camera.provider@2.4-external-service
174
175PRODUCT_COPY_FILES += \
176 frameworks/native/data/etc/android.hardware.camera.front.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.front.xml \
177 $(LOCAL_PATH)/etc/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \
178 $(LOCAL_PATH)/etc/external_camera_config.xml:$(TARGET_COPY_OUT_VENDOR)/etc/external_camera_config.xml
179
Amit Pundir4e375822019-04-18 16:46:10 +0530180# Keymaster
181PRODUCT_PACKAGES += \
182 android.hardware.keymaster@3.0-impl \
183 android.hardware.keymaster@3.0-service
184
185# Gatekeeper
186PRODUCT_PACKAGES += \
187 android.hardware.gatekeeper@1.0-service.software
188
Amit Pundir6e0d4a32019-10-08 17:38:17 +0530189# Health
190PRODUCT_PACKAGES += \
Amit Pundir4bcec512021-03-10 17:53:38 +0530191 android.hardware.health@2.1-impl-cuttlefish \
192 android.hardware.health@2.1-service
Amit Pundir6e0d4a32019-10-08 17:38:17 +0530193
Amit Pundird3525fb2021-05-31 16:16:21 +0530194# TODO: disable this service once we implement system suspend
195PRODUCT_PACKAGES += \
196 suspend_blocker
197
Amit Pundired3f8212019-07-01 18:02:54 +0000198# mkbootimg host tool to build boot.img separately
199PRODUCT_HOST_PACKAGES := \
200 mkbootimg
201
Amit Pundir4e375822019-04-18 16:46:10 +0530202# Copy standard platform config files
203PRODUCT_COPY_FILES += \
204 $(LOCAL_PATH)/ueventd.common.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \
205 frameworks/native/data/etc/android.software.cts.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.cts.xml \
206 frameworks/native/data/etc/android.software.app_widgets.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.app_widgets.xml \
207 frameworks/native/data/etc/android.software.backup.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.backup.xml \
208 frameworks/native/data/etc/android.software.voice_recognizers.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.voice_recognizers.xml \
209 frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml \
Amit Pundir6e3b2bb2020-04-10 22:47:13 +0530210 frameworks/native/data/etc/android.software.print.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.print.xml \
Amit Pundir4e375822019-04-18 16:46:10 +0530211 frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
212 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
John Stultz845c78e2021-11-30 20:54:51 +0000213 frameworks/native/data/etc/android.software.opengles.deqp.level-2020-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.opengles.deqp.level.xml \
Amit Pundir4e375822019-04-18 16:46:10 +0530214 frameworks/native/data/etc/android.software.device_admin.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.device_admin.xml
Dan Willemsen181c24c2020-01-27 18:59:03 -0800215
216PRODUCT_SOONG_NAMESPACES += external/mesa3d