This repository has been archived by the owner on Feb 7, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
device.mk
71 lines (56 loc) · 1.81 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
#
# Copyright (C) 2020 LineageOS
#
# SPDX-License-Identifier: Apache-2.0
#
#
# This file sets variables that control the way modules are built
# thorughout the system. It should not be used to conditionally
# disable makefiles (the proper mechanism to control what gets
# included in a build is to use PRODUCT_PACKAGES in a product
# definition file).
#
$(call inherit-product, $(SRC_TARGET_DIR)/product/product_launched_with_p.mk)
# Boot animation
TARGET_SCREEN_HEIGHT := 2340
TARGET_SCREEN_WIDTH := 1080
# Overlays
DEVICE_PACKAGE_OVERLAYS += \
$(LOCAL_PATH)/overlay \
$(LOCAL_PATH)/overlay-lineage
# Properties
-include $(LOCAL_PATH)/device-props.mk
# Screen density
PRODUCT_AAPT_CONFIG := normal
PRODUCT_AAPT_PREF_CONFIG := xxhdpi
# Inherit from Xiaomi sdm710-common
$(call inherit-product, device/xiaomi/sdm710-common/sdm710.mk)
# Device init scripts
PRODUCT_PACKAGES += \
init.target.rc
# Fingerprint
PRODUCT_PACKAGES += \
lineage.biometrics.fingerprint.inscreen@1.0-service.xiaomi_sdm710
# HIDL
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/manifest.xml:system/etc/manifest.xml
# LiveDisplay
PRODUCT_PACKAGES += \
lineage.livedisplay@2.0-service.xiaomi_sdm710
# Media
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/media_profiles_vendor.xml:system/etc/media_profiles_vendor.xml
# NFC
PRODUCT_PACKAGES += \
NQNfcNci \
Tag \
com.android.nfc_extras \
com.nxp.nfc.nq \
nqnfcee_access.xml \
nqnfcse_access.xml
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_SYSTEM)/etc/libnfc-nci.conf \
$(LOCAL_PATH)/nfc/libnfc-nxp.conf:$(TARGET_COPY_OUT_SYSTEM)/etc/libnfc-nxp.conf \
$(LOCAL_PATH)/nfc/libnfc-nxp.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nxp.conf
# Inherit from proprietary version
$(call inherit-product-if-exists, vendor/xiaomi/grus/grus-vendor.mk)