blob: f9962d4186a7f5fb3ed61984c8d2b1ca21b51f06 [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
17# Device overlay
18DEVICE_PACKAGE_OVERLAYS := $(LOCAL_PATH)/overlay
19
20# Build and run only ART
21PRODUCT_RUNTIMES := runtime_libart_default
22
23PRODUCT_SHIPPING_API_LEVEL := 29
24PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS := false
25
26# vndk
27PRODUCT_PACKAGES := vndk-sp
28
29# Dynamic partitions
30PRODUCT_BUILD_SUPER_PARTITION := true
31PRODUCT_USE_DYNAMIC_PARTITIONS := true
32PRODUCT_USE_DYNAMIC_PARTITION_SIZE := true
33
Amit Pundir4e375822019-04-18 16:46:10 +053034# HACK: Avoid usb crash
35PRODUCT_PRODUCT_PROPERTIES := \
36 persist.adb.nonblocking_ffs=0 \
37 ro.adb.nonblocking_ffs=0
38
39# Display
40PRODUCT_PACKAGES += \
41 android.hardware.drm@1.0-impl \
42 android.hardware.drm@1.0-service \
43 android.hardware.graphics.allocator@2.0-impl \
44 android.hardware.graphics.allocator@2.0-service \
45 android.hardware.graphics.composer@2.2-impl \
46 android.hardware.graphics.composer@2.2-service \
47 android.hardware.graphics.mapper@2.0-impl-2.1 \
48 gralloc.gbm \
49 hwcomposer.drm \
50 libGLES_mesa
51
52PRODUCT_PROPERTY_OVERRIDES += \
53 ro.hardware.gralloc=gbm \
54 ro.hardware.hwcomposer=drm \
55 debug.sf.no_hw_vsync=1 \
56 hwc.drm.use_framebuffer_target=1 \
57 hwc.drm.use_overlay_planes=0 \
58 ro.sf.lcd_density=160 \
59 ro.opengles.version=196608 \
60 persist.demo.rotationlock=1
61
62# Use Launcher3QuickStep
63PRODUCT_PACKAGES += Launcher3QuickStep
64
65# Enable WiFi
66PRODUCT_PACKAGES += \
67 hostapd \
68 libwpa_client \
69 wpa_supplicant \
70 wpa_supplicant.conf \
71 wificond \
72 wifilogd
73
74PRODUCT_PROPERTY_OVERRIDES += \
75 wifi.interface=wlan0 \
76 wifi.supplicant_scan_interval=15
77
78PRODUCT_COPY_FILES += \
79 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
80 frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
81 $(LOCAL_PATH)/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf \
82 $(LOCAL_PATH)/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf
83
84# Enable BT
85PRODUCT_PACKAGES += \
86 android.hardware.bluetooth@1.0-service.btlinux
87
88PRODUCT_COPY_FILES += \
89 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
90 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
91
92# Audio
93PRODUCT_PACKAGES += \
94 android.hardware.audio@4.0-impl:32 \
95 android.hardware.audio.effect@4.0-impl:32 \
96 android.hardware.audio@2.0-service \
97 android.hardware.soundtrigger@2.0-impl
98
99# Build default bluetooth a2dp and usb audio HALs
100PRODUCT_PACKAGES += \
101 audio.a2dp.default \
102 audio.usb.default \
103 audio.r_submix.default
104
105# Build tinyalsa cli tools for debugging
106PRODUCT_PACKAGES += \
107 tinyplay \
108 tinycap \
109 tinymix \
110 tinypcminfo
111
112# audio policy configuration
113USE_XML_AUDIO_POLICY_CONF := 1
114PRODUCT_COPY_FILES += \
115 $(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 \
117 frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
118 frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration.xml \
119 frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \
120 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
121 frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml \
122 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
123 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml
124
125# Copy media codecs config file
126PRODUCT_COPY_FILES += \
127 $(LOCAL_PATH)/etc/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
128 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
130
131# Memtrack
132PRODUCT_PACKAGES += \
133 memtrack.default \
134 android.hardware.memtrack@1.0-service \
135 android.hardware.memtrack@1.0-impl
136
137# Keymaster
138PRODUCT_PACKAGES += \
139 android.hardware.keymaster@3.0-impl \
140 android.hardware.keymaster@3.0-service
141
142# Gatekeeper
143PRODUCT_PACKAGES += \
144 android.hardware.gatekeeper@1.0-service.software
145
Amit Pundir6e0d4a32019-10-08 17:38:17 +0530146# Health
147PRODUCT_PACKAGES += \
148 android.hardware.health@2.0-service \
149 android.hardware.health@2.0-impl
150
Amit Pundired3f8212019-07-01 18:02:54 +0000151# mkbootimg host tool to build boot.img separately
152PRODUCT_HOST_PACKAGES := \
153 mkbootimg
154
Amit Pundir4e375822019-04-18 16:46:10 +0530155# Copy standard platform config files
156PRODUCT_COPY_FILES += \
157 $(LOCAL_PATH)/ueventd.common.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \
158 frameworks/native/data/etc/android.software.cts.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.cts.xml \
159 frameworks/native/data/etc/android.software.app_widgets.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.app_widgets.xml \
160 frameworks/native/data/etc/android.software.backup.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.backup.xml \
161 frameworks/native/data/etc/android.software.voice_recognizers.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.voice_recognizers.xml \
162 frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml \
163 frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
164 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
165 frameworks/native/data/etc/android.software.device_admin.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.device_admin.xml