forked from Ruyue-Kinsenka/android_device_sharp_Banagher
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevice.mk
More file actions
127 lines (104 loc) · 2.83 KB
/
device.mk
File metadata and controls
127 lines (104 loc) · 2.83 KB
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
#
# Copyright (C) 2024 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
# Enable updating of APEXes
$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
# Force disable updating of APEXes when flatten APEX flag is enabled
ifeq ($(OVERRIDE_TARGET_FLATTEN_APEX),true)
PRODUCT_PRODUCT_PROPERTIES += ro.apex.updatable=false
endif
# Setup dalvik vm configs
$(call inherit-product, frameworks/native/build/phone-xhdpi-6144-dalvik-heap.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota/launch_with_vendor_ramdisk.mk)
# AAPT
PRODUCT_AAPT_CONFIG := normal
PRODUCT_AAPT_PREF_CONFIG := xxhdpi
# Soong namespaces
PRODUCT_SOONG_NAMESPACES += \
$(LOCAL_PATH) \
# A/B
AB_OTA_UPDATER := true
AB_OTA_PARTITIONS += \
odm \
vendor \
product \
system_ext \
system
BOARD_USES_RECOVERY_AS_BOOT := false
AB_OTA_POSTINSTALL_CONFIG += \
RUN_POSTINSTALL_system=true \
POSTINSTALL_PATH_system=system/bin/otapreopt_script \
FILESYSTEM_TYPE_system=ext4 \
POSTINSTALL_OPTIONAL_system=true
AB_OTA_POSTINSTALL_CONFIG += \
RUN_POSTINSTALL_vendor=true \
POSTINSTALL_PATH_vendor=bin/checkpoint_gc \
FILESYSTEM_TYPE_vendor=ext4 \
POSTINSTALL_OPTIONAL_vendor=true
# Boot control
PRODUCT_PACKAGES += \
android.hardware.boot@1.1-impl-qti \
android.hardware.boot@1.1-impl-qti.recovery \
android.hardware.boot@1.1-service
PRODUCT_PACKAGES_DEBUG += \
bootctl
# fastbootd
PRODUCT_PACKAGES += \
android.hardware.fastboot@1.0-impl-mock \
fastbootd
# Partitions
PRODUCT_BUILD_SUPER_PARTITION := false
PRODUCT_USE_DYNAMIC_PARTITIONS := true
# API levels
PRODUCT_SHIPPING_API_LEVEL := 29
# Health
PRODUCT_PACKAGES += \
android.hardware.health@2.1-impl \
android.hardware.health@2.1-service
# Overlays
PRODUCT_ENFORCE_RRO_TARGETS := *
# Partitions
PRODUCT_USE_DYNAMIC_PARTITIONS := true
# Common init scripts
PRODUCT_PACKAGES += \
fstab.qcom \
init.recovery.qcom.rc \
init.qcom.factory.rc \
init.target.wigig.rc \
init.target.rc \
init.qti.ufs.rc \
init.qcom.usb.rc \
init.qcom.rc \
init.qcom.factory.rc \
qca6234-service.sh \
init.qti.qcv.sh \
init.qti.media.sh \
init.qti.dcvs.sh \
init.qti.chg_policy.sh \
init.qcom.usb.sh \
init.qcom.sh \
init.qcom.sensors.sh \
init.qcom.sdio.sh \
init.qcom.post_boot.sh \
init.qcom.efs.sync.sh \
init.qcom.early_boot.sh \
init.qcom.coex.sh \
init.qcom.class_core.sh \
init.mdm.sh \
init.crda.sh \
init.class_main.sh
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/rootdir/etc/fstab.qcom:$(TARGET_COPY_OUT_RAMDISK)/fstab.qcom
# Shsub
PRODUCT_PACKAGES += \
android.hardware.shsub@1.0-service.pucci
# SH_FEATHER
PRODUCT_PACKAGES += \
shdisp \
shtps_glove \
shtps_report
# Device-specific settings
PRODUCT_PACKAGES += \
SHARPParts