From 7a6b65c04069951ed6a3e5246b843fd1c07363d6 Mon Sep 17 00:00:00 2001 From: Alone_Monkey Date: Fri, 13 Jul 2018 09:27:37 +0800 Subject: [PATCH] change type tether to usb --- dump.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dump.py b/dump.py index ee23df4..82cf4f2 100755 --- a/dump.py +++ b/dump.py @@ -50,7 +50,7 @@ def get_usb_iphone(): device = None while device is None: - devices = [dev for dev in device_manager.enumerate_devices() if dev.type == 'tether'] + devices = [dev for dev in device_manager.enumerate_devices() if dev.type == 'usb'] if len(devices) == 0: print('Waiting for USB device...') changed.wait() @@ -327,4 +327,4 @@ if __name__ == '__main__': if os.path.exists(PAYLOAD_PATH): shutil.rmtree(PAYLOAD_PATH) - sys.exit(exit_code) \ No newline at end of file + sys.exit(exit_code)