diff --git a/src/biz/bokhorst/xprivacy/XPrivacy.java b/src/biz/bokhorst/xprivacy/XPrivacy.java index 863a294a6..4a793e11f 100644 --- a/src/biz/bokhorst/xprivacy/XPrivacy.java +++ b/src/biz/bokhorst/xprivacy/XPrivacy.java @@ -398,9 +398,12 @@ protected void afterHookedMethod(MethodHookParam param) throws Throwable { // Hook members for (Member member : listMember) try { - XposedBridge.hookMethod(member, methodHook); + if (Modifier.isAbstract(member.getModifiers())) + Util.log(hook, Log.ERROR, String.format("isAbstract: ", member)); + else + XposedBridge.hookMethod(member, methodHook); } catch (NoSuchFieldError ex) { - Util.log(null, Log.WARN, ex.toString()); + Util.log(hook, Log.WARN, ex.toString()); } catch (Throwable ex) { mListHookError.add(ex.toString()); Util.bug(hook, ex);