Hi, thanks for the suggestions. I tried what you said but it didn't throw anything good.You can add more filtering to only alter parameters when you need, using these:
Name of the method calling the hooked method: param.method.getName()
Name of the class of the method calling the hooked method: param.thisObject.getClass().getName(),
This is the code:
Code:
try{
XposedBridge.log("Declaring class: " + param.method.getDeclaringClass().getSimpleName() );
} catch (Exception e) {
XposedBridge.log("Error: " + e.getMessage());
}
try{
XposedBridge.log("Method name: " + param.method.getName() );
} catch (Exception e) {
XposedBridge.log("Error: " + e.getMessage());
}
try{
XposedBridge.log("Class name: " + param.thisObject.getClass().getName() );
} catch (Exception e) {
XposedBridge.log("Error: " + e.getMessage());
}
try{
XposedBridge.log("Declaring class name: " + param.thisObject.getClass().getDeclaringClass().getName() );
} catch (Exception e) {
XposedBridge.log("Error: " + e.getMessage());
}
try{
XposedBridge.log("Class canonical name: " + param.thisObject.getClass().getCanonicalName() );
} catch (Exception e) {
XposedBridge.log("Error: " + e.getMessage());
}
And this is the result, for every call it's the same:
08-26 19:48:24.813 I/Xposed ( 4106): Declaring class: Typeface
08-26 19:48:24.814 I/Xposed ( 4106): Method name: create
08-26 19:48:24.832 I/Xposed ( 4106): Error: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
08-26 19:48:24.832 I/Xposed ( 4106): Error: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
08-26 19:48:24.832 I/Xposed ( 4106): Error: Attempt to invoke virtual method 'java.lang.Class java.lang.Object.getClass()' on a null object reference
The first two work, but they yield what I already know. The other three throw an exception..