summaryrefslogtreecommitdiffstats
path: root/media/mtp
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2010-12-13 21:50:09 -0800
committerMike Lockwood <lockwood@android.com>2010-12-13 21:50:09 -0800
commitfeafefb1ed8d86100161f521fc7a44b819bd9529 (patch)
tree446c650807f50449522c7c615f95b9b265ba6d07 /media/mtp
parent985f838934510983d8a887461e98dca60a6e858f (diff)
downloadframeworks_av-feafefb1ed8d86100161f521fc7a44b819bd9529.tar.gz
frameworks_av-feafefb1ed8d86100161f521fc7a44b819bd9529.tar.bz2
frameworks_av-feafefb1ed8d86100161f521fc7a44b819bd9529.zip
MTP: check for replacing existing files via the database instead of the file system
Change-Id: I283dab48f24d2836e48fab8e49764a9cdf13de55 Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'media/mtp')
-rw-r--r--media/mtp/MtpServer.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/media/mtp/MtpServer.cpp b/media/mtp/MtpServer.cpp
index b371e41567..236cd0a450 100644
--- a/media/mtp/MtpServer.cpp
+++ b/media/mtp/MtpServer.cpp
@@ -683,10 +683,6 @@ MtpResponseCode MtpServer::doSendObjectInfo() {
path += "/";
path += (const char *)name;
- // file should not already exist
- if (access(path, R_OK) == 0)
- return MTP_RESPONSE_GENERAL_ERROR;
-
// check space first
if (mSendObjectFileSize > storage->getFreeSpace())
return MTP_RESPONSE_STORAGE_FULL;