feat: add 3 adb commands for non-root

Since fuck it anyway, thanks Sony.
This commit is contained in:
tretrauit 2024-07-01 21:20:09 +07:00
parent a18b87fa61
commit 5a82c21f14

View File

@ -129,6 +129,9 @@ def main():
if not is_root_available(): if not is_root_available():
print("Root access is not available, assuming the port is 5555") print("Root access is not available, assuming the port is 5555")
print("You'll have to start adbd manually as instructed in the README.md") print("You'll have to start adbd manually as instructed in the README.md")
run(["adb", "kill-server"])
run(["adb", "devices"])
run(["adb", "tcpip", "5555"])
adb_port = 5555 adb_port = 5555
adb_port = get_port_from_process_name("adbd") adb_port = get_port_from_process_name("adbd")
except: except: