forked from mt8163/android_kernel_amazon_karnak_4.9
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvendorsetup.sh
More file actions
143 lines (124 loc) · 4.68 KB
/
vendorsetup.sh
File metadata and controls
143 lines (124 loc) · 4.68 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
#!/bin/bash
#
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2017-2020 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
# This file is part of the OrangeFox Recovery Project
# Copyright (C) 2021-2024 The OrangeFox Recovery Project
# Copyright (C) 2024 The Android Open Source 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.
# SPDX-License-Identifier: Apache-2.0
#
# 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
#
## Device Build Ccache. If you want your subsequent builds to be faster, then use ccache - eg
#export USE_CCACHE=1
#export CCACHE_EXEC=/usr/bin/ccache
#ccache -M 35G # this sets aside 50GB disk space for the cache
if [ "$RECOVERY_VARIANT" == "ofrp" ]; then
FDEVICE="tb8163p3_bsp"
fox_get_target_device() {
local chkdev=$(echo "$BASH_SOURCE" | grep -w $FDEVICE)
if [ -n "$chkdev" ]; then
FOX_BUILD_DEVICE="$FDEVICE"
else
chkdev=$(set | grep BASH_ARGV | grep -w $FDEVICE)
[ -n "$chkdev" ] && FOX_BUILD_DEVICE="$FDEVICE"
fi
}
if [ -z "$1" -a -z "$FOX_BUILD_DEVICE" ]; then
fox_get_target_device
fi
if [ "$1" = "$FDEVICE" -o "$FOX_BUILD_DEVICE" = "$FDEVICE" ]; then
# Other..
export ALLOW_MISSING_DEPENDENCIES=true
export FOX_VANILLA_BUILD=1
export RECOVERY_VARIANT="ofrp"
export OF_DISABLE_MIUI_SPECIFIC_FEATURES=1
export OF_FORCE_PREBUILT_KERNEL=1
export FOX_BUILD_DEVICE="tb8163p3_bsp"
export OF_PATCH_AVB20=1
export OF_TWRP_COMPATIBILITY_MODE=1
export OF_USE_LZMA_COMPRESSION=1
export FOX_DRASTIC_SIZE_REDUCTION=1
export FOX_NO_SAMSUNG_SPECIAL=1
export TW_DEFAULT_LANGUAGE="en"
export LC_ALL="C"
# Fox-specific flags
export OF_QUICK_BACKUP_LIST="/boot;/data"
#export FOX_RECOVERY_INSTALL_PARTITION="/dev/block/platform/mtk-msdc.0/11230000.MSDC0/by-name/recovery"
#export FOX_RECOVERY_SYSTEM_PARTITION="/dev/block/platform/mtk-msdc.0/11230000.MSDC0/by-name/system"
#export FOX_RECOVERY_VENDOR_PARTITION="/dev/block/platform/mtk-msdc.0/11230000.MSDC0/by-n=1ame/vendor"
#export FOX_RECOVERY_BOOT_PARTITION="/dev/block/platform/mtk-msdc.0/11230000.MSDC0/by-name/boot"
export BOARD_BOOTIMAGE_PARTITION_SIZE="16777216"
export BOARD_RECOVERYIMAGE_PAITION_SIZE="16777216"
export BOARD_SYSTEMIMAGE_PARTITION_SIZE="2147483648"
export OF_USE_MAGISKBOOT_FOR_ALL_PATCHES=1
#export OF_DONT_PATCH_ENCRYPTED_DEVICE=1
#export OF_NO_TREBLE_COMPATIBILITY_CHECK=1
#export OF_HIDE_NOTCH=1
# OrangeFox Addons
export FOX_ENABLE_APP_MANAGER=1
# Binaries & Tools
export FOX_USE_BASH_SHELL=1
export FOX_ASH_IS_BASH=1
export FOX_USE_NANO_EDITOR=1
export FOX_USE_TAR_BINARY=0
export FOX_USE_SED_BINARY=0
export FOX_USE_XZ_UTILS=1
export FOX_REPLACE_BUSYBOX_PS=1
export FOX_REMOVE_BUSYBOX_BINARY=1
# Recovery
export OF_USE_LEGACY_BATTERY_SERVICES=1
export OF_BIND_MOUNT_SDCARD_ON_FORMAT=1
export OF_UNMOUNT_SDCARDS_BEFORE_REBOOT=1
export OF_FORCE_PREBUILT_KERNEL=1
export GIT_DISCOVERY_ACROSS_FILESYSTEM=1
# Version & Variant
export FOX_VERSION="R9.0"
export FOX_VARIANT="ALPS"
export FOX_BUILD_TYPE="Stable"
# Store settings at /data/recovery instead of internal storage
##export FOX_USE_DATA_RECOVERY_FOR_SETTINGS=1
# Security (Disables MTP&ADB during password prompt)
# no special MIUI stuff
export OF_NO_MIUI_PATCH_WARNING=1
# Magisk
export FOX_USE_SPECIFIC_MAGISK_ZIP="~/Magisk/Magisk-v25.2.zip"
# Debugging
##export FOX_RESET_SETTINGS=0
##export FOX_INSTALLER_DEBUG_MODE=
# run a process after formatting datato work-around MTP issues
export OF_RUN_POST_FORMAT_PROCESS=1
# fux screen height for tablets
export OF_SCREEN_H="600"
# Maintainer
export OF_MAINTAINER="Tec4Sho"
export FOX_MAINTAINER_PATCH_VERSION="Android Radio 9.0"
# Let's see our build VARs ZZZ
if [ -n "$FOX_BUILD_LOG_FILE" -a -f "$FOX_BUILD_LOG_FILE" ]; then
export | grep "FOX" >> $FOX_BUILD_LOG_FILE
export | grep "OF_" >> $FOX_BUILD_LOG_FILE
export | grep "TARGET_" >> $FOX_BUILD_LOG_FILE
export | grep "TW_" >> $FOX_BUILD_LOG_FILE
fi
fi
fi
add_lunch_combo omni_tb8163p3_bsp-user
add_lunch_combo omni_tb8163p3_bsp-userdebug
add_lunch_combo omni_tb8163p3_bsp-eng
# Reserved