summaryrefslogtreecommitdiffstats
path: root/adb/transport.cpp
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2019-02-20 13:01:40 -0800
committerJosh Gao <jmgao@google.com>2019-02-20 13:17:56 -0800
commit7b1cb66a8351e0d2d4dd24b0d83a1f8dc7ea42b3 (patch)
treec38f9dc31bf1d2defd3af0afdaf651a2c4d1252e /adb/transport.cpp
parent3ea374f54ca152e9df7cef46435d64745de69c87 (diff)
downloadsystem_core-7b1cb66a8351e0d2d4dd24b0d83a1f8dc7ea42b3.tar.gz
system_core-7b1cb66a8351e0d2d4dd24b0d83a1f8dc7ea42b3.tar.bz2
system_core-7b1cb66a8351e0d2d4dd24b0d83a1f8dc7ea42b3.zip
adb: update symlink timestamps.
Bug: http://b/120162375 Test: adb sync; adb shell touch -h -d 2008-01-0101:01:01 /system/bin/ls; adb sync; adb sync Change-Id: Iedf54528b164913739c66c71d20006e484a4f5e4
Diffstat (limited to 'adb/transport.cpp')
-rw-r--r--adb/transport.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/adb/transport.cpp b/adb/transport.cpp
index 90f94ee1e..0c7b0b69b 100644
--- a/adb/transport.cpp
+++ b/adb/transport.cpp
@@ -71,6 +71,7 @@ const char* const kFeaturePushSync = "push_sync";
const char* const kFeatureApex = "apex";
const char* const kFeatureFixedPushMkdir = "fixed_push_mkdir";
const char* const kFeatureAbb = "abb";
+const char* const kFeatureFixedPushSymlinkTimestamp = "fixed_push_symlink_timestamp";
namespace {
@@ -1005,8 +1006,13 @@ size_t atransport::get_max_payload() const {
const FeatureSet& supported_features() {
// Local static allocation to avoid global non-POD variables.
static const FeatureSet* features = new FeatureSet{
- kFeatureShell2, kFeatureCmd, kFeatureStat2,
- kFeatureFixedPushMkdir, kFeatureApex, kFeatureAbb,
+ kFeatureShell2,
+ kFeatureCmd,
+ kFeatureStat2,
+ kFeatureFixedPushMkdir,
+ kFeatureApex,
+ kFeatureAbb,
+ kFeatureFixedPushSymlinkTimestamp,
// Increment ADB_SERVER_VERSION when adding a feature that adbd needs
// to know about. Otherwise, the client can be stuck running an old
// version of the server even after upgrading their copy of adb.