from WhatsAppManifest import ADB with ADB( use_ssh=True, ssh_ip="<SSH-IP>", ssh_port=22, ssh_username="******", ssh_password="******", remote_bind_ip="127.0.0.1", # ADB SERVER INTERNAL IP remote_bind_port=5037 # ADB SERVER PORT ) as AdbServer: help(AdbServer)
from WhatsAppManifest import ADB, Automator # Note: We need the AdbServer class (even without using SSH) so that Automator can open the internal connection. with ADB(use_ssh=False) as AdbServer: automator = Automator(adb_server=AdbServer, adb_host="127.0.0.1", adb_port=5037) for device in automator.list_devices(state=None): help(device.adb_device)