-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdevice.mk
57 lines (44 loc) · 1.37 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
# Copyright (C) 2024 The Android Open Source Project
# SPDX-License-Identifier: Apache-2.0
LOCAL_PATH := device/$(PRODUCT_MANUFACTURER)/$(PRODUCT_DEVICE)
# A/B
AB_OTA_POSTINSTALL_CONFIG += \
RUN_POSTINSTALL_system=true \
POSTINSTALL_PATH_system=system/bin/otapreopt_script \
FILESYSTEM_TYPE_system=ext4 \
POSTINSTALL_OPTIONAL_system=true
PRODUCT_PACKAGES += \
otapreopt_script
AB_OTA_PARTITIONS += system boot vbmeta_system odm_dlkm product vbmeta_vendor vendor_dlkm system_ext vendor_boot vendor
# API
PRODUCT_SHIPPING_API_LEVEL := 32
# Boot Control HAL
PRODUCT_PACKAGES += \
android.hardware.boot@1.2-mtkimpl \
android.hardware.boot@1.2-mtkimpl.recovery \
bootctrl.mt6897 \
bootctrl.mt6897.recovery
# Dynamic Partitions
PRODUCT_USE_DYNAMIC_PARTITIONS := true
# Fastbootd
PRODUCT_PACKAGES += \
android.hardware.fastboot@1.0-impl-mock \
fastbootd
# Health HAL
PRODUCT_PACKAGES += \
android.hardware.health@2.1-impl \
android.hardware.health@2.1-service
# Recovery: Additional Libraries
TARGET_RECOVERY_DEVICE_MODULES += \
libion \
libxml2
TW_RECOVERY_ADDITIONAL_RELINK_LIBRARY_FILES += \
$(TARGET_OUT_SHARED_LIBRARIES)/libion.so \
$(TARGET_OUT_SHARED_LIBRARIES)/libxml2.so
# VNDK
PRODUCT_TARGET_VNDK_VERSION := 34
# Update Engine
PRODUCT_PACKAGES += \
update_engine \
update_verifier \
update_engine_sideload