From b2e6c55d8ba1332efb7bb4c5f88b15a01e40e35c Mon Sep 17 00:00:00 2001 From: AloneMonkey Date: Wed, 7 Feb 2018 13:08:09 +0800 Subject: [PATCH] [bugfix] fix global declaration --- dump.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dump.py b/dump.py index eba4198..b9a5552 100755 --- a/dump.py +++ b/dump.py @@ -196,6 +196,7 @@ def create_dir(path): print path + u" is existed!"; def open_target_app(isbundleid, value): + global session; device = get_usb_iphone(); name = u'SpringBoard'; print "open target app......" @@ -212,6 +213,7 @@ def open_target_app(isbundleid, value): time.sleep(5); def start_dump(target): + global session; print "start dump target app......" device = get_usb_iphone(); session = device.attach(target);