summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <bigbiff@teamw.in>2014-09-22 02:46:50 +0200
committerDees Troy <dees_troy@teamw.in>2014-10-07 20:55:39 +0200
commit7e22c2760986339e7c1288d0ddc74709908a36b9 (patch)
tree9738762f634f955e9401a4bf2a104c9134edfc06
parentRemove extra slashes from zip path in openrecovery (diff)
downloadandroid_bootable_recovery-7e22c2760986339e7c1288d0ddc74709908a36b9.tar
android_bootable_recovery-7e22c2760986339e7c1288d0ddc74709908a36b9.tar.gz
android_bootable_recovery-7e22c2760986339e7c1288d0ddc74709908a36b9.tar.bz2
android_bootable_recovery-7e22c2760986339e7c1288d0ddc74709908a36b9.tar.lz
android_bootable_recovery-7e22c2760986339e7c1288d0ddc74709908a36b9.tar.xz
android_bootable_recovery-7e22c2760986339e7c1288d0ddc74709908a36b9.tar.zst
android_bootable_recovery-7e22c2760986339e7c1288d0ddc74709908a36b9.zip
-rwxr-xr-xmtp/node.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/mtp/node.cpp b/mtp/node.cpp
index 1a09c85ae..17047ce87 100755
--- a/mtp/node.cpp
+++ b/mtp/node.cpp
@@ -105,7 +105,6 @@ void Node::addProperties(int storageID, int parent_object) {
uint64_t puid;
off_t file_size = 0;
std::string mtimeStr = "00101T000000";
- std::string atimeStr = "00101T000000";
std::string mtpidStr = static_cast<std::ostringstream*>( &(std::ostringstream() << mtpid) )->str();
std::string storageIDStr = static_cast<std::ostringstream*>( &(std::ostringstream() << storageID) )->str();
@@ -117,7 +116,6 @@ void Node::addProperties(int storageID, int parent_object) {
if (S_ISDIR(st.st_mode))
mFormat = MTP_FORMAT_ASSOCIATION; // folder
mtimeStr = static_cast<std::ostringstream*>( &(std::ostringstream() << st.st_mtime) )->str();
- atimeStr = static_cast<std::ostringstream*>( &(std::ostringstream() << st.st_atime) )->str();
}
addProperty(MTP_PROPERTY_STORAGE_ID, storageID, "", MTP_TYPE_UINT32);
@@ -131,7 +129,7 @@ void Node::addProperties(int storageID, int parent_object) {
addProperty(MTP_PROPERTY_PERSISTENT_UID, puid, "", MTP_TYPE_UINT128);
addProperty(MTP_PROPERTY_NAME, 0, basename(getPath().c_str()), MTP_TYPE_STR);
addProperty(MTP_PROPERTY_DISPLAY_NAME, 0, basename(getPath().c_str()), MTP_TYPE_STR);
- addProperty(MTP_PROPERTY_DATE_ADDED, 0, atimeStr, MTP_TYPE_STR);
+ addProperty(MTP_PROPERTY_DATE_ADDED, 0, mtimeStr, MTP_TYPE_STR);
addProperty(MTP_PROPERTY_DESCRIPTION, 0, "", MTP_TYPE_STR);
addProperty(MTP_PROPERTY_ARTIST, 0, "", MTP_TYPE_STR);
addProperty(MTP_PROPERTY_ALBUM_NAME, 0, "", MTP_TYPE_STR);