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

Commit

Permalink
Apply template to new system applications, enabled on demand restrict…
Browse files Browse the repository at this point in the history
…ing for system applications

Refs #1704
  • Loading branch information
M66B committed Jun 4, 2014
1 parent 4151651 commit 6adaa5f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions src/biz/bokhorst/xprivacy/PackageChange.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ public void onReceive(final Context context, Intent intent) {
// Enable on demand
if (ondemand)
PrivacyManager.setSetting(uid, PrivacyManager.cSettingOnDemand, Boolean.toString(true));

// Restrict new non-system apps
if (!appInfo.isSystem())
PrivacyManager.applyTemplate(uid, null, true, true);
}
}

Expand Down
4 changes: 0 additions & 4 deletions src/biz/bokhorst/xprivacy/PrivacyService.java
Original file line number Diff line number Diff line change
Expand Up @@ -1298,10 +1298,6 @@ private boolean onDemandDialog(final Hook hook, final PRestriction restriction,
// Get application info
final ApplicationInfoEx appInfo = new ApplicationInfoEx(context, restriction.uid);

// Check if system application
if (!dangerous && appInfo.isSystem())
return false;

// Check if activity manager agrees
if (!XActivityManagerService.canOnDemand())
return false;
Expand Down

0 comments on commit 6adaa5f

Please sign in to comment.