-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvendorsetup.sh
90 lines (74 loc) · 2.4 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
export TARGET_ARCH="arm64-v8a"
# Some about us
export FOX_VERSION="R12.1_0_A14"
export OF_MAINTAINER="JonesqPacMan"
# Build environment stuffs
export FOX_BUILD_DEVICE="plato"
export FOX_VARIANT="HyperOS"
export FOX_BUILD_TYPE="Unofficial"
export TW_DEFAULT_LANGUAGE="id"
export OF_DEFAULT_TIMEZONE="WIB-7"
export ALLOW_MISSING_DEPENDENCIES=true
export FOX_USE_TWRP_RECOVERY_IMAGE_BUILDER=1
export TARGET_DEVICE_ALT="plato"
# Magiskboot
export OF_USE_MAGISKBOOT=1
export OF_USE_MAGISKBOOT_FOR_ALL_PATCHES=1
export FOX_PATCH_VBMETA_FLAG=1
# data stuff
export OF_FORCE_MAGISKBOOT_BOOT_PATCH_MIUI=1
export OF_NO_RELOAD_AFTER_DECRYPTION=1
export OF_NO_TREBLE_COMPATIBILITY_CHECK=1
export OF_USE_GREEN_LED=0
export OF_FLASHLIGHT_ENABLE=0
export OF_IGNORE_LOGICAL_MOUNT_ERRORS=1
export OF_DONT_PATCH_ENCRYPTED_DEVICE=1
export OF_FBE_METADATA_MOUNT_IGNORE=1
# We have a/b partitions
export FOX_AB_DEVICE=1
export FOX_VIRTUAL_AB_DEVICE=1
# Vendor Boot recovery
export FOX_VENDOR_BOOT_RECOVERY=1
export FOX_RECOVERY_VENDOR_BOOT_PARTITION="/dev/block/by-name/vendor_boot"
# Vendor & System
export FOX_RECOVERY_SYSTEM_PARTITION="/dev/block/mapper/system"
export FOX_RECOVERY_VENDOR_PARTITION="/dev/block/mapper/vendor"
# Screen specifications
export OF_SCREEN_H=2400
export OF_STATUS_H=87
export OF_STATUS_INDENT_LEFT=85
export OF_STATUS_INDENT_RIGHT=85
export OF_HIDE_NOTCH=1
export OF_CLOCK_POS=1
export OF_ALLOW_DISABLE_NAVBAR=0
# Device stuff
export OF_PATCH_AVB20=1
export OF_DYNAMIC_FULL_SIZE=9126805504
export OF_UNBIND_SDCARD_F2FS=1
export OF_SUPPORT_VBMETA_AVB2_PATCHING=1
# For some reason this is dumb and necessary
export FOX_BUGGED_AOSP_ARB_WORKAROUND="1546300800"
export OF_QUICK_BACKUP_LIST="/boot;/data;/super;/vendor_boot;"
# OTA & MIUI
export OF_NO_MIUI_PATCH_WARNING=1
# export OF_SUPPORT_ALL_BLOCK_OTA_UPDATES=1
export OF_FIX_OTA_UPDATE_MANUAL_FLASH_ERROR=1
export OF_DISABLE_MIUI_OTA_BY_DEFAULT=1
# Magisk
export FOX_USE_SPECIFIC_MAGISK_ZIP=~/Magisk/Magisk-v26.4.zip
# Dont install AROMAFM
export FOX_DELETE_AROMAFM=1
# Add some extras
export FOX_USE_ZIP_BINARY=1
export FOX_USE_TAR_BINARY=1
export FOX_USE_SED_BINARY=1
export FOX_ENABLE_APP_MANAGER=1
export FOX_USE_GREP_BINARY=1
export FOX_USE_XZ_UTILS=1
export OF_ENABLE_LPTOOLS=1
export FOX_ASH_IS_BASH=1
export FOX_REPLACE_TOOLBOX_GETPROP=1
export FOX_USE_BASH_SHELL=1
export OF_USE_LZ4_COMPRESSION=1
export FOX_USE_NANO_EDITOR=1
export FOX_INSTALLER_DISABLE_AUTOREBOOT=1