We have commands in r2frida to change the return value of a native function, it will be good to be able to replace the implementation or do the same for managed methods in Java or ObjC, allowing the function to return a specific number, boolean value, string or null.
var TMS = Java.use("android.telephony.TelephonyManager");
TMS.getDeviceId.implementation = function () {
send("Called - deviceID()");
return "pwn3d";
};
ping @as0ler @enovella thoughs on this? its a very old dticket and we already have stuff that handles it, can you verify this stuff works and implement the missing bits if any?
We have commands in r2frida to change the return value of a native function, it will be good to be able to replace the implementation or do the same for managed methods in Java or ObjC, allowing the function to return a specific number, boolean value, string or null.