blob: a8267cae1ac3140058c09a2204861997a908e511 [file] [log] [blame]
Amit Pundirc738b812019-06-19 16:13:49 +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
Amit Pundir298ae952022-01-24 01:03:37 +053017# copied from crosshatch
18# setup dalvik vm configs
19$(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk)
20
John Stultz01b21fc2020-02-06 23:14:28 +000021# Enable updating of APEXes
22$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
23
Amit Pundirc738b812019-06-19 16:13:49 +053024# Device overlay
25DEVICE_PACKAGE_OVERLAYS := $(LOCAL_PATH)/overlay
26
27# Build and run only ART
28PRODUCT_RUNTIMES := runtime_libart_default
29
Amit Pundir276a0552019-11-23 22:27:15 +053030PRODUCT_SHIPPING_API_LEVEL := 29
31PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS := false
Amit Pundirc738b812019-06-19 16:13:49 +053032
John Stultzf8cd3942020-10-06 05:03:30 +000033# Enable Scoped Storage related
34$(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk)
35
Amit Pundirc738b812019-06-19 16:13:49 +053036# vndk
37PRODUCT_PACKAGES := vndk-sp
38
39# HACK: Avoid usb crash
40PRODUCT_PRODUCT_PROPERTIES := \
41 persist.adb.nonblocking_ffs=0 \
42 ro.adb.nonblocking_ffs=0
43
Amit Pundir276a0552019-11-23 22:27:15 +053044# Display
Amit Pundirc738b812019-06-19 16:13:49 +053045PRODUCT_PACKAGES += \
46 android.hardware.drm@1.0-impl \
47 android.hardware.drm@1.0-service \
Amit Pundirc738b812019-06-19 16:13:49 +053048 libGLES_mesa
49
Amit Pundir276a0552019-11-23 22:27:15 +053050PRODUCT_PROPERTY_OVERRIDES += \
John Stultzf1cee112020-09-18 20:54:06 +000051 ro.hardware.gralloc=minigbm_msm \
Amit Pundir276a0552019-11-23 22:27:15 +053052 ro.hardware.hwcomposer=drm \
53 debug.sf.no_hw_vsync=1 \
Amit Pundir289cca32020-09-13 21:53:52 +053054 ro.sf.lcd_density=400 \
Amit Pundir276a0552019-11-23 22:27:15 +053055 ro.opengles.version=196609
56
John Stultzf1cee112020-09-18 20:54:06 +000057#
58# Hardware Composer HAL
59#
60PRODUCT_PACKAGES += \
61 hwcomposer.drm \
62 android.hardware.graphics.composer@2.3-impl \
63 android.hardware.graphics.composer@2.3-service
64
65#
66# Gralloc HAL
67#
68PRODUCT_PACKAGES += \
69 gralloc.minigbm_msm \
70 android.hardware.graphics.allocator@4.0-service.minigbm_msm \
71 android.hardware.graphics.mapper@4.0-impl.minigbm_msm
72
Amit Pundirc738b812019-06-19 16:13:49 +053073# Use Launcher3QuickStep
74PRODUCT_PACKAGES += Launcher3QuickStep
75
76# Enable WiFi
77PRODUCT_PACKAGES += \
Amit Pundirc738b812019-06-19 16:13:49 +053078 hostapd \
79 libwpa_client \
80 wpa_supplicant \
81 wpa_supplicant.conf \
Elliott Hughese3fd3df2020-11-06 14:25:45 -080082 wificond
Amit Pundirc738b812019-06-19 16:13:49 +053083
Amit Pundir298ae952022-01-24 01:03:37 +053084PRODUCT_PACKAGES += \
85 pd-mapper \
86 qrtr-ns \
87 qrtr-cfg \
88 qrtr-lookup \
89 rmtfs \
90 tqftpserv
91
92PRODUCT_COPY_FILES += \
93 $(LOCAL_PATH)/qcom/init.qcom.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.qcom.rc
94
Amit Pundir276a0552019-11-23 22:27:15 +053095PRODUCT_PROPERTY_OVERRIDES += \
Amit Pundirc738b812019-06-19 16:13:49 +053096 wifi.interface=wlan0 \
97 wifi.supplicant_scan_interval=15
98
99PRODUCT_COPY_FILES += \
100 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
101 frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
Amit Pundir276a0552019-11-23 22:27:15 +0530102 $(LOCAL_PATH)/etc/wifi/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf \
103 $(LOCAL_PATH)/etc/wifi/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf
Amit Pundirc738b812019-06-19 16:13:49 +0530104
105# Enable BT
106PRODUCT_PACKAGES += \
Amit Pundir1addda62020-02-02 13:07:33 +0530107 android.hardware.bluetooth@1.1-service.btlinux
Amit Pundirc738b812019-06-19 16:13:49 +0530108
109PRODUCT_COPY_FILES += \
110 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
111 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
112
113# Audio
114PRODUCT_PACKAGES += \
John Stultz796f4c32021-07-01 22:06:21 +0000115 android.hardware.audio.service \
116 android.hardware.audio@7.0-impl \
117 android.hardware.audio.effect@7.0-impl \
118 android.hardware.soundtrigger@2.2-impl \
Amit Pundira34e35c2020-02-18 22:44:16 +0530119 android.hardware.bluetooth.audio@2.0-impl
Amit Pundirc738b812019-06-19 16:13:49 +0530120
121# Build default bluetooth a2dp and usb audio HALs
122PRODUCT_PACKAGES += \
123 audio.a2dp.default \
Amit Pundira34e35c2020-02-18 22:44:16 +0530124 audio.bluetooth.default \
Amit Pundirc738b812019-06-19 16:13:49 +0530125 audio.usb.default \
126 audio.r_submix.default
127
128# Build tinyalsa cli tools for debugging
129PRODUCT_PACKAGES += \
Caleb Connollyd3e01642021-10-29 21:17:02 +0100130 tinyplay2 \
131 tinycap2 \
132 tinymix2 \
133 tinypcminfo2
Amit Pundirc738b812019-06-19 16:13:49 +0530134
135# audio policy configuration
136USE_XML_AUDIO_POLICY_CONF := 1
137PRODUCT_COPY_FILES += \
Amit Pundir276a0552019-11-23 22:27:15 +0530138 $(LOCAL_PATH)/etc/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
139 $(LOCAL_PATH)/etc/audio_policy_configuration_bluetooth_legacy_hal.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration_bluetooth_legacy_hal.xml \
Amit Pundirc738b812019-06-19 16:13:49 +0530140 frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
Amit Pundir276a0552019-11-23 22:27:15 +0530141 frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration.xml \
Amit Pundir648e1d02020-02-18 22:44:16 +0530142 frameworks/av/services/audiopolicy/config/primary_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/primary_audio_policy_configuration.xml \
Amit Pundir276a0552019-11-23 22:27:15 +0530143 frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \
Amit Pundirc738b812019-06-19 16:13:49 +0530144 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
145 frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml \
146 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
147 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml
148
149# Copy media codecs config file
150PRODUCT_COPY_FILES += \
Amit Pundir276a0552019-11-23 22:27:15 +0530151 $(LOCAL_PATH)/etc/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
Amit Pundir648e1d02020-02-18 22:44:16 +0530152 frameworks/av/media/libeffects/data/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
Amit Pundir276a0552019-11-23 22:27:15 +0530153 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \
154 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml
Amit Pundirc738b812019-06-19 16:13:49 +0530155
Amit Pundir95938b92020-02-19 00:05:38 +0530156PRODUCT_COPY_FILES += \
Amit Pundir544eb592021-01-15 02:21:28 +0530157 $(LOCAL_PATH)/seccomp_policy/mediaswcodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
Amit Pundir95938b92020-02-19 00:05:38 +0530158 $(LOCAL_PATH)/seccomp_policy/mediaswcodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaswcodec.policy
159
John Stultz2ad77222020-09-23 02:09:15 +0000160# Copy hardware config file(s)
161PRODUCT_COPY_FILES += \
162 device/linaro/dragonboard/etc/permissions/android.software.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.xml
163
Amit Pundirc738b812019-06-19 16:13:49 +0530164# Memtrack
Caleb Connolly4e612832021-10-29 20:38:24 +0100165# PRODUCT_PACKAGES += \
166# memtrack.default \
167# android.hardware.memtrack@1.0-service \
168# android.hardware.memtrack@1.0-impl
Amit Pundirc738b812019-06-19 16:13:49 +0530169
170# Keymaster
171PRODUCT_PACKAGES += \
172 android.hardware.keymaster@3.0-impl \
173 android.hardware.keymaster@3.0-service
174
Amit Pundir0e965952019-08-01 19:27:43 +0530175# Gatekeeper
176PRODUCT_PACKAGES += \
177 android.hardware.gatekeeper@1.0-service.software
178
Amit Pundir276a0552019-11-23 22:27:15 +0530179# Health
180PRODUCT_PACKAGES += \
Caleb Connollyae389bf2021-11-17 22:48:27 +0000181 android.hardware.health@2.1-service \
Caleb Connollyc28a5e32021-11-26 14:13:35 +0000182 android.hardware.health@2.1-impl-gsdm845 \ # Passthrough implementation
Caleb Connolly873a9f22021-11-19 16:58:56 +0000183
184# Cuttlefish health
185# PRODUCT_PACKAGES += \
186# android.hardware.health@2.1-impl-cuttlefish \
187# android.hardware.health@2.1-service
Amit Pundir276a0552019-11-23 22:27:15 +0530188
189# mkbootimg host tool to build boot.img separately
190PRODUCT_HOST_PACKAGES := \
191 mkbootimg
192
Amit Pundir4c517ea2021-05-23 02:24:19 +0530193# Lights
194PRODUCT_PACKAGES += \
195 android.hardware.light@2.0-impl \
196 android.hardware.light@2.0-service
197
Caleb Connollyc445fab2021-08-11 14:42:57 +0100198# Haptics
Caleb Connolly9cf6ac12021-10-29 20:36:23 +0100199PRODUCT_PACKAGES += \
Caleb Connolly587ceef2021-11-20 05:43:06 +0000200 android.hardware.vibrator@1.1-service.ff
Caleb Connollyc445fab2021-08-11 14:42:57 +0100201
Amit Pundirc738b812019-06-19 16:13:49 +0530202# Copy standard platform config files
203PRODUCT_COPY_FILES += \
Amit Pundir276a0552019-11-23 22:27:15 +0530204 $(LOCAL_PATH)/ueventd.common.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \
Amit Pundirc738b812019-06-19 16:13:49 +0530205 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 Pundir060c8d32020-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 Pundirc738b812019-06-19 16:13:49 +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 \
213 frameworks/native/data/etc/android.software.device_admin.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.device_admin.xml
214
215# Copy firmware files
216$(call inherit-product-if-exists, $(LOCAL_PATH)/firmware/device.mk)
Dan Willemsen0e076d32020-01-27 18:59:03 -0800217
Amit Pundir298ae952022-01-24 01:03:37 +0530218PRODUCT_SOONG_NAMESPACES += \
219 device/generic/sdm845 \
220 external/mesa3d