blob: 4f86c3a6137e1b52771cc46cd390f8e3780e95e8 [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
23PRODUCT_SHIPPING_API_LEVEL := 25
24
25# Enable Treble
26PRODUCT_FULL_TREBLE_OVERRIDE := true
27
28# vndk
29PRODUCT_PACKAGES := vndk-sp
30
31# HACK: Avoid usb crash
32PRODUCT_PRODUCT_PROPERTIES := \
33 persist.adb.nonblocking_ffs=0 \
34 ro.adb.nonblocking_ffs=0
35
36# DRM
37PRODUCT_PACKAGES += \
38 android.hardware.drm@1.0-impl \
39 android.hardware.drm@1.0-service \
40 android.hardware.graphics.allocator@2.0-impl \
41 android.hardware.graphics.allocator@2.0-service \
42 android.hardware.graphics.composer@2.1-impl \
43 android.hardware.graphics.composer@2.1-service \
44 android.hardware.graphics.mapper@2.0-impl \
45 android.hardware.graphics.mapper@2.0-service \
46 gralloc.gbm \
47 hwcomposer.drm \
48 libGLES_mesa
49
50# Use Launcher3QuickStep
51PRODUCT_PACKAGES += Launcher3QuickStep
52
53# Enable WiFi
54PRODUCT_PACKAGES += \
55 android.hardware.wifi@1.0-service \
56 android.hardware.wifi.supplicant@1.0 \
57 hostapd \
58 libwpa_client \
59 wpa_supplicant \
60 wpa_supplicant.conf \
61 wificond \
62 wifilogd
63
64PRODUCT_PROPERTY_OVERRIDES := \
65 wifi.interface=wlan0 \
66 wifi.supplicant_scan_interval=15
67
68PRODUCT_COPY_FILES += \
69 frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
70 frameworks/native/data/etc/android.hardware.wifi.direct.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.direct.xml \
71 $(LOCAL_PATH)/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf \
72 $(LOCAL_PATH)/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf
73
74# Enable BT
75PRODUCT_PACKAGES += \
76 android.hardware.bluetooth@1.0-service.btlinux
77
78PRODUCT_COPY_FILES += \
79 frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml \
80 frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml
81
82# Audio
83PRODUCT_PACKAGES += \
84 android.hardware.audio@4.0-impl:32 \
85 android.hardware.audio.effect@4.0-impl:32 \
86 android.hardware.audio@2.0-service \
87 android.hardware.broadcastradio@1.0-impl \
88 android.hardware.soundtrigger@2.0-impl
89
90# Build default bluetooth a2dp and usb audio HALs
91PRODUCT_PACKAGES += \
92 audio.a2dp.default \
93 audio.usb.default \
94 audio.r_submix.default
95
96# Build tinyalsa cli tools for debugging
97PRODUCT_PACKAGES += \
98 tinyplay \
99 tinycap \
100 tinymix \
101 tinypcminfo
102
103# audio policy configuration
104USE_XML_AUDIO_POLICY_CONF := 1
105PRODUCT_COPY_FILES += \
106 device/linaro/hikey/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
107 frameworks/av/services/audiopolicy/config/a2dp_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/a2dp_audio_policy_configuration.xml \
108 frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml \
109 frameworks/av/services/audiopolicy/config/usb_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/usb_audio_policy_configuration.xml \
110 frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
111 frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml
112
113# Copy media codecs config file
114PRODUCT_COPY_FILES += \
115 $(LOCAL_PATH)/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
116 frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \
117 frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml
118
119# Memtrack
120PRODUCT_PACKAGES += \
121 memtrack.default \
122 android.hardware.memtrack@1.0-service \
123 android.hardware.memtrack@1.0-impl
124
125# Keymaster
126PRODUCT_PACKAGES += \
127 android.hardware.keymaster@3.0-impl \
128 android.hardware.keymaster@3.0-service
129
Amit Pundir0e965952019-08-01 19:27:43 +0530130# Gatekeeper
131PRODUCT_PACKAGES += \
132 android.hardware.gatekeeper@1.0-service.software
133
Amit Pundirc738b812019-06-19 16:13:49 +0530134# Copy standard platform config files
135PRODUCT_COPY_FILES += \
136 device/linaro/hikey/etc/permissions/android.hardware.screen.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.screen.xml \
137 frameworks/native/data/etc/android.software.cts.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.cts.xml \
138 frameworks/native/data/etc/android.software.app_widgets.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.app_widgets.xml \
139 frameworks/native/data/etc/android.software.backup.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.backup.xml \
140 frameworks/native/data/etc/android.software.voice_recognizers.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.voice_recognizers.xml \
141 frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml \
142 frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
143 frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
144 frameworks/native/data/etc/android.software.device_admin.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.device_admin.xml
145
146# Copy firmware files
147$(call inherit-product-if-exists, $(LOCAL_PATH)/firmware/device.mk)