forked from xen-troops/android_device_xenvm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevice.mk
279 lines (220 loc) · 10.9 KB
/
device.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
#
# Copyright (C) 2016 The Android Open-Source Project
# Copyright (C) 2018 EPAM Systems Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
$(call inherit-product, build/target/product/core_64_bit.mk)
$(call inherit-product, frameworks/native/build/tablet-10in-xhdpi-2048-dalvik-heap.mk)
$(call inherit-product, packages/services/Car/car_product/build/car.mk)
PRODUCT_SHIPPING_API_LEVEL := 29
PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS := false
PRODUCT_USE_VNDK = true
PRODUCT_FULL_TREBLE_OVERRIDE := true
# Add preffered configurations
PRODUCT_AAPT_CONFIG := normal large xlarge hdpi xhdpi
PRODUCT_AAPT_PREF_CONFIG := hdpi
# The default locale should be determined from VPD, not from build.prop.
PRODUCT_SYSTEM_PROPERTY_BLACKLIST := ro.product.locale
# Use Sdcardfs
PRODUCT_PROPERTY_OVERRIDES += ro.sys.sdcardfs=1
# Configure ADB for network connections
PRODUCT_PROPERTY_OVERRIDES += service.adb.tcp.port=5555
PRODUCT_PROPERTY_OVERRIDES += \
ro.opengles.version=196609 \
ro.radio.noril=true \
ro.carrier=unknown
PRODUCT_PROPERTY_OVERRIDES += ro.sf.lcd_density=160
PRODUCT_TAGS += dalvik.gc.type-precise
# Use audio_policy_configuration.xml
USE_XML_AUDIO_POLICY_CONF := 1
# Software permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.software.activities_on_secondary_displays.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.activities_on_secondary_displays.xml \
frameworks/native/data/etc/android.software.app_widgets.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.app_widgets.xml \
frameworks/native/data/etc/android.software.autofill.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.autofill.xml \
frameworks/native/data/etc/android.software.backup.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.backup.xml \
frameworks/native/data/etc/android.software.connectionservice.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.connectionservice.xml \
frameworks/native/data/etc/android.software.device_admin.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.device_admin.xml \
frameworks/native/data/etc/android.software.freeform_window_management.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.freeform_window_management.xml \
frameworks/native/data/etc/android.software.managed_users.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.managed_users.xml \
frameworks/native/data/etc/android.software.picture_in_picture.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.picture_in_picture.xml \
frameworks/native/data/etc/android.software.secure_lock_screen.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.secure_lock_screen.xml \
frameworks/native/data/etc/android.software.voice_recognizers.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.voice_recognizers.xml \
frameworks/native/data/etc/android.software.webview.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.webview.xml \
# Hardware permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/car_core_hardware.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/car_core_hardware.xml \
frameworks/native/data/etc/android.hardware.ethernet.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.ethernet.xml \
frameworks/native/data/etc/android.hardware.location.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.xml \
frameworks/native/data/etc/android.hardware.location.gps.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.location.gps.xml \
frameworks/native/data/etc/android.hardware.screen.landscape.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.screen.landscape.xml \
frameworks/native/data/etc/android.hardware.touchscreen.multitouch.jazzhand.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.touchscreen.multitouch.jazzhand.xml \
frameworks/native/data/etc/android.hardware.type.automotive.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.type.automotive.xml \
frameworks/native/data/etc/android.hardware.usb.accessory.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.accessory.xml \
frameworks/native/data/etc/android.hardware.usb.host.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.usb.host.xml \
frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \
# DRM HAL
$(call inherit-product, hardware/interfaces/drm/1.0/default/common_default_service.mk)
# Manifest
PRODUCT_COPY_FILES += \
device/xen/xenvm/manifest.xml:$(TARGET_COPY_OUT_VENDOR)/manifest.xml
# Init rc
PRODUCT_COPY_FILES +=\
device/xen/xenvm/init.xenvm.rc:root/init.xenvm.rc \
device/xen/xenvm/ueventd.xenvm.rc:root/ueventd.xenvm.rc \
packages/services/Car/car_product/init/init.car.rc:root/init.car.rc \
packages/services/Car/car_product/init/init.bootstat.rc:root/init.bootstat.rc
# Mount points
ifeq ($(ENABLE_AVB),true)
PRODUCT_COPY_FILES += \
device/xen/xenvm/fstab.xenvm.avb:root/fstab.xenvm \
device/xen/xenvm/fstab.xenvm.avb:$(TARGET_COPY_OUT_RECOVERY)/root/first_stage_ramdisk/fstab.xenvm \
TARGET_RECOVERY_FSTAB := device/xen/xenvm/fstab.xenvm.avb
else
PRODUCT_COPY_FILES += \
device/xen/xenvm/fstab.xenvm:root/fstab.xenvm \
device/xen/xenvm/fstab.recovery.xenvm:$(TARGET_COPY_OUT_RECOVERY)/root/first_stage_ramdisk/fstab.xenvm \
TARGET_RECOVERY_FSTAB := device/xen/xenvm/fstab.recovery.xenvm
endif
PRODUCT_COPY_FILES += \
device/xen/xenvm/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
device/xen/xenvm/car_audio_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/car_audio_configuration.xml \
frameworks/av/services/audiopolicy/config/audio_policy_volumes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_volumes.xml \
frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \
device/xen/xenvm/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml
# media codec config xml file
PRODUCT_COPY_FILES += \
device/xen/xenvm/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml \
frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \
device/xen/xenvm/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml
PRODUCT_PACKAGES += \
libsfplugin_ccodec \
libstagefright_bufferqueue_helper \
# seccomp policy
PRODUCT_PACKAGES += \
mediacodec.policy \
crash_dump.policy
# All VNDK libraries (HAL interfaces, VNDK, VNDK-SP, LL-NDK)
PRODUCT_PACKAGES += vndk_package
# Boot animation
PRODUCT_COPY_FILES += \
packages/services/Car/car_product/bootanimations/bootanimation-832.zip:system/media/bootanimation.zip
# Input mapping
PRODUCT_COPY_FILES += \
device/xen/xenvm/input-port-associations.xml:$(TARGET_COPY_OUT_VENDOR)/etc/input-port-associations.xml
# Native apps for audio
PRODUCT_PACKAGES += \
tinyplay \
tinycap \
tinymix
PRODUCT_PACKAGES += \
librs_jni \
# Config store HAL
PRODUCT_PACKAGES += \
# Audio
PRODUCT_PACKAGES += \
audio.primary.xenvm \
# AudioControl
PRODUCT_PACKAGES += \
# Composer 2.3
PRODUCT_PACKAGES += \
# Composer 2.1
#PRODUCT_PACKAGES += \
# DRM Composer
PRODUCT_PACKAGES += \
hwcomposer.$(TARGET_PRODUCT) \
# Modetest from libdrm
PRODUCT_PACKAGES += \
modetest \
# Health HAL 2.0
PRODUCT_PACKAGES += \
# Keymaster HAL
# All security related settings are moved into dedicated security.mk
# Vehicle HAL
PRODUCT_PACKAGES += \
android.hardware.automotive.vehicle-V2.0-java \
PRODUCT_COPY_FILES += \
vendor/xen/vehicle/cfg/vehicle-mappings.json:$(TARGET_COPY_OUT_VENDOR)/etc/vehicle/vehicle-mappings.json
# Generic memtrack module
PRODUCT_PACKAGES += \
# Wi-Fi
PRODUCT_PACKAGES += \
hostapd \
wlutil \
wificond \
wifilogd \
wpa_supplicant
# GNSS
PRODUCT_PACKAGES += \
libuws \
#Sensors
PRODUCT_PACKAGES += \
PRODUCT_COPY_FILES += \
vendor/xen/sensors/cfg/sensors-config.json:$(TARGET_COPY_OUT_VENDOR)/etc/vehicle/sensors-config.json
# Exterior View System (EVS)
PRODUCT_PACKAGES += \
evs_app_xt \
PRODUCT_COPY_FILES += \
vendor/xen/evs/app/evs_app_xt.json:$(TARGET_COPY_OUT_VENDOR)/etc/vehicle/evs_app_xt.json
# Set default log size on userdebug/eng builds to 2M
ifneq (,$(filter userdebug eng, $(TARGET_BUILD_VARIANT)))
PRODUCT_PROPERTY_OVERRIDES += ro.logd.size=2M
endif
# Gallery and Music for local AV playback
PRODUCT_PACKAGES += \
Gallery2 \
Music \
# Web browser
PRODUCT_PACKAGES += \
Browser2 \
# App for graphics testing
PRODUCT_PACKAGES += \
glmark2
ifneq ($(TARGET_PREBUILT_KERNEL),)
PRODUCT_COPY_FILES += $(TARGET_PREBUILT_KERNEL):kernel
endif
DEVICE_PACKAGE_OVERLAYS := device/xen/xenvm/overlay
# Recovery files
PRODUCT_COPY_FILES += \
device/xen/xenvm/init.recovery.xenvm.rc:root/init.recovery.xenvm.rc
$(call inherit-product, device/xen/xenvm/graphics.mk)
$(call inherit-product-if-exists, frameworks/base/data/sounds/AudioPackage13.mk)
$(call inherit-product-if-exists, frameworks/base/data/fonts/fonts.mk)
ifeq ($(USE_G_APPS),true)
$(call inherit-product-if-exists, vendor/Google/Google-product.mk)
endif
$(call inherit-product, device/xen/xenvm/security.mk)