summaryrefslogtreecommitdiffstats
path: root/gui/action.cpp
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2014-02-26 20:58:51 +0100
committerGerrit Code Review <gerrit2@gerrit>2014-02-26 20:58:51 +0100
commit04a5b0e0e2f8dc0e5e295b8ee60b33c94a353974 (patch)
tree38dfaef868013b8dd7be1dfff5751c51059f4bce /gui/action.cpp
parentAdd word wrap to console output and fix scrolling in console (diff)
parentAllow sideloading from /tmp (diff)
downloadandroid_bootable_recovery-04a5b0e0e2f8dc0e5e295b8ee60b33c94a353974.tar
android_bootable_recovery-04a5b0e0e2f8dc0e5e295b8ee60b33c94a353974.tar.gz
android_bootable_recovery-04a5b0e0e2f8dc0e5e295b8ee60b33c94a353974.tar.bz2
android_bootable_recovery-04a5b0e0e2f8dc0e5e295b8ee60b33c94a353974.tar.lz
android_bootable_recovery-04a5b0e0e2f8dc0e5e295b8ee60b33c94a353974.tar.xz
android_bootable_recovery-04a5b0e0e2f8dc0e5e295b8ee60b33c94a353974.tar.zst
android_bootable_recovery-04a5b0e0e2f8dc0e5e295b8ee60b33c94a353974.zip
Diffstat (limited to 'gui/action.cpp')
-rw-r--r--gui/action.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/gui/action.cpp b/gui/action.cpp
index 344ced3b6..453304ceb 100644
--- a/gui/action.cpp
+++ b/gui/action.cpp
@@ -1105,11 +1105,12 @@ int GUIAction::doAction(Action action, int isThreaded /* = 0 */)
int wipe_dalvik = 0;
string Sideload_File;
- if (!PartitionManager.Mount_Current_Storage(true)) {
- operation_end(1, simulate);
- return 0;
+ if (!PartitionManager.Mount_Current_Storage(false)) {
+ gui_print("Using RAM for sideload storage.\n");
+ Sideload_File = "/tmp/sideload.zip";
+ } else {
+ Sideload_File = DataManager::GetCurrentStoragePath() + "/sideload.zip";
}
- Sideload_File = DataManager::GetCurrentStoragePath() + "/sideload.zip";
if (TWFunc::Path_Exists(Sideload_File)) {
unlink(Sideload_File.c_str());
}