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
(cherry picked from commit 1f5d4ca8d299acea03f139ae17ea4045059943c0)
5 files changed