frida icon indicating copy to clipboard operation
frida copied to clipboard

Android returns Process terminated - but still loads

Open gilamran opened this issue 4 years ago • 18 comments

When I try to load an app that I created, like this:

C:\mygame>frida -U --no-pause -f com.me.mygame -l scripts\activity-hook.js

Frida loads the app, and then I get Process terminated while I see that the game was loaded and was not terminated...

     ____
    / _  |   Frida 12.6.10 - A world-class dynamic instrumentation toolkit
   | (_| |
    > _  |   Commands:
   /_/ |_|       help      -> Displays the help system
   . . . .       object?   -> Display information about 'object'
   . . . .       exit/quit -> Exit
   . . . .
   . . . .   More info at http://www.frida.re/docs/home/
Spawned `com.me.mygame`. Resuming main thread!
[LGE LGM-V300K::com.me.mygame]-> Process terminated

gilamran avatar Aug 21 '19 09:08 gilamran

this happens for me too. Untitled

aliforever avatar Aug 25 '19 15:08 aliforever

image

Me, with frida :'(

hatakepham avatar Oct 14 '19 09:10 hatakepham

Are you all nexus series?

xiguayizu avatar Oct 17 '19 06:10 xiguayizu

I'm using nox emulator

gilamran avatar Nov 25 '19 22:11 gilamran

Same issue with me as well.

kmskrishna avatar Nov 30 '19 02:11 kmskrishna

Same issue with me..

zetc0de avatar Dec 10 '19 08:12 zetc0de

Same here. Wonder if anyone was able to resolve?

yankodi avatar Feb 12 '20 09:02 yankodi

Same issue at Nox Emulator

ipsBruno avatar May 14 '20 09:05 ipsBruno

Similar problem

Nexus 6 -> Android 5.0 Frida version: 12.8.20

root@shamu:/ # sestatus
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
Current mode:                   permissive
sestatus: libselinux returns unknown state: No such file or directory
console.log("Waiting for Java..");
while(!Java.available) {
	console.log("Java not available yet");
}
console.log("Java available..");

Java.perform(function () {  // CRASHED !!!
    console.log("TEST");
});
frida -U --no-pause -f com.google.android.youtube -l test.js

Out log:

Spawning `com.google.android.youtube`...
Waiting for Java..
Java available..
Spawned `com.google.android.youtube`. Resuming main thread!
[Nexus 6::com.google.android.youtube]-> Process terminated
[Nexus 6::com.google.android.youtube]->

Thank you for using Frida!

4val0v avatar May 14 '20 10:05 4val0v

I got the same problem but with pausing the application. frida -f <package> -H <ip> I want to pause the app so that I can use objection to patch early ssl pinning but after like 3 seconds I get Process terminated This is caused by waiting. If I type %resume within the 3 seconds it does not terminate.

T3rm1 avatar May 15 '20 23:05 T3rm1

@T3rm1 I need to hooking the logic at startup, so I can’t use the delay :(

Everything works for me on custom firmware

4val0v avatar May 15 '20 23:05 4val0v

nexus 5 , android 6.0.1 device all process are terminated, cant hook any...

mastercho avatar May 24 '20 23:05 mastercho

same here. Anyone got any solution ?

evilboyajay avatar May 30 '20 17:05 evilboyajay

still no solution ?

tarik0 avatar Jun 21 '20 21:06 tarik0

i have the same problem I'm using Nox Emulator

3lioo avatar Aug 31 '20 17:08 3lioo

i have been able to solve this issue by using python script to load the js script and it worked perfectly with NOX emulator
the python script i used import frida import time device = frida.get_usb_device(1) pid = device.spawn(["com.xxx.xxx"]) device.resume(pid) time.sleep(1) session = device.attach(pid) script = session.create_script(open("xxxx.js").read()) script.load()

3lioo avatar Sep 05 '20 07:09 3lioo

thans man. you are the best!

gfdac avatar Mar 22 '21 02:03 gfdac

The js code you opened is probably wrong.

Andromeda606 avatar Apr 05 '22 15:04 Andromeda606