diff --git a/guiscrcpy/launcher.py b/guiscrcpy/launcher.py index a948d516..5b151ae3 100644 --- a/guiscrcpy/launcher.py +++ b/guiscrcpy/launcher.py @@ -337,7 +337,7 @@ def start_act(self): self.progressBar.setValue(5) devices_list = adb.devices(adb.path) - + import pdb; pdb.set_trace() if devices_list[0] == "\n": self.runningNot.setText("DEVICE IS NOT CONNECTED") self.progressBar.setValue(0) diff --git a/guiscrcpy/lib/check.py b/guiscrcpy/lib/check.py index 8e003b2d..e0f94e16 100644 --- a/guiscrcpy/lib/check.py +++ b/guiscrcpy/lib/check.py @@ -124,6 +124,7 @@ def devices(increment=''): raise FileNotFoundError( "guiscrcpy couldn't find adb. Please specify path to adb in configuration file") proc = Popen(_(increment + " devices"), stdout=PIPE) - output = decode_process(proc)[1].split('\t') + output = [[y.strip() for y in x.split('\t')] for x in decode_process(proc)[1:]][:-1] + logging.debug("ADB: {}".format(output)) return output