This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Description
Hey, I tired to pull a directory from /sdcrad/ but it fails due to reason I don't see. Do you have any idea?
Shell works fine.
Thank you!
Code:
from adb import adb_commands, sign_m2crypto
import os
signer = sign_m2crypto.M2CryptoSigner(os.path.expanduser('~/.android/adbkey'))
device = adb_commands.AdbCommands()
device.ConnectDevice(rsa_keys=[signer])
device.Pull("/sdcard/mipush")
Failure:
Traceback (most recent call last):
File "test.py", line 7, in <module>
device.Pull("/sdcard/mipush")
File "/.../adb/adb_commands.py", line 297, in Pull
self.filesync_handler.Pull(conn, device_filename, dest_file, progress_callback)
File "/.../adb/filesync_protocol.py", line 89, in Pull
for cmd_id, _, data in cnxn.ReadUntil((b'DATA',), b'DONE'):
File "/.../adb/filesync_protocol.py", line 236, in ReadUntil
cmd_id, header, data = self.Read(expected_ids + finish_ids)
File "/.../adb/filesync_protocol.py", line 221, in Read
raise usb_exceptions.AdbCommandFailureException('Command failed: {}'.format(reason))
adb.usb_exceptions.AdbCommandFailureException: Command failed: