Index: build/android/pylib/android_commands.py |
diff --git a/build/android/pylib/android_commands.py b/build/android/pylib/android_commands.py |
index 46bc3e44d0b039a45635841eea83babb84e83bd6..793667f8199b963680a016953c91cb0bdee598c7 100644 |
--- a/build/android/pylib/android_commands.py |
+++ b/build/android/pylib/android_commands.py |
@@ -682,10 +682,9 @@ class AndroidCommands(object): |
self.RunShellCommand(self._util_wrapper + ' ' + MD5SUM_DEVICE_PATH + |
' ' + device_path)) |
assert os.path.exists(local_path), 'Local path not found %s' % local_path |
- hashes_on_host = _ComputeFileListHash( |
- subprocess.Popen( |
- '%s_host %s' % (self._md5sum_path, local_path), |
- stdout=subprocess.PIPE, shell=True).stdout) |
+ md5sum_output = cmd_helper.GetCmdOutput( |
+ ['%s_host' % self._md5sum_path, local_path]) |
+ hashes_on_host = _ComputeFileListHash(md5sum_output) |
if hashes_on_device == hashes_on_host: |
return |