I've this struct
public struct LatLng
{
public double Latitude; // 0x0
public double Longitude; // 0x8
}
I've this function
public LatLng get_Location()
How i can get latitude and longitude value in frida script
This is my code:
Interceptor.attach(il2cpp.add(0x23CCCCC),{
onEnter: function(args){
},
onLeave: function(ret_val){
this.instance = ret_val;
var pointer = this.instance.readPointer();
var lat = pointer.add(0x0);
console.log( "lat: "+lat.readDouble());
var lng = pointer.add(0x8);
console.log( "long: "+lng.readDouble());
}
});
Thanks!