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

Commit

Permalink
Enable on demand restricting for new applications only
Browse files Browse the repository at this point in the history
Closes #1208
  • Loading branch information
M66B committed Jan 31, 2014
1 parent b48ce8a commit acfa47b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Test and beta releases will have experimental functions enabled by default.
* Restrict isolated processes (since JellyBean)
* Disabled [largeHeap](http://developer.android.com/reference/android/R.attr.html#largeHeap) to conserve memory
* Disabled [allowBackup](http://developer.android.com/reference/android/R.attr.html#allowBackup) for more privacy
* Enable on demand restricting for new applications only ([issue](https://github.com/M66B/XPrivacy/issues/1208))
* Updated Dutch translation
* Updated Lithuanian translation

Expand Down
9 changes: 5 additions & 4 deletions src/biz/bokhorst/xprivacy/PackageChange.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,11 @@ public void onReceive(final Context context, Intent intent) {
Integer.toString(ActivityMain.STATE_ATTENTION));

// Enable on demand
if (PrivacyManager.getSettingBool(null, 0, PrivacyManager.cSettingExperimental,
PrivacyManager.cTestVersion, false))
PrivacyManager.setSetting(null, uid, PrivacyManager.cSettingOnDemand,
Boolean.toString(true));
if (!replacing)
if (PrivacyManager.getSettingBool(null, 0, PrivacyManager.cSettingExperimental,
PrivacyManager.cTestVersion, false))
PrivacyManager.setSetting(null, uid, PrivacyManager.cSettingOnDemand,
Boolean.toString(true));
}

// New/update notification
Expand Down

0 comments on commit acfa47b

Please sign in to comment.