-
Notifications
You must be signed in to change notification settings - Fork 12
/
device.mk
124 lines (101 loc) · 3.5 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
#
# Copyright (C) 2021 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
# Inherit from mithorium-common
$(call inherit-product, device/xiaomi/mithorium-common/mithorium.mk)
$(call inherit-product, frameworks/native/build/phone-xhdpi-2048-dalvik-heap.mk)
# Boot animation
TARGET_SCREEN_HEIGHT := 1280
TARGET_SCREEN_WIDTH := 720
# Dynamic Partitions
PRODUCT_BUILD_SUPER_PARTITION := false
PRODUCT_USE_DYNAMIC_PARTITIONS := true
PRODUCT_RETROFIT_DYNAMIC_PARTITIONS := true
# Overlays
DEVICE_PACKAGE_OVERLAYS += \
$(LOCAL_PATH)/overlay
PRODUCT_PACKAGES += \
CustomROMsOverlay_Mi8937 \
xiaomi_prada_overlay \
xiaomi_prada_overlay_Settings \
xiaomi_rolex_overlay \
xiaomi_riva_overlay \
xiaomi_ugg_overlay \
xiaomi_ugglite_overlay \
xiaomi_wt8937_overlay \
xiaomi_wt8937_overlay_Settings
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_fingerprint/android.hardware.fingerprint.xml
# Audio
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*.xml,$(LOCAL_PATH)/audio/mixer_paths/,$(TARGET_COPY_OUT_ODM)/etc/) \
$(call find-copy-subdir-files,*.xml,$(LOCAL_PATH)/audio/platform_info/,$(TARGET_COPY_OUT_ODM)/etc/)
# Camera
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/blankfile:$(TARGET_COPY_OUT_ODM)/bin/mm-qcamera-daemon \
$(LOCAL_PATH)/configs/blankfile:$(TARGET_COPY_OUT_ODM)/etc/camera/.placeholder
PRODUCT_PACKAGES += \
camera.land \
camera.prada \
camera.ulysse \
camera.wingtech
# Filesystem
PRODUCT_PACKAGES += \
e2fsck_ramdisk \
tune2fs_ramdisk \
resize2fs_ramdisk
ifeq ($(TARGET_KERNEL_VERSION),4.19)
# Enable project quotas and casefolding for emulated storage without sdcardfs
$(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk)
endif
# Fingerprint
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/blankfile:$(TARGET_COPY_OUT_ODM)/bin/gx_fpd
PRODUCT_PACKAGES += \
[email protected]_ulysse \
[email protected]_wt8937
# Input
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,$(LOCAL_PATH)/keylayout/,$(TARGET_COPY_OUT_ODM)/usr/keylayout/) \
$(foreach f, msm8917-sku5-snd-card_Button_Jack.kl msm8920-sku7-snd-card_Button_Jack.kl msm8952-sku1-snd-card_Button_Jack.kl, \
$(LOCAL_PATH)/keylayout/msm8952-snd-card-mtp_Button_Jack.kl:$(TARGET_COPY_OUT_ODM)/usr/keylayout/$(f))
# LiveDisplay
PRODUCT_PACKAGES += \
# Placeholder
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/blankfile:$(TARGET_COPY_OUT_ODM)/bin/.placeholder \
$(LOCAL_PATH)/configs/blankfile:$(TARGET_COPY_OUT_ODM)/lib64/.placeholder
# Recovery
PRODUCT_COPY_FILES += \
vendor/xiaomi/Mi8937/proprietary/vendor/bin/hvdcp_opti:$(TARGET_COPY_OUT_RECOVERY)/root/system/bin/hvdcp_opti
# Rootdir
PRODUCT_PACKAGES += \
fstab.qcom_ramdisk \
init.baseband.sh \
init.goodix.sh \
init.xiaomi.device.rc \
init.xiaomi.device.sh
# Shims
PRODUCT_PACKAGES += \
libbinder_shim \
libfakelogprint \
libshim_mutexdestroy \
libshim_pthreadts \
libshims_android \
libshims_ui \
libwui
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += \
$(LOCAL_PATH)
# Touch HAL
PRODUCT_PACKAGES += \
[email protected]_mi8937
# Wifi
PRODUCT_PACKAGES += \
WifiOverlay_prada
# Inherit from vendor blobs
$(call inherit-product, vendor/xiaomi/Mi8937/Mi8937-vendor.mk)