1
0

vendorsetup.sh 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 FOX_RECOVERY_SYSTEM_PARTITION=/dev/block/platform/msm_sdcc.1/by-name/system
  25. export TW_DEFAULT_LANGUAGE="en"
  26. export OF_VANILLA_BUILD=1
  27. export OF_SKIP_ORANGEFOX_PROCESS=1
  28. export OF_DISABLE_MIUI_SPECIFIC_FEATURES=1
  29. export OF_DONT_PATCH_ON_FRESH_INSTALLATION=1
  30. export OF_NO_TREBLE_COMPATIBILITY_CHECK=1
  31. export OF_DONT_PATCH_ENCRYPTED_DEVICE=1
  32. export FOX_USE_TWRP_RECOVERY_IMAGE_BUILDER=1
  33. export OF_USE_MAGISKBOOT=1
  34. export OF_USE_MAGISKBOOT_FOR_ALL_PATCHES=1
  35. export OF_USE_TWRP_SAR_DETECT=0
  36. export OF_FLASHLIGHT_ENABLE=0
  37. unset FOX_REPLACE_BUSYBOX_PS
  38. export OF_DEVICE_WITHOUT_PERSIST=1
  39. export OF_DISABLE_EXTRA_ABOUT_PAGE=1
  40. export FOX_REMOVE_AAPT=1; # doesn't work
  41. export FOX_USE_NANO_EDITOR=0
  42. export FOX_USE_TAR_BINARY=0
  43. #
  44. # -- add settings for R11 --
  45. export FOX_R11=1
  46. export FOX_ADVANCED_SECURITY=1
  47. export OF_QUICK_BACKUP_LIST="/boot;/data;/system;"
  48. # -- end R11 settings --
  49. #export PLATFORM_VERSION="16.1.0"
  50. export PLATFORM_SECURITY_PATCH="2099-12-31"
  51. # let's see what are our build VARs
  52. if [ -n "$FOX_BUILD_LOG_FILE" -a -f "$FOX_BUILD_LOG_FILE" ]; then
  53. export | grep "FOX" >> $FOX_BUILD_LOG_FILE
  54. export | grep "OF_" >> $FOX_BUILD_LOG_FILE
  55. export | grep "TW_" >> $FOX_BUILD_LOG_FILE
  56. export | grep "TARGET_" >> $FOX_BUILD_LOG_FILE
  57. fi
  58. add_lunch_combo omni_"$FDEVICE"-eng
  59. add_lunch_combo omni_"$FDEVICE"-userdebug
  60. fi
  61. #