diff options
| author | nailyk-fr <nailyk_git@nailyk.fr> | 2017-08-08 21:23:35 +0200 |
|---|---|---|
| committer | nebrassy <nebras30@gmail.com> | 2020-04-26 16:38:29 +0200 |
| commit | f2198f40b8e3436e5fdf83bec528ddadf6a05928 (patch) | |
| tree | 18e18c45b03f05afc7772c936ebd4d93ff52afae /data.cpp | |
| parent | 057197070ea5b38682a594ce196466a6e6c47024 (diff) | |
TWRP: add an option to exclude the TWRP appp9.0
* Allow device maintainer to exclude the twrp app and disable
the installation prompt. Mostly the app is useless for
every unofficially supported devices.
* BoardConfig flag: 'TW_EXCLUDE_TWRPAPP := true'
Original commit: https://gerrit.omnirom.org/#/c/android_bootable_recovery/+/27694/
Change-Id: I0aa1fb2ebe03ceb19c766178544039a82497cdd4
Diffstat (limited to 'data.cpp')
| -rwxr-xr-x | data.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -912,10 +912,14 @@ void DataManager::SetDefaultValues() mConst.SetValue("tw_app_installed_in_system", "0"); #else mConst.SetValue("tw_oem_build", "0"); + #ifdef TW_EXCLUDE_TWRPAPP + mConst.SetValue("tw_app_prompt", "-1"); + #else mPersist.SetValue("tw_app_prompt", "1"); mPersist.SetValue("tw_app_install_system", "1"); mData.SetValue("tw_app_install_status", "0"); // 0 = no status, 1 = not installed, 2 = already installed mData.SetValue("tw_app_installed_in_system", "0"); + #endif #endif mData.SetValue("tw_enable_adb_backup", "0"); |
