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

Commit

Permalink
Added process name parameter to queryContentProviders
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed Jun 29, 2014
1 parent 1825880 commit 5abf8b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Changelog
* Added parameter host name to *getAllByName*, *getByAddress* and *getByName*
* Added parameter path to *MediaRecorder.setOutputFile*
* Added restriction for *getPackagesForUid*
* Added process name parameter to *queryContentProviders*

[Open issues](https://github.com/M66B/XPrivacy/issues?state=open)

Expand Down
5 changes: 3 additions & 2 deletions src/biz/bokhorst/xprivacy/XPackageManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,9 @@ protected void after(XParam param) throws Throwable {
param.setResult(filterResolveInfo((List<ResolveInfo>) param.getResult()));

} else if (mMethod == Methods.queryContentProviders) {
if (param.getResult() != null && isRestricted(param))
param.setResult(filterProviderInfo((List<ProviderInfo>) param.getResult()));
if (param.args.length > 0 && param.args[0] instanceof String)
if (param.getResult() != null && isRestrictedExtra(param, (String) param.args[0]))
param.setResult(filterProviderInfo((List<ProviderInfo>) param.getResult()));

} else
Util.log(this, Log.WARN, "Unknown method=" + param.method.getName());
Expand Down

0 comments on commit 5abf8b4

Please sign in to comment.