[fix] Waiting for the application to open

This commit is contained in:
AloneMonkey
2018-01-23 19:17:12 +08:00
parent 1f69b9fd9f
commit 640ff0a9a3

View File

@@ -10,6 +10,7 @@ import frida
import threading import threading
import os import os
import shutil import shutil
import time
reload(sys) reload(sys)
sys.setdefaultencoding('utf8') sys.setdefaultencoding('utf8')
@@ -114,6 +115,8 @@ def main(target):
opened.wait(); opened.wait();
session.detach(); session.detach();
createDir(os.getcwd()+"/"+OUTPUT) createDir(os.getcwd()+"/"+OUTPUT)
print 'Waiting for the application to open......'
time.sleep(5);
print "start dump target app......" print "start dump target app......"
session = device.attach(name); session = device.attach(name);
script = loadJsFile(session, DUMP_JS); script = loadJsFile(session, DUMP_JS);