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

device.resume is not working on iOS #462

Open
ChiChou opened this issue Apr 5, 2023 · 2 comments
Open

device.resume is not working on iOS #462

ChiChou opened this issue Apr 5, 2023 · 2 comments

Comments

@ChiChou
Copy link
Contributor

ChiChou commented Apr 5, 2023

I got a lot of issues regarding weird crashes. After a while I finally realized the root cause. When an app is spawned by frida, it never gets resumed, causing SpringBoard to kill it (a.k.a. 0x8badf00d).

Reproduce:

const frida = require('frida')

async function main() {
    const dev = await frida.getUsbDevice();
    const pid = await dev.spawn('com.google.chrome.ios');
    await dev.resume(pid);
}

main()

Or

import frida


dev = frida.get_usb_device()
pid = dev.spawn('com.google.chrome.ios')

import time
time.sleep(1)

dev.resume(pid)

However frida-tools -f works perfectly on iOS.

I checked the source and it's no different than the python test case above, which makes no sense.

@ChiChou
Copy link
Contributor Author

ChiChou commented Apr 6, 2023

I realized that I need to attach the target to make it really resume...

@ChiChou ChiChou closed this as completed Apr 6, 2023
@oleavr
Copy link
Member

oleavr commented Apr 6, 2023

Thanks for reporting! It is not a requirement to attach() before resume(). So we should figure out what's causing this.

@oleavr oleavr reopened this Apr 6, 2023
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

2 participants