gui: allow MTP even if media storage isn't present
Change-Id: I6766f804fa7f116ddc436d566d9647206b0d2e69
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user