blob: a5483feec13de0ecb07fac984fb52d2a10a32722 [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
John Stultz01b21fc2020-02-06 23:14:28 +000017# Enable updating of APEXes
18$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
19
Amit Pundirc738b812019-06-19 16:13:49 +053020# Device overlay
21DEVICE_PACKAGE_OVERLAYS := $(LOCAL_PATH)/overlay
22
23# Build and run only ART
24PRODUCT_RUNTIMES := runtime_libart_default
25
Amit Pundir276a0552019-11-23 22:27:15 +053026PRODUCT_SHIPPING_API_LEVEL := 29
27PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS := false
Amit Pundirc738b812019-06-19 16:13:49 +053028
John Stultzf8cd3942020-10-06 05:03:30 +000029# Enable Scoped Storage related
30$(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk)
31
Amit Pundirc738b812019-06-19 16:13:49 +053032# vndk
33PRODUCT_PACKAGES := vndk-sp
34
35# HACK: Avoid usb crash
36PRODUCT_PRODUCT_PROPERTIES := \
37 persist.adb.nonblocking_ffs=0 \
38 ro.adb.nonblocking_ffs=0
39
Amit Pundir276a0552019-11-23 22:27:15 +053040# Display
Amit Pundirc738b812019-06-19 16:13:49 +053041PRODUCT_PACKAGES += \
42 android.hardware.drm@1.0-impl \
43 android.hardware.drm@1.0-service \
44 android.hardware.graphics.allocator@2.0-impl \
45 android.hardware.graphics.allocator@2.0-service \
Amit Pundir276a0552019-11-23 22:27:15 +053046 android.hardware.graphics.composer@2.2-impl \
47 android.hardware.graphics.composer@2.2-service \
48 android.hardware.graphics.mapper@2.0-impl-2.1 \
Amit Pundirc738b812019-06-19 16:13:49 +053049 gralloc.gbm \
50 hwcomposer.drm \
51 libGLES_mesa
52
Amit Pundir276a0552019-11-23 22:27:15 +053053PRODUCT_PROPERTY_OVERRIDES += \
54 ro.hardware.gralloc=gbm \
55 ro.hardware.hwcomposer=drm \
56 debug.sf.no_hw_vsync=1 \
Amit Pundir289cca32020-09-13 21:53:52 +053057 ro.sf.lcd_density=400 \
Amit Pundir276a0552019-11-23 22:27:15 +053058 ro.opengles.version=196609
59
Amit Pundirc738b812019-06-19 16:13:49 +053060# Use Launcher3QuickStep
61PRODUCT_PACKAGES += Launcher3QuickStep
62
63# Enable WiFi
64PRODUCT_PACKAGES += \
Amit Pundirc738b812019-06-19 16:13:49 +053065 hostapd \
66 libwpa_client \
67 wpa_supplicant \
68 wpa_supplicant.conf \
Elliott Hughese3fd3df2020-11-06 14:25:45 -080069 wificond
Amit Pundirc738b812019-06-19 16:13:49 +053070
Amit Pundir276a0552019-11-23 22:27:15 +053071PRODUCT_PROPERTY_OVERRIDES += \
Amit Pundirc738b812019-06-19 16:13:49 +053072 wifi.interface=wlan0 \
73 wifi.supplicant_scan_interval=15
74
75PRODUCT_COPY_FILES += \
76 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
77 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 +053078 $(LOCAL_PATH)/etc/wifi/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf \
79 $(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 +053080
81# Enable BT
82PRODUCT_PACKAGES += \
Amit Pundir1addda62020-02-02 13:07:33 +053083 android.hardware.bluetooth@1.1-service.btlinux
Amit Pundirc738b812019-06-19 16:13:49 +053084
85PRODUCT_COPY_FILES += \
86 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
87 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
88
89# Audio
90PRODUCT_PACKAGES += \
John Stultz796f4c32021-07-01 22:06:21 +000091 android.hardware.audio.service \
92 android.hardware.audio@7.0-impl \
93 android.hardware.audio.effect@7.0-impl \
94 android.hardware.soundtrigger@2.2-impl \
Amit Pundira34e35c2020-02-18 22:44:16 +053095 android.hardware.bluetooth.audio@2.0-impl
Amit Pundirc738b812019-06-19 16:13:49 +053096
97# Build default bluetooth a2dp and usb audio HALs
98PRODUCT_PACKAGES += \
99 audio.a2dp.default \
Amit Pundira34e35c2020-02-18 22:44:16 +0530100 audio.bluetooth.default \
Amit Pundirc738b812019-06-19 16:13:49 +0530101 audio.usb.default \
102 audio.r_submix.default
103
104# Build tinyalsa cli tools for debugging
105PRODUCT_PACKAGES += \
106 tinyplay \
107 tinycap \
108 tinymix \
109 tinypcminfo
110
111# audio policy configuration
112USE_XML_AUDIO_POLICY_CONF := 1
113PRODUCT_COPY_FILES += \
Amit Pundirfec74f62020-09-28 12:43:59 +0530114 $(LOCAL_PATH)/etc/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml \
Amit Pundir276a0552019-11-23 22:27:15 +0530115 $(LOCAL_PATH)/etc/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
116 $(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 +0530117 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 +0530118 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 +0530119 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 +0530120 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 +0530121 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
122 frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml \
123 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
124 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml
125
126# Copy media codecs config file
127PRODUCT_COPY_FILES += \
Amit Pundir276a0552019-11-23 22:27:15 +0530128 $(LOCAL_PATH)/etc/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
Amit Pundir648e1d02020-02-18 22:44:16 +0530129 frameworks/av/media/libeffects/data/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
Amit Pundir276a0552019-11-23 22:27:15 +0530130 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \
131 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 +0530132
Amit Pundir95938b92020-02-19 00:05:38 +0530133PRODUCT_COPY_FILES += \
Amit Pundir544eb592021-01-15 02:21:28 +0530134 $(LOCAL_PATH)/seccomp_policy/mediaswcodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediacodec.policy \
Amit Pundir95938b92020-02-19 00:05:38 +0530135 $(LOCAL_PATH)/seccomp_policy/mediaswcodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaswcodec.policy
136
John Stultz2ad77222020-09-23 02:09:15 +0000137# Copy hardware config file(s)
138PRODUCT_COPY_FILES += \
139 device/linaro/dragonboard/etc/permissions/android.software.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.xml
140
Amit Pundirc738b812019-06-19 16:13:49 +0530141# Memtrack
142PRODUCT_PACKAGES += \
143 memtrack.default \
144 android.hardware.memtrack@1.0-service \
145 android.hardware.memtrack@1.0-impl
146
147# Keymaster
148PRODUCT_PACKAGES += \
149 android.hardware.keymaster@3.0-impl \
150 android.hardware.keymaster@3.0-service
151
Amit Pundir0e965952019-08-01 19:27:43 +0530152# Gatekeeper
153PRODUCT_PACKAGES += \
154 android.hardware.gatekeeper@1.0-service.software
155
Amit Pundir276a0552019-11-23 22:27:15 +0530156# Health
157PRODUCT_PACKAGES += \
Amit Pundirdb705ad2021-03-10 17:53:38 +0530158 android.hardware.health@2.1-impl-cuttlefish \
159 android.hardware.health@2.1-service
Amit Pundir276a0552019-11-23 22:27:15 +0530160
161# mkbootimg host tool to build boot.img separately
162PRODUCT_HOST_PACKAGES := \
163 mkbootimg
164
Amit Pundir4c517ea2021-05-23 02:24:19 +0530165# Lights
166PRODUCT_PACKAGES += \
167 android.hardware.light@2.0-impl \
168 android.hardware.light@2.0-service
169
Amit Pundirc738b812019-06-19 16:13:49 +0530170# Copy standard platform config files
171PRODUCT_COPY_FILES += \
Amit Pundir276a0552019-11-23 22:27:15 +0530172 $(LOCAL_PATH)/ueventd.common.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \
Amit Pundirc738b812019-06-19 16:13:49 +0530173 frameworks/native/data/etc/android.software.cts.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.cts.xml \
174 frameworks/native/data/etc/android.software.app_widgets.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.app_widgets.xml \
175 frameworks/native/data/etc/android.software.backup.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.backup.xml \
176 frameworks/native/data/etc/android.software.voice_recognizers.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.voice_recognizers.xml \
177 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 +0530178 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 +0530179 frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
180 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
181 frameworks/native/data/etc/android.software.device_admin.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.device_admin.xml
182
183# Copy firmware files
184$(call inherit-product-if-exists, $(LOCAL_PATH)/firmware/device.mk)
Dan Willemsen0e076d32020-01-27 18:59:03 -0800185
186PRODUCT_SOONG_NAMESPACES += external/mesa3d