Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

Commit

Permalink
Update guiscrcpy.check.adb to detect multiple instances
Browse files Browse the repository at this point in the history
  • Loading branch information
srevinsaju committed Apr 6, 2020
1 parent 8ab6d14 commit 9e3b56a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion guiscrcpy/launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 2 additions & 1 deletion guiscrcpy/lib/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9e3b56a

Please sign in to comment.