Xposed access to variable in Function

1.1k Views Asked by At

Iam working on a XPosedModule but I need help:

I have hooked a method, which has some local variables (only accessable in this method), but I need to access these variable. I tried

XposedHelpers.getObjectField(param.thisObject,"OBJECT_I_NEED");

But my experience with this function is that it returns Global variables only but I need the variable which is only in a function and not accessable in whole class.

Thanks alot;

  • Jojii
1

There are 1 best solutions below

0
On BEST ANSWER

You can't replace a local variable inside a method. This is a limitation of Xposed API. Instead, you can hook the method to do something before or after it's called or to completely replace it.