Allow sideloading from /tmp
Change-Id: I7ba9a8a496536ed55241e45e18297bd824d7e28c
This commit is contained in:
+5
-4
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user