Xposed: How to connect a method of a nested class (inner class) in the xposed framework.

I am trying to hook a method using:

 findAndHookMethod("com.android.keyguard.KeyguardPatternView.UnlockPatternListener", lpparam.classLoader, "onPatternDetected", new XC_MethodHook()

Where the UnlockPatternListener is a nested class (inner class) and it has a method called onPatternDetected. The inner class is private.

I can not connect this method. Can you tell me how to do this?

+4
source share
1 answer

Should work this way

 findAndHookMethod("com.android.keyguard.KeyguardPatternView$UnlockPatternListener", lpparam.classLoader, "onPatternDetected", new XC_MethodHook()
                                                            ^
+1
source

Source: https://habr.com/ru/post/1532628/


All Articles