-
Notifications
You must be signed in to change notification settings - Fork 0
/
device.mk
89 lines (74 loc) · 2.4 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
#
# This file is part of the OrangeFox Recovery Project
# Copyright (C) 2020-2023 The OrangeFox Recovery Project
#
# OrangeFox is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# any later version.
#
# OrangeFox is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# This software is released under GPL version 3 or any later version.
# See <http://www.gnu.org/licenses/>.
#
# Please maintain this if you use this script or any part of it
#
# fscrypt policy
TW_USE_FSCRYPT_POLICY := 1
# shipping API
PRODUCT_SHIPPING_API_LEVEL := 29
# A/B support
AB_OTA_UPDATER := true
AB_OTA_PARTITIONS += \
boot \
dtbo \
product \
system \
system_ext \
vendor \
vbmeta \
vbmeta_system
# dynamic partition stuff
PRODUCT_USE_DYNAMIC_PARTITIONS := true
# Exclude Apex
TW_EXCLUDE_APEX := true
# decryption
PRODUCT_PACKAGES += \
qcom_decrypt \
qcom_decrypt_fbe
# fastbootd stuff
PRODUCT_PACKAGES += \
fastbootd \
# for Android 11 manifests
PRODUCT_SOONG_NAMESPACES += \
vendor/qcom/opensource/commonsys-intf/display
# device asserts
TARGET_OTA_ASSERT_DEVICE := hotdogb,hotdog,hotdogg
# crypto
TW_INCLUDE_CRYPTO := true
TW_INCLUDE_CRYPTO_FBE := true
TW_INCLUDE_FBE_METADATA_DECRYPT := true
BOARD_USES_METADATA_PARTITION := true
BOARD_USES_QCOM_FBE_DECRYPTION := true
PLATFORM_VERSION := 16.1.0
PLATFORM_VERSION_LAST_STABLE := $(PLATFORM_VERSION)
PLATFORM_SECURITY_PATCH := 2099-12-31
VENDOR_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH)
# Recovery
TARGET_RECOVERY_PIXEL_FORMAT := RGBX_8888
TARGET_USES_MKE2FS := true
TARGET_RECOVERY_QCOM_RTC_FIX := true
# Libraries
TARGET_RECOVERY_DEVICE_MODULES += libion [email protected] [email protected] libdisplayconfig.qti
RECOVERY_LIBRARY_SOURCE_FILES += \
$(TARGET_OUT_SHARED_LIBRARIES)/libion.so \
$(TARGET_OUT_SYSTEM_EXT_SHARED_LIBRARIES)/[email protected] \
$(TARGET_OUT_SYSTEM_EXT_SHARED_LIBRARIES)/[email protected] \
$(TARGET_OUT_SYSTEM_EXT_SHARED_LIBRARIES)/libdisplayconfig.qti.so
#