From 4b9a9298ae0cefe74774af43cbfa1f182da5ca5c Mon Sep 17 00:00:00 2001 From: Captain Throwback Date: Sat, 16 Oct 2021 16:16:02 -0400 Subject: [PATCH] gui: allow MTP even if media storage isn't present Change-Id: I6766f804fa7f116ddc436d566d9647206b0d2e69 --- gui/theme/common/languages/en.xml | 1 - partitionmanager.cpp | 6 ------ 2 files changed, 7 deletions(-) diff --git a/gui/theme/common/languages/en.xml b/gui/theme/common/languages/en.xml index f58a76e9..f1b93b55 100755 --- a/gui/theme/common/languages/en.xml +++ b/gui/theme/common/languages/en.xml @@ -615,7 +615,6 @@ MTP already enabled Failed to enable MTP MTP support not included - Media storage not found. Unable to enable MTP. [IMAGE FLASH STARTED] Image to flash: '{1}' Unable to locate '{1}' partition for flashing. diff --git a/partitionmanager.cpp b/partitionmanager.cpp index 72bd197f..9e423184 100755 --- a/partitionmanager.cpp +++ b/partitionmanager.cpp @@ -2581,12 +2581,6 @@ TWPartition *TWPartitionManager::Get_Default_Storage_Partition() bool TWPartitionManager::Enable_MTP(void) { #ifdef TW_HAS_MTP - string mtp_base_path = "/data/media"; - if (!TWFunc::Path_Exists(mtp_base_path)) { - gui_msg(Msg(msg::kWarning, "mtp_base_path_missing=Media storage not found. Unable to enable MTP.")); - return false; - } - if (mtppid) { gui_err("mtp_already_enabled=MTP already enabled"); return true;