blob: 91f07cc6668ae2c81ebfaa6b3b18376396fbaec9 [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
34# copied from crosshatch
35# Set lmkd options
36PRODUCT_SYSTEM_DEFAULT_PROPERTIES := \
37 ro.lmk.low=1001 \
38 ro.lmk.medium=800 \
39 ro.lmk.critical=0 \
40 ro.lmk.critical_upgrade=false \
41 ro.lmk.upgrade_pressure=100 \
42 ro.lmk.downgrade_pressure=100 \
43 ro.lmk.kill_heaviest_task=true \
44 ro.lmk.kill_timeout_ms=100 \
45 ro.lmk.use_minfree_levels=true \
46
47# HACK: Avoid usb crash
48PRODUCT_PRODUCT_PROPERTIES := \
49 persist.adb.nonblocking_ffs=0 \
50 ro.adb.nonblocking_ffs=0
51
52# Display
53PRODUCT_PACKAGES += \
54 android.hardware.drm@1.0-impl \
55 android.hardware.drm@1.0-service \
56 android.hardware.graphics.allocator@2.0-impl \
57 android.hardware.graphics.allocator@2.0-service \
58 android.hardware.graphics.composer@2.2-impl \
59 android.hardware.graphics.composer@2.2-service \
60 android.hardware.graphics.mapper@2.0-impl-2.1 \
61 gralloc.gbm \
62 hwcomposer.drm \
63 libGLES_mesa
64
65PRODUCT_PROPERTY_OVERRIDES += \
66 ro.hardware.gralloc=gbm \
67 ro.hardware.hwcomposer=drm \
68 debug.sf.no_hw_vsync=1 \
69 hwc.drm.use_framebuffer_target=1 \
70 hwc.drm.use_overlay_planes=0 \
71 ro.sf.lcd_density=160 \
72 ro.opengles.version=196608 \
73 persist.demo.rotationlock=1
74
75# Use Launcher3QuickStep
76PRODUCT_PACKAGES += Launcher3QuickStep
77
78# Enable WiFi
79PRODUCT_PACKAGES += \
80 hostapd \
81 libwpa_client \
82 wpa_supplicant \
83 wpa_supplicant.conf \
84 wificond \
85 wifilogd
86
87PRODUCT_PROPERTY_OVERRIDES += \
88 wifi.interface=wlan0 \
89 wifi.supplicant_scan_interval=15
90
91PRODUCT_COPY_FILES += \
92 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
93 frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
94 $(LOCAL_PATH)/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf \
95 $(LOCAL_PATH)/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf
96
97# Enable BT
98PRODUCT_PACKAGES += \
99 android.hardware.bluetooth@1.0-service.btlinux
100
101PRODUCT_COPY_FILES += \
102 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
103 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
104
105# Audio
106PRODUCT_PACKAGES += \
107 android.hardware.audio@4.0-impl:32 \
108 android.hardware.audio.effect@4.0-impl:32 \
109 android.hardware.audio@2.0-service \
110 android.hardware.soundtrigger@2.0-impl
111
112# Build default bluetooth a2dp and usb audio HALs
113PRODUCT_PACKAGES += \
114 audio.a2dp.default \
115 audio.usb.default \
116 audio.r_submix.default
117
118# Build tinyalsa cli tools for debugging
119PRODUCT_PACKAGES += \
120 tinyplay \
121 tinycap \
122 tinymix \
123 tinypcminfo
124
125# audio policy configuration
126USE_XML_AUDIO_POLICY_CONF := 1
127PRODUCT_COPY_FILES += \
128 $(LOCAL_PATH)/etc/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
129 $(LOCAL_PATH)/etc/audio_policy_configuration_bluetooth_legacy_hal.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration_bluetooth_legacy_hal.xml \
130 frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
131 frameworks/av/services/audiopolicy/config/a2dp_in_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_in_audio_policy_configuration.xml \
132 frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \
133 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
134 frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml \
135 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
136 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml
137
138# Copy media codecs config file
139PRODUCT_COPY_FILES += \
140 $(LOCAL_PATH)/etc/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
141 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \
142 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml
143
144# Memtrack
145PRODUCT_PACKAGES += \
146 memtrack.default \
147 android.hardware.memtrack@1.0-service \
148 android.hardware.memtrack@1.0-impl
149
150# Keymaster
151PRODUCT_PACKAGES += \
152 android.hardware.keymaster@3.0-impl \
153 android.hardware.keymaster@3.0-service
154
155# Gatekeeper
156PRODUCT_PACKAGES += \
157 android.hardware.gatekeeper@1.0-service.software
158
159# Copy standard platform config files
160PRODUCT_COPY_FILES += \
161 $(LOCAL_PATH)/ueventd.common.rc:$(TARGET_COPY_OUT_VENDOR)/ueventd.rc \
162 frameworks/native/data/etc/android.software.cts.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.cts.xml \
163 frameworks/native/data/etc/android.software.app_widgets.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.app_widgets.xml \
164 frameworks/native/data/etc/android.software.backup.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.backup.xml \
165 frameworks/native/data/etc/android.software.voice_recognizers.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.voice_recognizers.xml \
166 frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml \
167 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