-
Notifications
You must be signed in to change notification settings - Fork 47
Description
Ok, so I run aafm with my phone plugged in, and it gives 'error: device not found'. Then i run aafm again a second later, and it works.
Its probably a simple fix by adding a second scan with a delay on startup.
here is the output
First run
EXECUTE ('adb', 'devices')
EXECUTE ('adb', '-s', '', 'shell', 'cat', '/system/build.prop')
error: device not found
EXECUTE ('adb', '-s', '', 'shell', 'cat', '/system/build.prop')
error: device not found
EXECUTE ('adb', '-s', '6a7165c6', 'shell', 'cat', '/system/build.prop')
EXECUTE ('adb', '-s', '*', 'shell', 'ls', '--help')
error: device not found
EXECUTE ('adb', 'devices')
EXECUTE ('adb', '-s', '6a7165c6', 'shell', 'cat', '/system/build.prop')
EXECUTE ('adb', '-s', '6a7165c6', 'shell', 'ls', '--help')
Traceback (most recent call last):
File "/opt/aafm/src/aafm-gui.py", line 883, in
gui = Aafm_GUI()
File "/opt/aafm/src/aafm-gui.py", line 81, in init
self.refresh_menu_devices()
File "/opt/aafm/src/aafm-gui.py", line 177, in refresh_menu_devices
self.refresh_device_files()
File "/opt/aafm/src/aafm-gui.py", line 246, in refresh_device_files
self.device_treeViewFile.load_data(self.dir_scan_device(self.aafm.device_cwd))
AttributeError: Aafm_GUI instance has no attribute 'device_treeViewFile'
Second run
EXECUTE ('adb', 'devices')
EXECUTE ('adb', '-s', '6a7165c6', 'shell', 'cat', '/system/build.prop')
EXECUTE ('adb', '-s', '6a7165c6', 'shell', 'ls', '--help')
EXECUTE ('adb', 'devices')
EXECUTE ('adb', '-s', '6a7165c6', 'shell', 'cat', '/system/build.prop')
EXECUTE ('adb', '-s', '6a7165c6', 'shell', 'ls', '-l', '-a', '/mnt/external_sd/Audiobooks/')
EXECUTE ('adb', '-s', '6a7165c6', 'shell', 'df', '/mnt/external_sd/Audiobooks')
Thanks for an awesome prog