diff --git a/src/biz/bokhorst/xprivacy/XPrivacy.java b/src/biz/bokhorst/xprivacy/XPrivacy.java index eb8e8d1d0..d066c6fe9 100644 --- a/src/biz/bokhorst/xprivacy/XPrivacy.java +++ b/src/biz/bokhorst/xprivacy/XPrivacy.java @@ -72,7 +72,7 @@ protected void beforeHookedMethod(MethodHookParam param) throws Throwable { Util.bug(null, ex); } - hookCheckNative(); + // hookCheckNative(); // App widget manager hookAll(XAppWidgetManager.getInstances(), mSecret); @@ -370,11 +370,12 @@ protected void afterHookedMethod(MethodHookParam param) throws Throwable { if (method.getName().equals(hook.getMethodName()) && (Modifier.isPublic(method.getModifiers()) ? hook.isVisible() : !hook.isVisible())) { // After hooking the method becomes native - boolean isNative = Modifier.isNative(method.getModifiers()); + // boolean isNative = + // Modifier.isNative(method.getModifiers()); XC_MethodHook.Unhook unhook = XposedBridge.hookMethod(method, methodHook); hookSet.add(unhook); - if (isNative) - registerNativeMethod(hook, method, unhook); + // if (isNative) + // registerNativeMethod(hook, method, unhook); } clazz = (hookSet.isEmpty() ? clazz.getSuperclass() : null); } @@ -400,6 +401,7 @@ protected void afterHookedMethod(MethodHookParam param) throws Throwable { private static List mUnhookNativeMethod = new ArrayList(); + @SuppressWarnings("unused") private static void registerNativeMethod(final XHook hook, Method method, XC_MethodHook.Unhook unhook) { if (Process.myUid() > 0) { synchronized (mUnhookNativeMethod) { @@ -409,6 +411,7 @@ private static void registerNativeMethod(final XHook hook, Method method, XC_Met } } + @SuppressWarnings("unused") private static void hookCheckNative() { try { XC_MethodHook hook = new XC_MethodHook() {