summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorEthan Yonker <dees_troy@teamw.in>2014-02-26 16:23:53 +0100
committerEthan Yonker <dees_troy@teamw.in>2014-02-26 16:23:53 +0100
commit45312e551fe2381a8207a847b8bb66321b1e75af (patch)
treebfa47ee52f46f0689a5ecefe0d516d2f62ebeff2 /gui
parentRemove unneeded logging (diff)
downloadandroid_bootable_recovery-45312e551fe2381a8207a847b8bb66321b1e75af.tar
android_bootable_recovery-45312e551fe2381a8207a847b8bb66321b1e75af.tar.gz
android_bootable_recovery-45312e551fe2381a8207a847b8bb66321b1e75af.tar.bz2
android_bootable_recovery-45312e551fe2381a8207a847b8bb66321b1e75af.tar.lz
android_bootable_recovery-45312e551fe2381a8207a847b8bb66321b1e75af.tar.xz
android_bootable_recovery-45312e551fe2381a8207a847b8bb66321b1e75af.tar.zst
android_bootable_recovery-45312e551fe2381a8207a847b8bb66321b1e75af.zip
Diffstat (limited to '')
-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());
}