Closed atti92 closed 3 years ago
Running the same code with the change I get the following log:
Command failed: open failed: No such file or directory
Traceback (most recent call last):
adb_device.pull("/data/local/tmp/23124124/", "asd")
File "C:\work\adb_shell\adb_shell\adb_device.py", line 548, in pull
self._pull(device_path, stream, progress_callback, adb_info, filesync_info)
File "C:\work\adb_shell\adb_shell\adb_device.py", line 575, in _pull
for cmd_id, _, data in self._filesync_read_until([constants.DATA], [constants.DONE], adb_info, filesync_info):
File "C:\work\adb_shell\adb_shell\adb_device.py", line 1149, in _filesync_read_until
cmd_id, header, data = self._filesync_read(expected_ids + finish_ids, adb_info, filesync_info)
File "C:\work\adb_shell\adb_shell\adb_device.py", line 1084, in _filesync_read
raise exceptions.AdbCommandFailureException('Command failed: {}'.format(reason))
adb_shell.exceptions.AdbCommandFailureException: Command failed: open failed: No such file or directory
INFO:root:ADB Push-Progress: /data/local/tmp/to_upload.tar.gz bytes_written:65536 total_bytes:2773139
INFO:root:ADB Push-Progress: /data/local/tmp/to_upload.tar.gz bytes_written:131072 total_bytes:2773139
...
Description
After trying to pull a file that doesn't exist, the next command SOMETIMES also fails, because it can't read the packets. I found out there is a packet which tell the reason of the FAIL, but it's not always there when it reads it.
Log
Test code I run: