Open su-vikas opened 7 years ago
Hi, In my opinion the problem is that the process that you want to find is not find. I think that spawn a system process makes it crash. But it is just my opinion.
Thanks,
Can you check if the issue is still here with the latest version ?
And ensure that the process name 'com.android.systemui' is correct
Thanks
I'm trying spawn() and I think I'm hitting this issue.
Here I have Android 4.4.4 (CM), frida-server-9.1.22-android-arm and frida.version == '9.1.11' on the host.
using this script:
#!/usr/bin/env python
import sys
import frida
if __name__ == '__main__':
device = frida.get_usb_device()
pid = device.spawn(["the.unamed.app"])
session = device.attach(pid)
ss = '''
console.log("hello")
'''
script = session.create_script(ss)
script.load()
device.resume(pid)
session.detach()
Same with Android 6.0 (nexus 5X, arm64).
I can confirm the same behaviour with Android 5.1 and 6.0 with Nexus 5, arm32, frida-server-9.1.22-android-arm. On spawn, it crashes.
For me (Galaxy Nexus, LineageOS 13, Android 6.0.1, frida-server 9.1.28) it works most of the time. Sometimes, I have the same behavior though and my device reboots.
Same with Android 6.0.0 (Galaxy J5 2016), Frida 11.0.0, frida-server 11.0.0.
Same issue with Samsung Galaxy-J2 Android version 5.1.1. Frida version 15.2.2 Any solutions in 2022?
Frida Version: 9.0.5 Android: 5.1.1 (32 bit) and 6.0.1 (64 bit)
I am trying to perform early hooking for an Android application using spawn() method of Frida. But this crashes and eventually leads to device being rebooted. The details are below.
Frida python script I am using is:
Following error message is given on executing script:
Following is the crash log on the device:
Not pasted full tombstone dump for brevity.
As per my understanding, Frida 9.x support spawn() on ART.
If the fix does not involve detailed understanding of Frida, I would be more than happy to do so.