forked from TeamWin/android_device_samsung_x1s
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvendorsetup.sh
103 lines (93 loc) · 3.35 KB
/
vendorsetup.sh
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
#
# This file is part of the OrangeFox Recovery Project
# Copyright (C) 2020-2021 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
#
FDEVICE="x1s"
# set -o xtrace
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
export ALLOW_MISSING_DEPENDENCIES=true
export FOX_USE_TWRP_RECOVERY_IMAGE_BUILDER=1
export LC_ALL="C"
export FOX_VANILLA_BUILD=1
export FOX_NO_SAMSUNG_SPECIAL=0
export FOX_DYNAMIC_SAMSUNG_FIX=1
# export FOX_REMOVE_AAPT=1
# export FOX_REMOVE_BASH=1
export FOX_RECOVERY_INSTALL_PARTITION="/dev/block/by-name/recovery"
# Extra build vars
# export FOX_REPLACE_BUSYBOX_PS=1
# export FOX_REPLACE_TOOLBOX_GETPROP=1
# export FOX_USE_TAR_BINARY=1
# export FOX_USE_NANO_EDITOR=1
export OF_USE_MAGISKBOOT=1
export OF_USE_MAGISKBOOT_FOR_ALL_PATCHES=1
# export FOX_RESET_SETTINGS=0
# export FOX_DELETE_AROMAFM=1
export FOX_VERSION="R12.1_0"
export OF_SCREEN_H="2400"
export OF_HIDE_NOTCH=1
export OF_CLOCK_POS=1
export OF_ALLOW_DISABLE_NAVBAR=0
export TARGET_DEVICE_ALT="x1s, x1slte, x1sxxx"
export FOX_TARGET_DEVICES="x1s, x1slte, x1sxxx"
export OF_USE_SYSTEM_FINGERPRINT=1
export OF_USE_TWRP_SAR_DETECT=1
export OF_QUICK_BACKUP_LIST="/super;/boot;/vbmeta;/vbmeta_samsung;/dtbo;"
# export FOX_USE_UNZIP_BINARY=1
# export FOX_DISABLE_APP_MANAGER=1
# export FOX_USE_XZ_UTILS=1
export OF_STATUS_INDENT_LEFT="64"
export OF_STATUS_INDENT_RIGHT="64"
export OF_STATUS_H="88"
export OF_USE_GREEN_LED=0
export OF_SUPPORT_PRE_FLASH_SCRIPT=1
# Flashlight
# See /init.recovery.exynos990.rc for details
export OF_FL_PATH1="/tmp/flashlight"
export OF_FL_PATH2=""
export OF_FLASHLIGHT_ENABLE=1
# R11
# export FOX_R11=1
export FOX_BUILD_TYPE=Unofficial
# maximum permissible splash image size (in kilobytes); do *NOT* increase!
export OF_SPLASH_MAX_SIZE=104
# run a process after formatting data to work-around MTP issues
export OF_RUN_POST_FORMAT_PROCESS=1
# Custom pic for maintainer's about section info
export OF_MAINTAINER_AVATAR="$PWD/device/samsung/x1s/maintainer.png"
export OF_MAINTAINER="ItsPi3141"
# let's see what are our build VARs
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