Support lists of files in adb.AndroidDevice.push.

Bug: http://b/166155032
Test: system/core/adb/test_device.py
Change-Id: I7a6514070b5bbb379f2652053de64a7603e988ae
This commit is contained in:
Josh Gao
2020-09-08 18:08:50 -07:00
parent 0548bafe93
commit e955f07799

View File

@@ -435,7 +435,13 @@ class AndroidDevice(object):
cmd = ['push']
if sync:
cmd.append('--sync')
cmd.extend([local, remote])
if isinstance(local, str):
cmd.extend([local, remote])
else:
cmd.extend(local)
cmd.append(remote)
return self._simple_call(cmd)
def pull(self, remote, local):