We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
怎么做抽象方法的Proxy那?比如想hook android.content.pm.PackageManager中的函数
The text was updated successfully, but these errors were encountered:
@Proxy 可以实现,不过如果这个函数调用的地方比较多的话,生成的额外字节码也会比较多。
也可以考虑用 @RepalceInvoke 注解实现, 举个例子,比如想要代理应用内 调用 PackageManager.isInstantApp的函数的话,可以改成下面的写法。
@ReplaceInvoke(isStatic = false) @TargetClass(value = "android.content.pm.PackageManager",scope = Scope.SELF) @TargetMethod(methodName = "isInstantApp") public static boolean isInstantApp(PackageManager packageManager){ if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.O) { boolean r = packageManager.isInstantApp(); } return true; }
Sorry, something went wrong.
No branches or pull requests
怎么做抽象方法的Proxy那?比如想hook android.content.pm.PackageManager中的函数
The text was updated successfully, but these errors were encountered: