summaryrefslogtreecommitdiffstats
path: root/data.cpp
diff options
context:
space:
mode:
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);
}