Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Commit

Permalink
Fix partial system state
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed Jul 13, 2014
1 parent 71f5eec commit c91063d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
5 changes: 0 additions & 5 deletions src/biz/bokhorst/xprivacy/ActivityApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -1442,11 +1442,6 @@ private List<Hook> getHooks(int groupPosition) {
List<Hook> listMethod = new ArrayList<Hook>();
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);
Expand Down
4 changes: 0 additions & 4 deletions src/biz/bokhorst/xprivacy/Hook.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit c91063d

Please sign in to comment.