You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using a really simple test to check that I'm able to hook anything in my target application.
Android 11, Pixel 2, rooted and successfully able to use frida-trace and frida cli to get hooks into the application.
DeviceManager deviceManager;
deviceManager = new DeviceManager(Dispatcher.CurrentDispatcher);
var devices = deviceManager.EnumerateDevices();
var usbDevice = devices.Where(d => d.Type == DeviceType.Usb).SingleOrDefault();
if (usbDevice != null)
{
uint targetProcessPid = usbDevice.Spawn(applicationToSpawnName, null, null, null, null);
Thread.Sleep(TimeSpan.FromSeconds(1));
var session = usbDevice.Attach(targetProcessPid);
usbDevice.Resume(targetProcessPid);
var clientScript = session.CreateScript(File.ReadAllText(@"C:\Temp\js\poc.js"));
clientScript.Message += ClientScriptMessageHandler;
clientScript.Load();
Thread.Sleep(Timeout.Infinite);
}
My .js is just a simple output to make sure the script is loaded and Java.perform is being called:
I've tried a couple of different methods for pausing the thread / waiting while my output is received by the handler, but the process dies every time with the error The process was terminated due to an unhandled exception.
The eventlog records the .net runtime crash:
Application: test-frida.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ArgumentException
at System.Runtime.InteropServices.GCHandle.InternalCheckDomain(IntPtr)
at System.Runtime.InteropServices.GCHandle.FromIntPtr(IntPtr)
at <Module>.msclr.gcroot<Frida::Script ^>.->(msclr.gcroot<Frida::Script ^>*)
at <Module>.Frida.?A0x6d48abc7.OnScriptMessage(_FridaScript*, SByte*, _GBytes*, Void*)
Using a really simple test to check that I'm able to hook anything in my target application.
Android 11, Pixel 2, rooted and successfully able to use frida-trace and frida cli to get hooks into the application.
My .js is just a simple output to make sure the script is loaded and
Java.perform
is being called:I've tried a couple of different methods for pausing the thread / waiting while my output is received by the handler, but the process dies every time with the error
The process was terminated due to an unhandled exception
.The eventlog records the .net runtime crash:
and
I'm referencing the 64bit version of the frida clr .dll downloaded at the same time as the frida-server which is running fine on the device.
The text was updated successfully, but these errors were encountered: