From 5abf8b4c4c3960c1b1465526af9c34d0f6c28902 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 29 Jun 2014 14:14:18 +0200 Subject: [PATCH] Added process name parameter to queryContentProviders --- CHANGELOG.md | 1 + src/biz/bokhorst/xprivacy/XPackageManager.java | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a64389761..d0ed3b1d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/src/biz/bokhorst/xprivacy/XPackageManager.java b/src/biz/bokhorst/xprivacy/XPackageManager.java index 6308d909e..a8ff97334 100644 --- a/src/biz/bokhorst/xprivacy/XPackageManager.java +++ b/src/biz/bokhorst/xprivacy/XPackageManager.java @@ -105,8 +105,9 @@ protected void after(XParam param) throws Throwable { param.setResult(filterResolveInfo((List) param.getResult())); } else if (mMethod == Methods.queryContentProviders) { - if (param.getResult() != null && isRestricted(param)) - param.setResult(filterProviderInfo((List) 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) param.getResult())); } else Util.log(this, Log.WARN, "Unknown method=" + param.method.getName());