aboutsummaryrefslogtreecommitdiff
path: root/data.cpp
diff options
context:
space:
mode:
authornailyk-fr <nailyk_git@nailyk.fr>2017-08-08 21:23:35 +0200
committernebrassy <nebras30@gmail.com>2020-04-26 16:38:29 +0200
commitf2198f40b8e3436e5fdf83bec528ddadf6a05928 (patch)
tree18e18c45b03f05afc7772c936ebd4d93ff52afae /data.cpp
parent057197070ea5b38682a594ce196466a6e6c47024 (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-xdata.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/data.cpp b/data.cpp
index 088dbda6..d781e8a8 100755
--- a/data.cpp
+++ b/data.cpp
@@ -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");