MCPcopy Create free account
hub / github.com/akhilkedia/AllTrans / tryHookMethod

Method tryHookMethod

app/src/main/java/akhil/alltrans/utils.java:104–110  ·  view source on GitHub ↗
(Class<?> clazz, String methodName, Object... parameterTypesAndCallback)

Source from the content-addressed store, hash-verified

102 }
103
104 public static void tryHookMethod(Class<?> clazz, String methodName, Object... parameterTypesAndCallback){
105 try{
106 findAndHookMethod(clazz, methodName, parameterTypesAndCallback);
107 } catch (Throwable e){
108 utils.debugLog("Cannot hook method - " + clazz.getCanonicalName() + " - " + methodName + Log.getStackTraceString(e));
109 }
110 }
111
112 public static void tryHookMethod(String className, ClassLoader classLoader, String methodName, Object... parameterTypesAndCallback){
113 try{

Callers 2

readPrefAndHookMethod · 0.80
handleLoadPackageMethod · 0.80

Calls 1

debugLogMethod · 0.80

Tested by

no test coverage detected