From c91063dcd6ce07ee8b104ec5a6f2b2e3194bc9fc Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 13 Jul 2014 10:43:03 +0200 Subject: [PATCH] Fix partial system state --- src/biz/bokhorst/xprivacy/ActivityApp.java | 5 ----- src/biz/bokhorst/xprivacy/Hook.java | 4 ---- 2 files changed, 9 deletions(-) diff --git a/src/biz/bokhorst/xprivacy/ActivityApp.java b/src/biz/bokhorst/xprivacy/ActivityApp.java index 32acaa87f..dd49d4b79 100644 --- a/src/biz/bokhorst/xprivacy/ActivityApp.java +++ b/src/biz/bokhorst/xprivacy/ActivityApp.java @@ -1442,11 +1442,6 @@ private List getHooks(int groupPosition) { List listMethod = new ArrayList(); String restrictionName = mListRestriction.get(groupPosition); for (Hook hook : PrivacyManager.getHooks((String) getGroup(groupPosition))) { - // Check permission management - if (hook.isPermissionManagement()) - if (!PrivacyManager.getSettingBool(0, PrivacyManager.cSettingPermMan, false)) - continue; - // Filter boolean isUsed = (PrivacyManager.getUsage(mAppInfo.getUid(), restrictionName, hook.getName()) > 0); boolean hasPermission = PrivacyManager.hasPermission(ActivityApp.this, mAppInfo, hook); diff --git a/src/biz/bokhorst/xprivacy/Hook.java b/src/biz/bokhorst/xprivacy/Hook.java index 8b794a238..49db7b5bc 100644 --- a/src/biz/bokhorst/xprivacy/Hook.java +++ b/src/biz/bokhorst/xprivacy/Hook.java @@ -151,10 +151,6 @@ public String getAnnotation() { return mAnnotation; } - public boolean isPermissionManagement() { - return ("checkPermission".equals(mMethodName) || "checkUidPermission".equals(mMethodName)); - } - @Override public int hashCode() { return (mRestrictionName.hashCode() ^ mMethodName.hashCode());