-
Notifications
You must be signed in to change notification settings - Fork 1
/
device.mk
97 lines (74 loc) · 2.45 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
#
# Copyright (C) 2018 The LineageOS Project
# Copyright (C) 2018-2021 The Xiaomi-SDM660 Project
#
# SPDX-License-Identifier: Apache-2.0
#
# Inherit the sdm660-common definitions
$(call inherit-product, device/xiaomi/sdm660-common/sdm660.mk)
# Device Path
DEVICE_PATH := device/xiaomi/lavender
# Soong
PRODUCT_SOONG_NAMESPACES += \
$(DEVICE_PATH)
# Overlays
DEVICE_PACKAGE_OVERLAYS += \
$(DEVICE_PATH)/overlay \
$(DEVICE_PATH)/overlay-xdroid
# PRODUCT_SHIPPING_API_LEVEL indicates the first api level, device has been commercially launched on.
PRODUCT_SHIPPING_API_LEVEL := 28
# Audio
PRODUCT_COPY_FILES += \
$(DEVICE_PATH)/audio/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
$(DEVICE_PATH)/audio/mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths.xml
# Boot animation
TARGET_BOOTANIMATION_SIZE := 1080
TARGET_SCREEN_HEIGHT := 2340
TARGET_SCREEN_WIDTH := 1080
# Consumerir
BOARD_HAVE_IR := true
# Device properties
$(call inherit-product, $(DEVICE_PATH)/device_prop.mk)
# FM
BOARD_HAVE_QCOM_FM := true
# Permissions
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.camera.flash-autofocus.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.flash-autofocus.xml
# Properties
TARGET_PRODUCT_PROP += $(DEVICE_PATH)/product.prop
# Keylayout
PRODUCT_COPY_FILES += \
$(DEVICE_PATH)/configs/keylayout/sdm660-snd-card_Button_Jack.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/sdm660-snd-card_Button_Jack.kl
# Ramdisk
PRODUCT_PACKAGES += \
init.device.rc
# Recovery
PRODUCT_PACKAGES += \
librecovery_updater_lavender
# Screen density
PRODUCT_AAPT_CONFIG := normal
PRODUCT_AAPT_PREF_CONFIG := xxhdpi
# Sensors
PRODUCT_COPY_FILES += \
$(DEVICE_PATH)/sensors/sensor_def_qcomdev.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/sensor_def_qcomdev.conf \
$(DEVICE_PATH)/sensors/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf \
$(DEVICE_PATH)/sensors/elliptic.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/elliptic.conf
# Vibrator
PRODUCT_PACKAGES += \
# Snap
PRODUCT_PACKAGES += \
Snap
# Wifi
PRODUCT_PACKAGES += \
LavenderWifiOverlay
# Vendor files
$(call inherit-product, vendor/xiaomi/lavender/lavender-vendor.mk)
# AOSP DEVICE
PRODUCT_NAME := aosp_lavender
PRODUCT_DEVICE := lavender
PRODUCT_MODEL := Redmi Note 7 (AOSP)
PRODUCT_BRAND := Xiaomi
PRODUCT_MANUFACTURER := Xiaomi
PRODUCT_PACKAGES += \
libmmcamera_mg_faceppshim