Merge "can't copy/paste folders on sdcard from PC side in MTP mode" am: 130e1d19c8 am: ab26cfa48b am: 3bd0212e58

am: abe5ec4c84

Change-Id: I5bfb8399774e1e87fc03fe603408be69ddc66979
gugelfrei
nolyn.lu 5 years ago committed by android-build-merger
commit 8dd02f16dc

@ -42,6 +42,7 @@
#include "MtpServer.h"
#include "MtpStorage.h"
#include "MtpStringBuffer.h"
#include "android-base/strings.h"
namespace android {
static const int SN_EVENT_LOG_ID = 0x534e4554;
@ -956,6 +957,11 @@ MtpResponseCode MtpServer::doSendObjectInfo() {
if (!mData.getString(modified)) return MTP_RESPONSE_INVALID_PARAMETER; // date modified
// keywords follow
int type = storage->getType();
if (type == MTP_STORAGE_REMOVABLE_RAM) {
std::string str = android::base::Trim((const char*)name);
name.set(str.c_str());
}
ALOGV("name: %s format: 0x%04X (%s)\n", (const char*)name, format,
MtpDebug::getFormatCodeName(format));
time_t modifiedTime;

Loading…
Cancel
Save