forked from AOSPA/android_device_xiaomi_marble
-
Notifications
You must be signed in to change notification settings - Fork 0
/
device.mk
80 lines (65 loc) · 2.14 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
#
# Copyright (C) 2021 The Android Open Source Project
# (C) 2022-2024 Paranoid Android
#
# SPDX-License-Identifier: Apache-2.0
#
# Inherit from sm8450-common
$(call inherit-product, device/xiaomi/sm8450-common/common.mk)
# Camera
PRODUCT_SYSTEM_PROPERTIES += \
ro.product.mod_device=marble_global
# Characteristics
PRODUCT_CHARACTERISTICS := nosdcard
# Display / Graphics
PRODUCT_VENDOR_PROPERTIES += \
debug.sf.defer_refresh_rate_when_off=1 \
vendor.display.enable_fp_monitor=1 \
vendor.display.enable_hist_intr=1 \
vendor.display.idle_time=0
# Fingerprint
TARGET_USES_MFP_DAEMON := true
PRODUCT_PACKAGES += \
# Firmware
$(call inherit-product-if-exists, vendor/xiaomi/firmware/marble/config.mk)
# Init scripts
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/rootdir/bin/init.marble.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.marble.sh \
$(LOCAL_PATH)/rootdir/etc/init.marble.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/init.marble.rc
# Kernel
KERNEL_PREBUILT_DIR := $(LOCAL_PATH)-kernel
# Keylayout
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/keylayout/uinput-fpc.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/uinput-fpc.kl \
$(LOCAL_PATH)/configs/keylayout/uinput-goodix.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/uinput-goodix.kl
# NFC
TARGET_NFC_SKU := marble
PRODUCT_SYSTEM_EXT_PROPERTIES += \
persist.nfc.camera.pause_polling=true
# Namespaces
PRODUCT_SOONG_NAMESPACES += \
$(LOCAL_PATH)
# Overlays
PRODUCT_PACKAGES += \
AOSPAMarbleFrameworksOverlay \
MarbleApertureOverlay \
MarbleCNSettingsOverlay \
MarbleCNSettingsProviderOverlay \
MarbleCNWifiOverlay \
MarbleCNWifiMainlineOverlay \
MarbleFrameworksOverlay \
MarbleGLSettingsOverlay \
MarbleGLSettingsProviderOverlay \
MarbleGLWifiOverlay \
MarbleGLWifiMainlineOverlay \
MarbleINSettingsOverlay \
MarbleINSettingsProviderOverlay \
MarbleINWifiOverlay \
MarbleINWifiMainlineOverlay \
MarbleNfcOverlay \
MarblePBSystemUIOverlay \
MarbleSettingsOverlay \
MarbleSystemUIOverlay
# Vendor blobs
$(call inherit-product, vendor/xiaomi/marble/marble-vendor.mk)