summaryrefslogtreecommitdiff
path: root/adb/file_sync_service.cpp
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2018-04-03 10:54:39 -0700
committerElliott Hughes <enh@google.com>2018-04-05 19:45:27 -0700
commit792581f1835a425432632bca052deb478276f25f (patch)
tree9531422a0b0c9b3d168d617562eea264062d8496 /adb/file_sync_service.cpp
parenta4217d03a778b4d228d533b66267ee006cffec7e (diff)
Support /odm and /product in "adb remount" and "adb sync".
Bug: http://b/77587036 Test: `adb remount` and `adb sync` still work on hikey (cherry picked from commit 57e97cb7aac9873745ca14dcb005d61fda6a65d0) Change-Id: Ie49d703dac04e2fb8eda420b9253b8d45b6e1479
Diffstat (limited to 'adb/file_sync_service.cpp')
-rw-r--r--adb/file_sync_service.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/adb/file_sync_service.cpp b/adb/file_sync_service.cpp
index 9a87931a34..11289934e3 100644
--- a/adb/file_sync_service.cpp
+++ b/adb/file_sync_service.cpp
@@ -48,10 +48,8 @@
using android::base::StringPrintf;
static bool should_use_fs_config(const std::string& path) {
- // TODO: use fs_config to configure permissions on /data.
- return android::base::StartsWith(path, "/system/") ||
- android::base::StartsWith(path, "/vendor/") ||
- android::base::StartsWith(path, "/oem/");
+ // TODO: use fs_config to configure permissions on /data too.
+ return !android::base::StartsWith(path, "/data/");
}
static bool update_capabilities(const char* path, uint64_t capabilities) {