Remove workaround for Application#attach
This commit is contained in:
parent
4b55e3d033
commit
bc878ec424
|
|
@ -156,7 +156,6 @@ public final class XposedBridge {
|
||||||
* @see #hookAllConstructors
|
* @see #hookAllConstructors
|
||||||
*/
|
*/
|
||||||
public static XC_MethodHook.Unhook hookMethod(Member hookMethod, XC_MethodHook callback) {
|
public static XC_MethodHook.Unhook hookMethod(Member hookMethod, XC_MethodHook callback) {
|
||||||
hookMethod = MethodHookUtils.preCheck(hookMethod);
|
|
||||||
if (!(hookMethod instanceof Method) && !(hookMethod instanceof Constructor<?>)) {
|
if (!(hookMethod instanceof Method) && !(hookMethod instanceof Constructor<?>)) {
|
||||||
throw new IllegalArgumentException("Only methods and constructors can be hooked: " + hookMethod.toString());
|
throw new IllegalArgumentException("Only methods and constructors can be hooked: " + hookMethod.toString());
|
||||||
} else if (hookMethod.getDeclaringClass().isInterface()) {
|
} else if (hookMethod.getDeclaringClass().isInterface()) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue