fix: do not try to detect adbd port if no root

This commit is contained in:
2025-01-04 22:25:45 +07:00
parent 5a82c21f14
commit fa12cfc815

View File

@ -133,7 +133,8 @@ def main():
run(["adb", "devices"])
run(["adb", "tcpip", "5555"])
adb_port = 5555
adb_port = get_port_from_process_name("adbd")
else:
adb_port = get_port_from_process_name("adbd")
except:
pass
if adb_port is None: