You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.
Can XposedFramework hook Canvas' drawXXX methods? I hook these methods ,but It seems not work every time!
@OverRide
public void handleLoadPackage(final XC_LoadPackage.LoadPackageParam loadPackageParam) throws Throwable {
XposedHelpers.findAndHookMethod(Canvas.class, "drawText", String.class, float.class, float.class,
Paint.class, new XC_MethodHook() {
@OverRide
protected void beforeHookedMethod(MethodHookParam param) throws Throwable {
super.beforeHookedMethod(param);
LogUtils.d(TAG, "hookCanvasDrawText canvas beforeHookedMethod");//some time print in console
hookCanvasDrawText(param);
}
});
}
The text was updated successfully, but these errors were encountered: