gui: allow MTP even if media storage isn't present
Change-Id: I6766f804fa7f116ddc436d566d9647206b0d2e69
diff --git a/gui/theme/common/languages/en.xml b/gui/theme/common/languages/en.xml
index f58a76e..f1b93b5 100755
--- a/gui/theme/common/languages/en.xml
+++ b/gui/theme/common/languages/en.xml
@@ -615,7 +615,6 @@
<string name="mtp_already_enabled">MTP already enabled</string>
<string name="mtp_fail">Failed to enable MTP</string>
<string name="no_mtp">MTP support not included</string>
- <string name="mtp_base_path_missing">Media storage not found. Unable to enable MTP.</string>
<string name="image_flash_start">[IMAGE FLASH STARTED]</string>
<string name="img_to_flash">Image to flash: '{1}'</string>
<string name="flash_unable_locate">Unable to locate '{1}' partition for flashing.</string>
diff --git a/partitionmanager.cpp b/partitionmanager.cpp
index 72bd197..9e42318 100755
--- a/partitionmanager.cpp
+++ b/partitionmanager.cpp
@@ -2581,12 +2581,6 @@
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;