forked from Mi-Thorium/android_device_xiaomi_Mi8937
-
Notifications
You must be signed in to change notification settings - Fork 0
/
device.mk
101 lines (83 loc) · 2.91 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
#
# 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 += \
xiaomi_landtoni_overlay \
xiaomi_prada_overlay \
xiaomi_rolex_overlay \
xiaomi_riva_overlay \
xiaomi_ugg_overlay \
xiaomi_ugglite_overlay
# 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,*,$(LOCAL_PATH)/audio/,$(TARGET_COPY_OUT_VENDOR)/etc/)
# Camera
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/blank.xml:$(TARGET_COPY_OUT_VENDOR)/etc/camera/camera_config.xml
PRODUCT_PACKAGES += \
camera.land \
camera.ulysse \
camera.wingtech
# Fingerprint
PRODUCT_PACKAGES += \
[email protected]_landtoni \
[email protected]_ulysse
# Flashlight (prada)
ifneq ($(wildcard hardware/lineage/interfaces/powershare/1.0/),)
PRODUCT_SOONG_NAMESPACES += $(LOCAL_PATH)/powershare-flashlight-prada
PRODUCT_PACKAGES += [email protected]_prada_flashlight
endif
# Input
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,$(LOCAL_PATH)/keylayout/,$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/) \
$(LOCAL_PATH)/keylayout/fts_ts.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/ft5346.kl \
$(LOCAL_PATH)/keylayout/fts_ts.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/ft5x06_720p.kl \
$(LOCAL_PATH)/keylayout/uinput-gf.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/gf3208.kl
# Sensors
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/blankfile:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/sensor_def_qcomdev.conf \
$(call find-copy-subdir-files,*,$(LOCAL_PATH)/configs/sensors/,$(TARGET_COPY_OUT_VENDOR)/etc/sensors/)
# Rootdir
PRODUCT_PACKAGES += \
fstab.qcom_ramdisk \
init.baseband.sh \
init.goodix.sh \
init.xiaomi.device.rc \
init.xiaomi.device.sh
# Shims
PRODUCT_PACKAGES += \
fakelogprint \
libshim_mutexdestroy \
libshim_pthreadts \
libshims_android \
libshims_binder \
libshims_c_camera \
libshims_ui \
libwui
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += \
$(LOCAL_PATH)
# Wifi
PRODUCT_PACKAGES += \
WifiOverlay_prada
# Inherit from vendor blobs
$(call inherit-product, vendor/xiaomi/Mi8937/Mi8937-vendor.mk)
$(call inherit-product-if-exists, vendor/xiaomi/Mi8937-2/Mi8937-vendor.mk)