blob: feccdf007a17530dde66f6176311ded1802d9645 [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
29# vndk
30PRODUCT_PACKAGES := vndk-sp
31
32# HACK: Avoid usb crash
33PRODUCT_PRODUCT_PROPERTIES := \
34 persist.adb.nonblocking_ffs=0 \
35 ro.adb.nonblocking_ffs=0
36
Amit Pundir276a0552019-11-23 22:27:15 +053037# Display
Amit Pundirc738b812019-06-19 16:13:49 +053038PRODUCT_PACKAGES += \
39 android.hardware.drm@1.0-impl \
40 android.hardware.drm@1.0-service \
41 android.hardware.graphics.allocator@2.0-impl \
42 android.hardware.graphics.allocator@2.0-service \
Amit Pundir276a0552019-11-23 22:27:15 +053043 android.hardware.graphics.composer@2.2-impl \
44 android.hardware.graphics.composer@2.2-service \
45 android.hardware.graphics.mapper@2.0-impl-2.1 \
Amit Pundirc738b812019-06-19 16:13:49 +053046 gralloc.gbm \
47 hwcomposer.drm \
48 libGLES_mesa
49
Amit Pundir276a0552019-11-23 22:27:15 +053050PRODUCT_PROPERTY_OVERRIDES += \
51 ro.hardware.gralloc=gbm \
52 ro.hardware.hwcomposer=drm \
53 debug.sf.no_hw_vsync=1 \
54 hwc.drm.use_framebuffer_target=1 \
55 hwc.drm.use_overlay_planes=0 \
56 ro.opengles.version=196609
57
Amit Pundirc738b812019-06-19 16:13:49 +053058# Use Launcher3QuickStep
59PRODUCT_PACKAGES += Launcher3QuickStep
60
61# Enable WiFi
62PRODUCT_PACKAGES += \
Amit Pundirc738b812019-06-19 16:13:49 +053063 hostapd \
64 libwpa_client \
65 wpa_supplicant \
66 wpa_supplicant.conf \
67 wificond \
68 wifilogd
69
Amit Pundir276a0552019-11-23 22:27:15 +053070PRODUCT_PROPERTY_OVERRIDES += \
Amit Pundirc738b812019-06-19 16:13:49 +053071 wifi.interface=wlan0 \
72 wifi.supplicant_scan_interval=15
73
74PRODUCT_COPY_FILES += \
75 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
76 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 +053077 $(LOCAL_PATH)/etc/wifi/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf \
78 $(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 +053079
80# Enable BT
81PRODUCT_PACKAGES += \
Amit Pundir1addda62020-02-02 13:07:33 +053082 android.hardware.bluetooth@1.1-service.btlinux
Amit Pundirc738b812019-06-19 16:13:49 +053083
84PRODUCT_COPY_FILES += \
85 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
86 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
87
88# Audio
89PRODUCT_PACKAGES += \
90 android.hardware.audio@4.0-impl:32 \
91 android.hardware.audio.effect@4.0-impl:32 \
92 android.hardware.audio@2.0-service \
Amit Pundira34e35c2020-02-18 22:44:16 +053093 android.hardware.soundtrigger@2.0-impl \
94 android.hardware.bluetooth.audio@2.0-impl
Amit Pundirc738b812019-06-19 16:13:49 +053095
96# Build default bluetooth a2dp and usb audio HALs
97PRODUCT_PACKAGES += \
98 audio.a2dp.default \
Amit Pundira34e35c2020-02-18 22:44:16 +053099 audio.bluetooth.default \
Amit Pundirc738b812019-06-19 16:13:49 +0530100 audio.usb.default \
101 audio.r_submix.default
102
103# Build tinyalsa cli tools for debugging
104PRODUCT_PACKAGES += \
105 tinyplay \
106 tinycap \
107 tinymix \
108 tinypcminfo
109
110# audio policy configuration
111USE_XML_AUDIO_POLICY_CONF := 1
112PRODUCT_COPY_FILES += \
Amit Pundir276a0552019-11-23 22:27:15 +0530113 $(LOCAL_PATH)/etc/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
114 $(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 +0530115 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 +0530116 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 +0530117 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 +0530118 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 +0530119 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
120 frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml \
121 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
122 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml
123
124# Copy media codecs config file
125PRODUCT_COPY_FILES += \
Amit Pundir276a0552019-11-23 22:27:15 +0530126 $(LOCAL_PATH)/etc/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
Amit Pundir648e1d02020-02-18 22:44:16 +0530127 frameworks/av/media/libeffects/data/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
Amit Pundir276a0552019-11-23 22:27:15 +0530128 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \
129 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 +0530130
Amit Pundir95938b92020-02-19 00:05:38 +0530131PRODUCT_COPY_FILES += \
132 $(LOCAL_PATH)/seccomp_policy/mediaswcodec.policy:$(TARGET_COPY_OUT_VENDOR)/etc/seccomp_policy/mediaswcodec.policy
133
Amit Pundirc738b812019-06-19 16:13:49 +0530134# Memtrack
135PRODUCT_PACKAGES += \
136 memtrack.default \
137 android.hardware.memtrack@1.0-service \
138 android.hardware.memtrack@1.0-impl
139
140# Keymaster
141PRODUCT_PACKAGES += \
142 android.hardware.keymaster@3.0-impl \
143 android.hardware.keymaster@3.0-service
144
Amit Pundir0e965952019-08-01 19:27:43 +0530145# Gatekeeper
146PRODUCT_PACKAGES += \
147 android.hardware.gatekeeper@1.0-service.software
148
Amit Pundir276a0552019-11-23 22:27:15 +0530149# Health
150PRODUCT_PACKAGES += \
151 android.hardware.health@2.0-service \
152 android.hardware.health@2.0-impl
153
154# mkbootimg host tool to build boot.img separately
155PRODUCT_HOST_PACKAGES := \
156 mkbootimg
157
Amit Pundirc738b812019-06-19 16:13:49 +0530158# Copy standard platform config files
159PRODUCT_COPY_FILES += \
Amit Pundir276a0552019-11-23 22:27:15 +0530160 $(LOCAL_PATH)/ueventd.common.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \
Amit Pundirc738b812019-06-19 16:13:49 +0530161 frameworks/native/data/etc/android.software.cts.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.cts.xml \
162 frameworks/native/data/etc/android.software.app_widgets.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.app_widgets.xml \
163 frameworks/native/data/etc/android.software.backup.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.backup.xml \
164 frameworks/native/data/etc/android.software.voice_recognizers.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.voice_recognizers.xml \
165 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 +0530166 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 +0530167 frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
168 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
169 frameworks/native/data/etc/android.software.device_admin.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.device_admin.xml
170
171# Copy firmware files
172$(call inherit-product-if-exists, $(LOCAL_PATH)/firmware/device.mk)
Dan Willemsen0e076d32020-01-27 18:59:03 -0800173
174PRODUCT_SOONG_NAMESPACES += external/mesa3d