-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
not be able to replace the method of father class #6
Comments
Please point to the father class to hook. |
The way to find hooked method follows java reflection rule. So point to the father class if want to replace the method in it. |
for example, I want to replace getActivity() method with getMyActivity() in a BaseFragment which is a subclass of Fragment. Opoose, how we can deal with this ? |
Please check if following code for your case: DexposedBridge.findAndHookMethod(Fragment.class, "getActivity", new XC_MethodHook() {
|
@lzwang3d thanks for the little trick |
When you use replace method which need call super method. We provide a new api (invokeSuper() in DexposedBridge) which difference from Xposed. You can use this api in your XC_MethodReplacement method |
No description provided.
The text was updated successfully, but these errors were encountered: