diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2019-01-12 05:49:52 +0100 |
---|---|---|
committer | Ethan Yonker <dees_troy@teamw.in> | 2019-04-03 23:44:00 +0200 |
commit | 53796e73334ac9d87d4cb5a355fc8c1d205104f6 (patch) | |
tree | bb74fbf8593d23beddba9f899d05925b6fe03470 /data.cpp | |
parent | Fix build in 5.1 tree (diff) | |
download | android_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-x | data.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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); } |