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