forked from TelegramAt25/recovery_device_xiaomi_blossom
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdevice.mk
81 lines (61 loc) · 1.76 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
#
# Copyright (C) 2023 The OrangeFox Recovery Project
#
# SPDX-License-Identifier: Apache-2.0
#
# Enable updating of APEXes
$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
# Installs developer gsi keys into ramdisk, to boot a developer GSI with verified boot.
$(call inherit-product, $(SRC_TARGET_DIR)/product/developer_gsi_keys.mk)
# API
PRODUCT_SHIPPING_API_LEVEL := 29
# Apex
TW_EXCLUDE_APEX := true
# Dynamic Partitions
PRODUCT_USE_DYNAMIC_PARTITIONS := true
# Crypto
PRODUCT_VENDOR_PROPERTIES += \
ro.crypto.volume.filenames_mode=aes-256-cts
# Fastbootd
PRODUCT_PACKAGES += \
fastbootd
# Gatekeeper
PRODUCT_PACKAGES += \
PRODUCT_VENDOR_PROPERTIES += \
ro.hardware.gatekeeper=beanpod
# HACK: Set vendor patch level
PRODUCT_PROPERTY_OVERRIDES += \
ro.bootimage.build.date.utc=0 \
ro.build.date.utc=0
# Kernel
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/prebuilt/Image.gz:kernel
# Keymaster
TARGET_RECOVERY_DEVICE_MODULES += \
libkeymaster4 \
libpuresoftkeymasterdevice
RECOVERY_LIBRARY_SOURCE_FILES += \
$(TARGET_OUT_SHARED_LIBRARIES)/libkeymaster4.so \
$(TARGET_OUT_SHARED_LIBRARIES)/libpuresoftkeymasterdevice.so
PRODUCT_PACKAGES += \
libshim_beanpod
PRODUCT_VENDOR_PROPERTIES += \
ro.hardware.kmsetkey=beanpod
PRODUCT_PROPERTY_OVERRIDES += \
keymaster_ver=4.0
# Logging
PRODUCT_VENDOR_PROPERTIES += \
ro.logd.kernel=false \
log.tag=I \
persist.log.tag=I
# TEE
PRODUCT_VENDOR_PROPERTIES += \
ro.vendor.mtk_microtrust_tee_support=1
# USB
PRODUCT_SYSTEM_PROPERTIES += \
ro.sys.usb.storage.type=mtp
# VNDK
PRODUCT_TARGET_VNDK_VERSION := 30