vendorsetup.sh 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #
  2. # This file is part of the OrangeFox Recovery Project
  3. # Copyright (C) 2020 The OrangeFox Recovery Project
  4. #
  5. # OrangeFox is free software: you can redistribute it and/or modify
  6. # it under the terms of the GNU General Public License as published by
  7. # the Free Software Foundation, either version 3 of the License, or
  8. # any later version.
  9. #
  10. # OrangeFox is distributed in the hope that it will be useful,
  11. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # GNU General Public License for more details.
  14. #
  15. # This software is released under GPL version 3 or any later version.
  16. # See <http://www.gnu.org/licenses/>.
  17. #
  18. # Please maintain this if you use this script or any part of it
  19. #
  20. FDEVICE="klte"
  21. if [ "$1" = "$FDEVICE" -o "$FOX_BUILD_DEVICE" = "$FDEVICE" ]; then
  22. export TARGET_ARCH=arm
  23. export FOX_RECOVERY_INSTALL_PARTITION=/dev/block/platform/msm_sdcc.1/by-name/recovery
  24. export OF_VANILLA_BUILD=1
  25. export OF_SKIP_ORANGEFOX_PROCESS=1
  26. export OF_DISABLE_MIUI_SPECIFIC_FEATURES=1
  27. export OF_DONT_PATCH_ON_FRESH_INSTALLATION=1
  28. export OF_DONT_PATCH_ENCRYPTED_DEVICE=1
  29. export OF_KEEP_DM_VERITY_FORCED_ENCRYPTION=1
  30. export FOX_REMOVE_AAPT=1
  31. unset FOX_REPLACE_BUSYBOX_PS
  32. #
  33. export PLATFORM_VERSION="16.1.0"
  34. export PLATFORM_SECURITY_PATCH="2099-12-31"
  35. export TW_DEFAULT_LANGUAGE="en"
  36. export FOX_USE_TWRP_RECOVERY_IMAGE_BUILDER=1
  37. export OF_USE_MAGISKBOOT=1
  38. export OF_USE_MAGISKBOOT_FOR_ALL_PATCHES=1
  39. export OF_NO_TREBLE_COMPATIBILITY_CHECK=1
  40. export OF_DONT_PATCH_ENCRYPTED_DEVICE=1
  41. #
  42. export FOX_USE_BASH_SHELL=0
  43. export FOX_ASH_IS_BASH=0
  44. export FOX_USE_ZIP_BINARY=0
  45. export FOX_USE_NANO_EDITOR=0
  46. export FOX_USE_TAR_BINARY=0
  47. #
  48. # -- add settings for R11 --
  49. export FOX_R11=1
  50. export FOX_ADVANCED_SECURITY=1
  51. export OF_QUICK_BACKUP_LIST="/boot;/data;/system;"
  52. # -- end R11 settings --
  53. # let's see what are our build VARs
  54. if [ -n "$FOX_BUILD_LOG_FILE" -a -f "$FOX_BUILD_LOG_FILE" ]; then
  55. export | grep "FOX" >> $FOX_BUILD_LOG_FILE
  56. export | grep "OF_" >> $FOX_BUILD_LOG_FILE
  57. export | grep "TW_" >> $FOX_BUILD_LOG_FILE
  58. export | grep "TARGET_" >> $FOX_BUILD_LOG_FILE
  59. fi
  60. add_lunch_combo omni_"$FDEVICE"-eng
  61. add_lunch_combo omni_"$FDEVICE"-userdebug
  62. fi
  63. #