From 45312e551fe2381a8207a847b8bb66321b1e75af Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Wed, 26 Feb 2014 09:23:53 -0600 Subject: Allow sideloading from /tmp Change-Id: I7ba9a8a496536ed55241e45e18297bd824d7e28c --- gui/action.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'gui') 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()); } -- cgit v1.2.3