blob: eccc912455143d5853b5bc38441a254512c44f41 [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
17# Device overlay
18DEVICE_PACKAGE_OVERLAYS := $(LOCAL_PATH)/overlay
19
20# Build and run only ART
21PRODUCT_RUNTIMES := runtime_libart_default
22
Amit Pundir276a0552019-11-23 22:27:15 +053023PRODUCT_SHIPPING_API_LEVEL := 29
24PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS := false
Amit Pundirc738b812019-06-19 16:13:49 +053025
26# vndk
27PRODUCT_PACKAGES := vndk-sp
28
29# HACK: Avoid usb crash
30PRODUCT_PRODUCT_PROPERTIES := \
31 persist.adb.nonblocking_ffs=0 \
32 ro.adb.nonblocking_ffs=0
33
Amit Pundir276a0552019-11-23 22:27:15 +053034# Display
Amit Pundirc738b812019-06-19 16:13:49 +053035PRODUCT_PACKAGES += \
36 android.hardware.drm@1.0-impl \
37 android.hardware.drm@1.0-service \
38 android.hardware.graphics.allocator@2.0-impl \
39 android.hardware.graphics.allocator@2.0-service \
Amit Pundir276a0552019-11-23 22:27:15 +053040 android.hardware.graphics.composer@2.2-impl \
41 android.hardware.graphics.composer@2.2-service \
42 android.hardware.graphics.mapper@2.0-impl-2.1 \
Amit Pundirc738b812019-06-19 16:13:49 +053043 gralloc.gbm \
44 hwcomposer.drm \
45 libGLES_mesa
46
Amit Pundir276a0552019-11-23 22:27:15 +053047PRODUCT_PROPERTY_OVERRIDES += \
48 ro.hardware.gralloc=gbm \
49 ro.hardware.hwcomposer=drm \
50 debug.sf.no_hw_vsync=1 \
51 hwc.drm.use_framebuffer_target=1 \
52 hwc.drm.use_overlay_planes=0 \
53 ro.opengles.version=196609
54
Amit Pundirc738b812019-06-19 16:13:49 +053055# Use Launcher3QuickStep
56PRODUCT_PACKAGES += Launcher3QuickStep
57
58# Enable WiFi
59PRODUCT_PACKAGES += \
Amit Pundirc738b812019-06-19 16:13:49 +053060 hostapd \
61 libwpa_client \
62 wpa_supplicant \
63 wpa_supplicant.conf \
64 wificond \
65 wifilogd
66
Amit Pundir276a0552019-11-23 22:27:15 +053067PRODUCT_PROPERTY_OVERRIDES += \
Amit Pundirc738b812019-06-19 16:13:49 +053068 wifi.interface=wlan0 \
69 wifi.supplicant_scan_interval=15
70
71PRODUCT_COPY_FILES += \
72 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
73 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 +053074 $(LOCAL_PATH)/etc/wifi/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf \
75 $(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 +053076
77# Enable BT
78PRODUCT_PACKAGES += \
Amit Pundir1addda62020-02-02 13:07:33 +053079 android.hardware.bluetooth@1.1-service.btlinux
Amit Pundirc738b812019-06-19 16:13:49 +053080
81PRODUCT_COPY_FILES += \
82 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
83 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
84
85# Audio
86PRODUCT_PACKAGES += \
87 android.hardware.audio@4.0-impl:32 \
88 android.hardware.audio.effect@4.0-impl:32 \
89 android.hardware.audio@2.0-service \
Amit Pundirc738b812019-06-19 16:13:49 +053090 android.hardware.soundtrigger@2.0-impl
91
92# Build default bluetooth a2dp and usb audio HALs
93PRODUCT_PACKAGES += \
94 audio.a2dp.default \
95 audio.usb.default \
96 audio.r_submix.default
97
98# Build tinyalsa cli tools for debugging
99PRODUCT_PACKAGES += \
100 tinyplay \
101 tinycap \
102 tinymix \
103 tinypcminfo
104
105# audio policy configuration
106USE_XML_AUDIO_POLICY_CONF := 1
107PRODUCT_COPY_FILES += \
Amit Pundir276a0552019-11-23 22:27:15 +0530108 $(LOCAL_PATH)/etc/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
109 $(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 +0530110 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 +0530111 frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration.xml \
112 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 +0530113 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
114 frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml \
115 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
116 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml
117
118# Copy media codecs config file
119PRODUCT_COPY_FILES += \
Amit Pundir276a0552019-11-23 22:27:15 +0530120 $(LOCAL_PATH)/etc/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
121 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \
122 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 +0530123
124# Memtrack
125PRODUCT_PACKAGES += \
126 memtrack.default \
127 android.hardware.memtrack@1.0-service \
128 android.hardware.memtrack@1.0-impl
129
130# Keymaster
131PRODUCT_PACKAGES += \
132 android.hardware.keymaster@3.0-impl \
133 android.hardware.keymaster@3.0-service
134
Amit Pundir0e965952019-08-01 19:27:43 +0530135# Gatekeeper
136PRODUCT_PACKAGES += \
137 android.hardware.gatekeeper@1.0-service.software
138
Amit Pundir276a0552019-11-23 22:27:15 +0530139# Health
140PRODUCT_PACKAGES += \
141 android.hardware.health@2.0-service \
142 android.hardware.health@2.0-impl
143
144# mkbootimg host tool to build boot.img separately
145PRODUCT_HOST_PACKAGES := \
146 mkbootimg
147
Amit Pundirc738b812019-06-19 16:13:49 +0530148# Copy standard platform config files
149PRODUCT_COPY_FILES += \
Amit Pundir276a0552019-11-23 22:27:15 +0530150 $(LOCAL_PATH)/ueventd.common.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \
Amit Pundirc738b812019-06-19 16:13:49 +0530151 frameworks/native/data/etc/android.software.cts.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.cts.xml \
152 frameworks/native/data/etc/android.software.app_widgets.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.app_widgets.xml \
153 frameworks/native/data/etc/android.software.backup.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.backup.xml \
154 frameworks/native/data/etc/android.software.voice_recognizers.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.voice_recognizers.xml \
155 frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml \
156 frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
157 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
158 frameworks/native/data/etc/android.software.device_admin.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.device_admin.xml
159
160# Copy firmware files
161$(call inherit-product-if-exists, $(LOCAL_PATH)/firmware/device.mk)