Commit | Line | Data |
---|---|---|
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 | ||
17 | COMMON_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 | ||
22 | DEVICE_PACKAGE_OVERLAYS += $(COMMON_PATH)/overlay | |
23 | ||
24 | # A/B | |
25 | AB_OTA_UPDATER := true | |
26 | ||
27 | AB_OTA_PARTITIONS += \ | |
28 | boot \ | |
29 | dtbo \ | |
30 | system \ | |
31 | vbmeta | |
32 | ||
33 | AB_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 | |
40 | PRODUCT_PACKAGES += \ | |
41 | update_engine \ | |
42 | update_engine_sideload \ | |
43 | update_verifier | |
44 | ||
45 | PRODUCT_PACKAGES += \ | |
46 | otapreopt_script | |
47 | ||
48 | # Boot animation | |
49 | TARGET_BOOTANIMATION_PRELOAD := true | |
50 | TARGET_BOOTANIMATION_TEXTURE_CACHE := true | |
51 | TARGET_SCREEN_HEIGHT := 2520 | |
52 | TARGET_SCREEN_WIDTH := 1080 | |
53 | ||
54 | # Graphics | |
55 | # Device uses high-density artwork where available | |
56 | PRODUCT_AAPT_CONFIG := xlarge | |
57 | PRODUCT_AAPT_PREF_CONFIG := xxxhdpi | |
58 | # A list of dpis to select prebuilt apk, in precedence order. | |
59 | PRODUCT_AAPT_PREBUILT_DPI := xxxhdpi xxhdpi xhdpi hdpi | |
4ff7acb1 JA |
60 | |
61 | # HotwordEnrollement | |
62 | PRODUCT_COPY_FILES += \ | |
63 | $(COMMON_PATH)/configs/privapp-permissions-hotword.xml:system/etc/permissions/privapp-permissions-hotword.xml | |
8f6e48cd JA |
64 | |
65 | # NFC | |
66 | PRODUCT_PACKAGES += \ | |
67 | NfcNci \ | |
68 | Tag \ | |
69 | SecureElement \ | |
70 | com.android.nfc_extras | |
71 | ||
72 | # Permissions | |
73 | PRODUCT_COPY_FILES += \ | |
3f59eaa4 | 74 | frameworks/native/data/etc/android.hardware.telephony.ims.xml:system/etc/permissions/android.hardware.telephony.ims.xml \ |
8f6e48cd JA |
75 | frameworks/native/data/etc/android.hardware.nfc.xml:system/etc/permissions/android.hardware.nfc.xml \ |
76 | frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hce.xml \ | |
77 | frameworks/native/data/etc/android.hardware.nfc.hce.xml:system/etc/permissions/android.hardware.nfc.hcef.xml |