Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some apps will hang and fail to decrypt. only workaround for this is to launch them before u run the script. #1

Open
Amachik opened this issue Feb 25, 2023 · 0 comments

Comments

@Amachik
Copy link

Amachik commented Feb 25, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant