/**
* Hook all constructors of the specified class.
*
* @param hookClass The class to check for constructors.
* @param callback The callback to be executed when the hooked constructors are called.
* @return A set containing one object for each found constructor which can be used to unhook it.
*/
@SuppressWarnings("all")
public static HashSet<XC_MethodHook.Unhook> hookAllConstructors(final Class<?> hookClass,
final XC_MethodHook callback) {
final HashSet<XC_MethodHook.Unhook> unhooks = new HashSet<>();
for (final Member constructor : hookClass.getDeclaredConstructors())
unhooks.add(hookMethod(constructor, callback));
return unhooks;
}
XposedBridge.java 文件源码
java
阅读 37
收藏 0
点赞 0
评论 0
项目:AndHook
作者:
评论列表
文章目录