Skip to content

越狱设备执行到device.attach(pid, realm="native")超时了,app卡住了 #198

@Hubbard1999

Description

@Hubbard1999

def open_target_app(device, name):
print('Start the target app {}'.format(name))

pid = device.get_process(name).pid
session = None
display_name = name
bundle_identifier = ''

try:
    if not pid:
        pid = device.spawn([bundle_identifier])
        session = device.attach(pid)
        device.resume(pid)
    else:
        session = device.attach(pid, realm="native")
except Exception as e:
    print(e)

return session, display_name, bundle_identifier

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions