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
When copying a frida snippet of a function the console.log contains the original name, even if you rename the function.
Lets say I rename the function "a" in class "SomeManager" to "startWork".
current frida snippet -
letSomeManager=Java.use("com.example.SomeManager");SomeManager["a"].overload('android.content.Context').implementation=function(context){console.log('SomeManager.a is called'+', '+'context: '+context);letret=this["a"](context);console.log('SomeManager.a return: '+ret);returnret;};
new frida snippet would look like this -
letSomeManager=Java.use("com.example.SomeManager");SomeManager["a"].overload('android.content.Context').implementation=function(context){console.log('SomeManager.startWork is called'+', '+'context: '+context);letret=this["a"](context);console.log('SomeManager.startWork return: '+ret);returnret;};
I will add the code for this change in a PR :).
The text was updated successfully, but these errors were encountered:
…)(PR #1773)
* frida snippet log now prints the correct method name if the method was renamed
* fixed spotless check in frida snippet
* get the renamed method name from the alias proprety and changed to format string to fit frida-trace style
* fixed import order to fix gradle spotless warning
When copying a frida snippet of a function the console.log contains the original name, even if you rename the function.
Lets say I rename the function "a" in class "SomeManager" to "startWork".
current frida snippet -
new frida snippet would look like this -
I will add the code for this change in a PR :).
The text was updated successfully, but these errors were encountered: