exynos9610: copy init.recovery.exynos9610.rc
[GitHub/LineageOS/android_device_motorola_exynos9610-common.git] / common.mk
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
17 COMMON_PATH := device/motorola/exynos9610-common
18
19 $(call inherit-product, $(SRC_TARGET_DIR)/product/product_launched_with_p.mk)
20
21 # Get non-open-source specific aspects
22 $(call inherit-product-if-exists, vendor/motorola/exynos9610-common/exynos9610-common-vendor.mk)
23
24 DEVICE_PACKAGE_OVERLAYS += $(COMMON_PATH)/overlay
25
26 # A/B
27 AB_OTA_UPDATER := true
28
29 AB_OTA_PARTITIONS += \
30 boot \
31 dtbo \
32 system \
33 vbmeta
34
35 AB_OTA_POSTINSTALL_CONFIG += \
36 RUN_POSTINSTALL_system=true \
37 POSTINSTALL_PATH_system=system/bin/otapreopt_script \
38 FILESYSTEM_TYPE_system=ext4 \
39 POSTINSTALL_OPTIONAL_system=true
40
41 # Update engine
42 PRODUCT_PACKAGES += \
43 update_engine \
44 update_engine_sideload \
45 update_verifier
46
47 PRODUCT_PACKAGES += \
48 otapreopt_script
49
50 # Boot animation
51 TARGET_BOOTANIMATION_PRELOAD := true
52 TARGET_BOOTANIMATION_TEXTURE_CACHE := true
53 TARGET_SCREEN_HEIGHT := 2520
54 TARGET_SCREEN_WIDTH := 1080
55
56 # FM radio
57 PRODUCT_PACKAGES += \
58 FMRadio \
59 libfmjni
60
61 # Graphics
62 # Device uses high-density artwork where available
63 PRODUCT_AAPT_CONFIG := xlarge
64 PRODUCT_AAPT_PREF_CONFIG := xxxhdpi
65 # A list of dpis to select prebuilt apk, in precedence order.
66 PRODUCT_AAPT_PREBUILT_DPI := xxxhdpi xxhdpi xhdpi hdpi
67
68 # HotwordEnrollement
69 PRODUCT_COPY_FILES += \
70 $(COMMON_PATH)/configs/privapp-permissions-hotword.xml:system/etc/permissions/privapp-permissions-hotword.xml
71
72 # init
73 PRODUCT_COPY_FILES += \
74 $(COMMON_PATH)/configs/init/init.recovery.exynos9610.rc:$(TARGET_COPY_OUT_ROOT)/init.recovery.exynos9610.rc
75
76 # NFC
77 PRODUCT_PACKAGES += \
78 NfcNci \
79 Tag \
80 SecureElement \
81 com.android.nfc_extras
82
83 # Permissions
84 PRODUCT_COPY_FILES += \
85 frameworks/native/data/etc/android.hardware.telephony.ims.xml:system/etc/permissions/android.hardware.telephony.ims.xml \
86 frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \
87 frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \
88 frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hcef.xml