Эх сурвалжийг харах

Update vendorsetup.sh

Signed-off-by: Samuel Kendall <kinguser981@gmail.com>
Samuel Kendall 2 жил өмнө
parent
commit
ecd815fe8d
1 өөрчлөгдсөн 85 нэмэгдсэн , 3 устгасан
  1. 85 3
      vendorsetup.sh

+ 85 - 3
vendorsetup.sh

@@ -1,8 +1,90 @@
+#	  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
 #
-# Copyright (C) 2023 The Android Open Source Project
-# Copyright (C) 2023 SebaUbuntu's TWRP device tree generator
-#
+#	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
+#
+FDEVICE="cap_sprout"
+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
+
+ # Fox-specific flags
+ export FOX_ENABLE_APP_MANAGER=1
+ export OF_QUICK_BACKUP_LIST="/boot;/data;"
+ export OF_NO_TREBLE_COMPATIBILITY_CHECK=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=1
+ export FOX_USE_SED_BINARY=1
+ export FOX_USE_XZ_UTILS=1
+ export OF_ENABLE_LPTOOLS=1
+
+ # Version & Variant
+ export FOX_VERSION="R12.1"
+ export FOX_VARIANT="A14"
+ export FOX_BUILD_TYPE="official"
+
+ # Custom ROMs
+ ## export OF_VIRTUAL_AB_DEVICE=1
+ export OF_AB_DEVICE=1
+ export OF_USE_GREEN_LED=1
+
+
+ # Security (Disables MTP&ADB during password prompt)
+ export FOX_ADVANCED_SECURITY=1
+
+ # Screen settings
+ export OF_ALLOW_DISABLE_NAVBAR=0
+ ## export OF_NO_SPLASH_CHANGE=1
+
+
+ # Maximum permissible splash image size (in kilobytes); do *NOT* increase!
+ export OF_SPLASH_MAX_SIZE=130
+
+ # Debugging
+ ## export FOX_RESET_SETTINGS=0
+ ## export FOX_INSTALLER_DEBUG_MODE=1
+
+ # Other..
+ export TW_DEFAULT_LANGUAGE="en"
+ export LC_ALL="C"
 
+ # 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
 # Reserved