exynos9610: import HotwordEnrollement
[GitHub/moto-9609/android_device_motorola_exynos9610-common.git] / common.mk
CommitLineData
c8c25183
JA
1#
2# Copyright (C) 2020 The LineageOS 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
17COMMON_PATH := device/motorola/exynos9610-common
18
19# Get non-open-source specific aspects
20$(call inherit-product-if-exists, vendor/motorola/exynos9610-common/exynos9610-common-vendor.mk)
21
22DEVICE_PACKAGE_OVERLAYS += $(COMMON_PATH)/overlay
23
24# A/B
25AB_OTA_UPDATER := true
26
27AB_OTA_PARTITIONS += \
28 boot \
29 dtbo \
30 system \
31 vbmeta
32
33AB_OTA_POSTINSTALL_CONFIG += \
34 RUN_POSTINSTALL_system=true \
35 POSTINSTALL_PATH_system=system/bin/otapreopt_script \
36 FILESYSTEM_TYPE_system=ext4 \
37 POSTINSTALL_OPTIONAL_system=true
38
39# Update engine
40PRODUCT_PACKAGES += \
41 update_engine \
42 update_engine_sideload \
43 update_verifier
44
45PRODUCT_PACKAGES += \
46 otapreopt_script
47
48# Boot animation
49TARGET_BOOTANIMATION_PRELOAD := true
50TARGET_BOOTANIMATION_TEXTURE_CACHE := true
51TARGET_SCREEN_HEIGHT := 2520
52TARGET_SCREEN_WIDTH := 1080
53
54# Graphics
55# Device uses high-density artwork where available
56PRODUCT_AAPT_CONFIG := xlarge
57PRODUCT_AAPT_PREF_CONFIG := xxxhdpi
58# A list of dpis to select prebuilt apk, in precedence order.
59PRODUCT_AAPT_PREBUILT_DPI := xxxhdpi xxhdpi xhdpi hdpi
4ff7acb1
JA
60
61# HotwordEnrollement
62PRODUCT_COPY_FILES += \
63 $(COMMON_PATH)/configs/privapp-permissions-hotword.xml:system/etc/permissions/privapp-permissions-hotword.xml