gui: allow disabling Flash Current TWRP option

On devices where boot scripts are run and ramdisk contents
are dynamically changed, hash check will always fail
when trying to use Flash Current TWRP option.

Disabling the hash check is not advisable as that would
hardcode the changes made during boot and would nullify
the dynamic nature of such changes.

Instead, provide a BoardConfig flag to hide this option,
along with the related feature to automatically flash TWRP
after a zip.

Usage:
TW_NO_FLASH_CURRENT_TWRP := true

Change-Id: Id307bf60b79ff1bff4ba7dd7f427132f40637289
5 files changed
tree: 0a2d908802fd214f9db9536d25ddd222901da0da
  1. .github/
  2. adbbu/
  3. applypatch/
  4. attr/
  5. bmlutils/
  6. bootloader_message/
  7. crypto/
  8. dosfstools/
  9. edify/
  10. etc/
  11. exfat/
  12. fastboot/
  13. fb2png/
  14. flashutils/
  15. fonts/
  16. fuse/
  17. fuse_sideload/
  18. gpt/
  19. gui/
  20. htcdumlock/
  21. injecttwrp/
  22. install/
  23. libblkid/
  24. libcrecovery/
  25. libmincrypt/
  26. libpixelflinger/
  27. libtar/
  28. minadbd/
  29. minui/
  30. minuitwrp/
  31. minzip/
  32. mmcutils/
  33. mtdutils/
  34. mtp/
  35. openaes/
  36. orscmd/
  37. otafault/
  38. otautil/
  39. ozip_decrypt/
  40. pigz/
  41. prebuilt/
  42. recovery_ui/
  43. recovery_utils/
  44. res/
  45. res-hdpi/
  46. res-mdpi/
  47. res-xhdpi/
  48. res-xxhdpi/
  49. res-xxxhdpi/
  50. scripts/
  51. sepolicy/
  52. simg2img/
  53. soong/
  54. tests/
  55. tools/
  56. twrpDigest/
  57. twrpinstall/
  58. twrpTarMain/
  59. uncrypt/
  60. update_verifier/
  61. updater/
  62. updater_sample/
  63. .clang-format
  64. .gitignore
  65. abx-functions.hpp
  66. Android.bp
  67. Android.mk
  68. BasePartition.cpp
  69. bootloader.h
  70. CleanSpec.mk
  71. data.cpp
  72. data.hpp
  73. exclude.cpp
  74. exclude.hpp
  75. find_file.cpp
  76. find_file.hpp
  77. fixContexts.cpp
  78. fixContexts.hpp
  79. fuse.h
  80. infomanager.cpp
  81. infomanager.hpp
  82. interlace-frames.py
  83. kernel_module_loader.cpp
  84. kernel_module_loader.hpp
  85. legacy_properties.h
  86. libaosprecovery_defaults.go
  87. METADATA
  88. mounts.c
  89. NOTICE
  90. openrecoveryscript.cpp
  91. openrecoveryscript.hpp
  92. OWNERS
  93. partition.cpp
  94. partitionmanager.cpp
  95. partitions.hpp
  96. PREUPLOAD.cfg
  97. progresstracking.cpp
  98. progresstracking.hpp
  99. README.md
  100. recovery-persist.cpp
  101. recovery-persist.rc
  102. recovery-refresh.cpp
  103. recovery-refresh.rc
  104. recovery.cpp
  105. recovery.h
  106. recovery_main.cpp
  107. recovery_ui.h
  108. startupArgs.cpp
  109. startupArgs.hpp
  110. tarWrite.c
  111. tarWrite.h
  112. TEST_MAPPING
  113. twcommon.h
  114. twrp-functions.cpp
  115. twrp-functions.hpp
  116. twrp.cpp
  117. twrpAdbBuFifo.cpp
  118. twrpAdbBuFifo.hpp
  119. twrpApex.cpp
  120. twrpApex.hpp
  121. twrpDigestDriver.cpp
  122. twrpDigestDriver.hpp
  123. twrpRepacker.cpp
  124. twrpRepacker.hpp
  125. twrpTar.cpp
  126. twrpTar.h
  127. twrpTar.hpp
  128. variables.h