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 ae794802ae96ae2883e3b908535b577463a61569..db9ae6fc5050e4cb58e539157e27ec0398003941 100644 |
--- a/build/android/devil/android/device_utils.py |
+++ b/build/android/devil/android/device_utils.py |
@@ -1891,7 +1891,8 @@ class DeviceUtils(object): |
DeviceUnreachableError on missing device. |
""" |
if not host_path: |
- host_path = os.path.abspath('screenshot-%s.png' % _GetTimeStamp()) |
+ host_path = os.path.abspath('screenshot-%s-%s.png' % ( |
+ self.adb.GetDeviceSerial(), _GetTimeStamp())) |
with device_temp_file.DeviceTempFile(self.adb, suffix='.png') as device_tmp: |
self.RunShellCommand(['/system/bin/screencap', '-p', device_tmp.name], |
check_return=True) |