-
Notifications
You must be signed in to change notification settings - Fork 1
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
Starting frida might fail after device reset #32
Comments
I tried changing the emulator arguments a bit and realized that for resetting we need
|
We don't need |
I now get this consistently in https://github.com/tweaselORG/cyanoacrylate, if I try to start an analysis with the
|
We should start by getting rid of the |
This doesn't really change much. It is really weird, if I use the command in the console directly, it nevers runs into any problems. But when I start it from cyanoacrylate, I always get this error or |
You've changed it to Are you using an emulator or a physical device? I have witnessed broken snapshots in the emulator unfortunately many times. But that shouldn't give you The As for the other thing, not sure. |
I'm currently doing some fairly unimportant iOS reverse-engineering. Should I continue with that or rather look into this? I've also noticed the Frida starting being flaky. |
I think this is more important tbh. |
Oh, wait. That's not a good idea, that will wait forever for the Frida process to terminate… You could not I just noticed that
But while that does detach when I'm inside an |
This would work: const proc = execa('adb', ['shell', '/data/local/tmp/frida-server --daemonize'], { detached: true });
proc.unref(); But it isn't exactly great either. While appstraction won't wait for the |
This is really odd. With |
OK, after an |
I have missed the obvious and clean way. :D We use |
But now it sometimes fails to start Frida (the timeout runs out). Re-trying again immediately after does work. sigh I guess we'll have to build in retries? |
Ugh. The problem with that is that (for some reason…), the
|
I have found a way to get that to detach, after all: According to the help:
|
Great, now I broke my emulator snapshot. That happens way too often. Why are they so fragile? :( |
Nice! That seems to have fixed it. I tested it by running |
Ok, frida doesn't give me any troubles anymore, but suddenly the same error occurs *every time* it tries to setup the WireGuard proxy. Same errors, either I even started to use |
In the emulator example, the device is first ensured and then reset to a snapshot. After the reset, sometimes the frida server can not be started again in
ensureFrida
. On my linux machine, this sometimes fails withdevice offline
(see detailed error message below), but it also works most of the time.Funnily enough, now I cannot reproduce this anymore.
The text was updated successfully, but these errors were encountered: