den4uk/andriller

AttributeError: exception for NoneType

simone1998 opened this issue · 1 comments

During run on Debian based distro (Parrot) and recovering data from a Samsung S3 New, when click
on extract (via ADB)

  1. without check "use AB method" and "extract shared storage" i get this
    INFO:andriller.windows:Acquiring data...
    INFO:andriller.windows:Acquiring databases via root...
    Exception in thread Thread-3:
    Traceback (most recent call last):
    File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
    File "/usr/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
    File "/home/simo/env/lib/python3.8/site-packages/andriller/utils.py", line 40, in command
    return method(self, *args, **kwargs)
    File "/home/simo/env/lib/python3.8/site-packages/andriller/windows.py", line 534, in RunUsbExtraction
    drill.DataAcquisition(
    File "/home/simo/env/lib/python3.8/site-packages/andriller/driller.py", line 307, in DataAcquisition
    self.download_file(file_path)
    File "/home/simo/env/lib/python3.8/site-packages/andriller/driller.py", line 202, in download_file
    remote_size = self.adb.get_size(file_path, su=self.su)
    File "/home/simo/env/lib/python3.8/site-packages/andriller/adb_conn.py", line 172, in get_size
    if not size.isdigit():
    AttributeError: 'NoneType' object has no attribute 'isdigit'

  2. check both andriller not recover any files

Thanks (I hope not make a mistake)

The bug was in the file size retrieval code. This has been addressed in #38.