summaryrefslogtreecommitdiffstats
path: root/data.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2019-01-12 05:49:52 +0100
committerEthan Yonker <dees_troy@teamw.in>2019-04-03 23:44:00 +0200
commit53796e73334ac9d87d4cb5a355fc8c1d205104f6 (patch)
treebb74fbf8593d23beddba9f899d05925b6fe03470 /data.cpp
parentFix build in 5.1 tree (diff)
downloadandroid_bootable_recovery-53796e73334ac9d87d4cb5a355fc8c1d205104f6.tar
android_bootable_recovery-53796e73334ac9d87d4cb5a355fc8c1d205104f6.tar.gz
android_bootable_recovery-53796e73334ac9d87d4cb5a355fc8c1d205104f6.tar.bz2
android_bootable_recovery-53796e73334ac9d87d4cb5a355fc8c1d205104f6.tar.lz
android_bootable_recovery-53796e73334ac9d87d4cb5a355fc8c1d205104f6.tar.xz
android_bootable_recovery-53796e73334ac9d87d4cb5a355fc8c1d205104f6.tar.zst
android_bootable_recovery-53796e73334ac9d87d4cb5a355fc8c1d205104f6.zip
Diffstat (limited to 'data.cpp')
-rwxr-xr-xdata.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/data.cpp b/data.cpp
index 92255357c..cd03d78ac 100755
--- a/data.cpp
+++ b/data.cpp
@@ -916,7 +916,12 @@ void DataManager::SetDefaultValues()
mData.SetValue("tw_app_install_status", "0"); // 0 = no status, 1 = not installed, 2 = already installed
#endif
- mData.SetValue("tw_enable_adb_backup", "0");
+ mData.SetValue("tw_enable_adb_backup", "0");
+
+ if (TWFunc::Path_Exists("/sbin/magiskboot"))
+ mConst.SetValue("tw_has_repack_tools", "1");
+ else
+ mConst.SetValue("tw_has_repack_tools", "0");
pthread_mutex_unlock(&m_valuesLock);
}