summaryrefslogtreecommitdiffstats
path: root/gui/action.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2017-03-06 19:42:54 +0100
committerEthan Yonker <dees_troy@teamw.in>2017-03-06 19:42:54 +0100
commit64c5c0a9ba01f590d15bd0969d92d1473daf6600 (patch)
treecc561f982e669d3b67f6e45aa719c8e0bb3c0372 /gui/action.cpp
parentcrypto: Use system's vold for decryption (diff)
downloadandroid_bootable_recovery-64c5c0a9ba01f590d15bd0969d92d1473daf6600.tar
android_bootable_recovery-64c5c0a9ba01f590d15bd0969d92d1473daf6600.tar.gz
android_bootable_recovery-64c5c0a9ba01f590d15bd0969d92d1473daf6600.tar.bz2
android_bootable_recovery-64c5c0a9ba01f590d15bd0969d92d1473daf6600.tar.lz
android_bootable_recovery-64c5c0a9ba01f590d15bd0969d92d1473daf6600.tar.xz
android_bootable_recovery-64c5c0a9ba01f590d15bd0969d92d1473daf6600.tar.zst
android_bootable_recovery-64c5c0a9ba01f590d15bd0969d92d1473daf6600.zip
Diffstat (limited to 'gui/action.cpp')
-rw-r--r--gui/action.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/gui/action.cpp b/gui/action.cpp
index 3899f5047..a39515828 100644
--- a/gui/action.cpp
+++ b/gui/action.cpp
@@ -1892,7 +1892,7 @@ int GUIAction::checkforapp(std::string arg __unused)
LOGINFO("Unable to read sdk version from build prop\n");
else
LOGINFO("SDK version too low for TWRP app (%i < 14)\n", sdkver);
- DataManager::SetValue("tw_app_install_status", 1); // 0 = no status, 1 = not installed, 2 = already installed
+ DataManager::SetValue("tw_app_install_status", 1); // 0 = no status, 1 = not installed, 2 = already installed or do not install
goto exit;
}
if (PartitionManager.Mount_By_Path("/system", false)) {
@@ -1905,7 +1905,7 @@ int GUIAction::checkforapp(std::string arg __unused)
install_path += "/twrpapp";
if (TWFunc::Path_Exists(install_path)) {
LOGINFO("App found at '%s'\n", install_path.c_str());
- DataManager::SetValue("tw_app_install_status", 2); // 0 = no status, 1 = not installed, 2 = already installed
+ DataManager::SetValue("tw_app_install_status", 2); // 0 = no status, 1 = not installed, 2 = already installed or do not install
goto exit;
}
}
@@ -1920,11 +1920,14 @@ int GUIAction::checkforapp(std::string arg __unused)
continue;
closedir(d);
LOGINFO("App found at '%s/%s'\n", parent_path, p->d_name);
- DataManager::SetValue("tw_app_install_status", 2); // 0 = no status, 1 = not installed, 2 = already installed
+ DataManager::SetValue("tw_app_install_status", 2); // 0 = no status, 1 = not installed, 2 = already installed or do not install
goto exit;
}
closedir(d);
}
+ } else {
+ LOGINFO("Data partition cannot be mounted during app check\n");
+ DataManager::SetValue("tw_app_install_status", 2); // 0 = no status, 1 = not installed, 2 = already installed or do not install
}
} else
simulate_progress_bar();