-
Notifications
You must be signed in to change notification settings - Fork 0
/
device.mk
145 lines (113 loc) · 3.17 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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
#
# Copyright (C) 2023 The Android Open Source Project
#
# SPDX-License-Identifier: Apache-2.0
#
DEVICE_PATH := device/xiaomi/xun
KERNEL_PATH := $(DEVICE_PATH)-kernel
# Inherit virtual_ab_ota_product.
$(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota/android_t_baseline.mk)
PRODUCT_VIRTUAL_AB_COMPRESSION_METHOD := gz
# Installs gsi keys into ramdisk, to boot a developer GSI with verified boot.
$(call inherit-product, $(SRC_TARGET_DIR)/product/developer_gsi_keys.mk)
# Setup dalvik vm configs.
$(call inherit-product, frameworks/native/build/phone-xhdpi-6144-dalvik-heap.mk)
# Call the proprietary setup.
$(call inherit-product, vendor/xiaomi/xun/xun-vendor.mk)
# Enable updating of APEXes.
$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
# Project ID Quota.
$(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk)
# Set product characteristic to tablet, needed for some ui elements
PRODUCT_CHARACTERISTICS := tablet
# SHIPPING API
PRODUCT_SHIPPING_API_LEVEL := 31
# VNDK API
PRODUCT_TARGET_VNDK_VERSION := 32 33
PRODUCT_EXTRA_VNDK_VERSIONS := 32 33
# A/B
AB_OTA_POSTINSTALL_CONFIG += \
RUN_POSTINSTALL_system=true \
POSTINSTALL_PATH_system=system/bin/otapreopt_script \
FILESYSTEM_TYPE_system=erofs \
POSTINSTALL_OPTIONAL_system=true
AB_OTA_POSTINSTALL_CONFIG += \
RUN_POSTINSTALL_vendor=true \
POSTINSTALL_PATH_vendor=bin/checkpoint_gc \
FILESYSTEM_TYPE_vendor=erofs \
POSTINSTALL_OPTIONAL_vendor=true
# Audio
PRODUCT_PACKAGES += \
DolbyManager
# Bluetooth Audio (System-side HAL, sysbta)
PRODUCT_PACKAGES += \
audio.sysbta.default \
android.hardware.bluetooth.audio-service-system
# Boot animation
TARGET_BOOT_ANIMATION_RES := 1080
# Boot control
PRODUCT_PACKAGES += \
PRODUCT_PACKAGES_DEBUG += \
bootctl
# Camera
# PRODUCT_PACKAGES += \
# GCamGOPrebuilt-V3_8
# Dtb
PRODUCT_COPY_FILES += \
$(KERNEL_PATH)/dtb:dtb.img
# DT2W
PRODUCT_PACKAGES += \
DT2W-Service-Xun
# Fastbootd
PRODUCT_PACKAGES += \
fastbootd
# F2FS utilities
PRODUCT_PACKAGES += \
sg_write_buffer \
f2fs_io \
check_f2fs
# Health
PRODUCT_PACKAGES += \
# Overlays
PRODUCT_PACKAGES += \
ApertureResXun \
FrameworksResCommon \
FrameworksResXun \
SettingsResCommon \
SettingsResXun \
SystemUIResCommon \
SystemUIResXun \
WifiResCommon \
WifiResXun
# Partitions
PRODUCT_USE_DYNAMIC_PARTITIONS := true
#PRODUCT_BUILD_SUPER_PARTITION := true
# Parts
PRODUCT_PACKAGES += \
XiaomiParts
# Properties
include $(DEVICE_PATH)/configs/properties/default.mk
# Perf
PRODUCT_PACKAGES += \
# Rootdir
PRODUCT_PACKAGES += \
init.recovery.qcom.rc \
init.qcom.rc
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += \
$(DEVICE_PATH)
# Update engine
PRODUCT_PACKAGES += \
checkpoint_gc \
otapreopt_script \
update_engine \
update_engine_sideload \
update_verifier
PRODUCT_PACKAGES_DEBUG += \
update_engine_client