Index: build/android/devil/android/device_utils.py |
diff --git a/build/android/devil/android/device_utils.py b/build/android/devil/android/device_utils.py |
index e2df2d77da3a232c120ccab0de92b82546c6f8f0..c5538e632c73effcfec94e502f0fca69aaf20f4c 100644 |
--- a/build/android/devil/android/device_utils.py |
+++ b/build/android/devil/android/device_utils.py |
@@ -1436,8 +1436,10 @@ class DeviceUtils(object): |
['cat', device_path], as_root=as_root, check_return=True)) |
elif as_root and self.NeedsSU(): |
with device_temp_file.DeviceTempFile(self.adb) as device_temp: |
- self.RunShellCommand(['cp', device_path, device_temp.name], |
- as_root=True, check_return=True) |
+ cmd = 'SRC=%s DEST=%s;cp "$SRC" "$DEST" && chmod 666 "$DEST"' % ( |
jbudorick
2015/10/16 01:16:55
I'm going to have to mull over that Shrink functio
|
+ cmd_helper.SingleQuote(device_path), |
+ cmd_helper.SingleQuote(device_temp.name)) |
+ self.RunShellCommand(cmd, as_root=True, check_return=True) |
return self._ReadFileWithPull(device_temp.name) |
else: |
return self._ReadFileWithPull(device_path) |