You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if u launch them before, it will use else and that way it will work.
if u dont launch the app before the decryption, it will use if not pid which will fail to work.
u can test this with app called HeadBall 2. but this app is just one of many.
def open_target_app(device, name_or_bundleid):
print('Start the target app {}'.format(name_or_bundleid))
pid = ''
session = None
display_name = ''
bundle_identifier = ''
for application in get_applications(device):
print("for application")
if name_or_bundleid == application.identifier or name_or_bundleid == application.name:
print("if name_or_bundleid")
pid = application.pid
display_name = application.name
bundle_identifier = application.identifier
try:
if not pid:
print("if not pid")
pid = device.spawn([bundle_identifier])
session = device.attach(pid)
device.resume(pid)
else:
print("else")
session = device.attach(pid)
except Exception as e:
print(e)
return session, display_name, bundle_identifier
The text was updated successfully, but these errors were encountered:
if u launch them before, it will use else and that way it will work.
if u dont launch the app before the decryption, it will use if not pid which will fail to work.
u can test this with app called HeadBall 2. but this app is just one of many.
The text was updated successfully, but these errors were encountered: