frida icon indicating copy to clipboard operation
frida copied to clipboard

App Spawning Issue (Time Out)

Open b1naryTR opened this issue 2 years ago • 15 comments

When I try to spawn processes with -f flag app simply will not spawn. I am using crDroid 9.4 on my Poco F1. Eg: frida -U -l .\frida-script.js -f com.beemdevelopment.aegis command outputs;

PS C:\Users\PC1\Desktop> frida -U -l .\frida-script.js -f com.beemdevelopment.aegis
     ____
    / _  |   Frida 16.0.18 - A world-class dynamic instrumentation toolkit
   | (_| |
    > _  |   Commands:
   /_/ |_|       help      -> Displays the help system
   . . . .       object?   -> Display information about 'object'
   . . . .       exit/quit -> Exit
   . . . .
   . . . .   More info at https://frida.re/docs/home/
   . . . .
   . . . .   Connected to POCO F1 (id=4c5d0a5d)
Failed to spawn: unexpectedly timed out while waiting for signal from process with PID 23571

There is a random ass service on that PID. ps -A | grep 23571 outputs; root 23571 765 14789992 55336 __skb_wait_for_more_packets 0 S usap64 When I kill that PID frida just "times out" from another PID.

Here is some device info to help debugging; Linux localhost 4.9.337-perf-g153a7273b25b #1 SMP PREEMPT Mon Apr 17 14:40:42 EEST 2023 aarch64 Toybox Build Number: TQ2A.230405.003.E1 Android 13 (API 33) - April 2023 Security Patch

b1naryTR avatar May 06 '23 20:05 b1naryTR

Update: Still same on crDroid 9.5 with May 2023 security patch.

b1naryTR avatar May 08 '23 00:05 b1naryTR

I am facing the same issue with a Poco x3 pro: https://github.com/frida/frida/issues/2516

Are you running MIUI with xiaomi.eu or a AOESP based ROM @b1naryTR?

LaiKash avatar May 17 '23 08:05 LaiKash

I am facing the same issue with a Poco x3 pro: #2516

Are you running MIUI with xiaomi.eu or a AOESP based ROM @b1naryTR?

Nope, I am on crDroid which is based on LineageOS.

b1naryTR avatar May 17 '23 08:05 b1naryTR

I am facing the same issue with a Poco x3 pro: #2516 Are you running MIUI with xiaomi.eu or a AOESP based ROM @b1naryTR?

Nope, I am on crDroid which is based on LineageOS.

Then it should be related with the security patch or Android 13 for Poco devices. Was it working in a previous security patch version?

LaiKash avatar May 17 '23 08:05 LaiKash

Yeah, I think so.

On Wed, 17 May 2023, 11:18 LaiKash, @.***> wrote:

I am facing the same issue with a Poco x3 pro: #2516 https://github.com/frida/frida/issues/2516 Are you running MIUI with xiaomi.eu or a AOESP based ROM @b1naryTR https://github.com/b1naryTR?

Nope, I am on crDroid which is based on LineageOS.

Then it should be related with the security patch or Android 13 for Poco devices. Was it working in a previous security patch version?

— Reply to this email directly, view it on GitHub https://github.com/frida/frida/issues/2509#issuecomment-1550960463, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASVG7XJ2C7LH2OFO64OCCKTXGSCWHANCNFSM6AAAAAAXYLBAO4 . You are receiving this because you were mentioned.Message ID: @.***>

b1naryTR avatar May 18 '23 06:05 b1naryTR

I have same issue with latest frida-script.ja and frida-tools/frida-server run on android 10/samsung galaxy s9

tbm98 avatar Jun 05 '23 16:06 tbm98

Lastweek it's work but today I found same issue
Android 11 Frida version : frida-server-16.0.19-android-arm64

QQbit avatar Jun 12 '23 04:06 QQbit

Same Android 11 Frida version: 16.0.19

endlessmeal avatar Jun 13 '23 09:06 endlessmeal

Same issue on:

  • Android 12 POCO F4 Stock MIUI 13 (MIUI ID)
  • frida 16.0.19
  • frida-server 16.0.19
  • Magisk Delta version fdac22ba-delta
  • Zygisk Yes
  • Ramdisk Yes
>frida -U -l ./frida-script.js -f "jp.naver.line.android"
     ____
    / _  |   Frida 16.0.19 - A world-class dynamic instrumentation toolkit
   | (_| |
    > _  |   Commands:
   /_/ |_|       help      -> Displays the help system
   . . . .       object?   -> Display information about 'object'
   . . . .       exit/quit -> Exit
   . . . .
   . . . .   More info at https://frida.re/docs/home/
   . . . .
   . . . .   Connected to 22021211RG (id=85206705)
Failed to spawn: unexpectedly timed out while waiting for signal from process with PID 1936

rushkii avatar Jun 16 '23 10:06 rushkii

@oleavr I'm sorry to mention you directly, I've been looking at the code a bit to try to correct it but I can't find the part that can fail. Any help or idea what might be going on regarding this issue? Edit: It is still happening in 16.1.1

LaiKash avatar Jun 20 '23 13:06 LaiKash

I also have this problem on Mi Pad4 with Pixel Experience Android13

arandomusernone avatar Jul 16 '23 12:07 arandomusernone

Still doesn't work on crDroid 9.7. Please help. @oleavr

b1naryTR avatar Jul 16 '23 16:07 b1naryTR

I'm also facing same issue in Android 11 on OnePlus 6T, have frida 16.1.7 installed with same version of frida server.

Traceback (most recent call last): File "/home/kali/.local/bin/objection", line 8, in sys.exit(cli()) File "/home/kali/.local/lib/python3.9/site-packages/click/core.py", line 1157, in call return self.main(*args, **kwargs) File "/home/kali/.local/lib/python3.9/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) File "/home/kali/.local/lib/python3.9/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/kali/.local/lib/python3.9/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, **ctx.params) File "/home/kali/.local/lib/python3.9/site-packages/click/core.py", line 783, in invoke return __callback(*args, **kwargs) File "/home/kali/.local/lib/python3.9/site-packages/objection/console/cli.py", line 114, in explore agent.inject() File "/home/kali/.local/lib/python3.9/site-packages/objection/utils/agent.py", line 202, in inject session = self.get_session() File "/home/kali/.local/lib/python3.9/site-packages/objection/utils/agent.py", line 166, in get_session self.spawned_pid = self.device.spawn(state_connection.gadget_name) File "/home/kali/.local/lib/python3.9/site-packages/frida/core.py", line 86, in wrapper return f(*args, **kwargs) File "/home/kali/.local/lib/python3.9/site-packages/frida/core.py", line 968, in spawn return self._impl.spawn(program, **kwargs) frida.TimedOutError: unexpectedly timed out while waiting for signal from process with PID 11484

OnePlus6T:/ # ps -e | grep 11484
root 11484 888 15570720 57620 __skb_wait_for_more_packets 0 S usap64

Happy9119 avatar Nov 21 '23 03:11 Happy9119

Same issue in 2024, with frida-server-16.1.10-android-arm64 in Android 13.

AiziChen avatar Jan 10 '24 02:01 AiziChen