diff --git a/CHANGELOG.md b/CHANGELOG.md index 35d95ca89..20f048439 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,8 @@ Test and beta releases will have experimental functions enabled by default. **Next release** +* Removed restriction *getPackagesForUid* + [Open issues](https://github.com/M66B/XPrivacy/issues?state=open) **Version 1.99.1 EXPERIMENTAL** @@ -27,7 +29,7 @@ Test and beta releases will have experimental functions enabled by default. * New features possible * Better method for hooking the bluetooth manager * Better method for hooking the package manager -* Hook *getPackagesForUid*, *getPackagesHoldingPermissions* (JellyBean MR2) and *queryIntentContentProviders* (Kitkat) +* Added restriction for *getPackagesForUid*, *getPackagesHoldingPermissions* (JellyBean MR2) and *queryIntentContentProviders* (Kitkat) * Lower case randomized Android ID * Simple registration procedure for submitting restrictions * Moved IPC to separate category diff --git a/assets/meta.xml b/assets/meta.xml index c4a5e10fb..fb5925c41 100644 --- a/assets/meta.xml +++ b/assets/meta.xml @@ -197,7 +197,6 @@ - diff --git a/src/biz/bokhorst/xprivacy/XPackageManager.java b/src/biz/bokhorst/xprivacy/XPackageManager.java index 8dfed8408..9c2a35fbd 100644 --- a/src/biz/bokhorst/xprivacy/XPackageManager.java +++ b/src/biz/bokhorst/xprivacy/XPackageManager.java @@ -31,7 +31,6 @@ public String getClassName() { // public List getInstalledApplications(int flags) // public List getInstalledPackages(int flags) - // public String[] getPackagesForUid(int uid) // public List getPackagesHoldingPermissions(String[] permissions, int flags) // public List getPreferredPackages(int flags) // public List queryBroadcastReceivers(Intent intent, int flags) @@ -45,7 +44,7 @@ public String getClassName() { // @formatter:on private enum Methods { - getInstalledApplications, getInstalledPackages, getPackagesForUid, getPackagesHoldingPermissions, getPreferredPackages, queryBroadcastReceivers, queryContentProviders, queryIntentActivities, queryIntentActivityOptions, queryIntentContentProviders, queryIntentServices + getInstalledApplications, getInstalledPackages, getPackagesHoldingPermissions, getPreferredPackages, queryBroadcastReceivers, queryContentProviders, queryIntentActivities, queryIntentActivityOptions, queryIntentContentProviders, queryIntentServices }; public static List getInstances(Object instance) { @@ -74,9 +73,6 @@ protected void after(MethodHookParam param) throws Throwable { if (mMethod == Methods.getInstalledApplications) { if (param.getResult() != null && isRestricted(param)) param.setResult(filterApplicationInfo((List) param.getResult())); - } else if (mMethod == Methods.getPackagesForUid) { - if (param.getResult() != null && isRestricted(param)) - param.setResult(new String[0]); } else if (mMethod == Methods.getInstalledPackages || mMethod == Methods.getPackagesHoldingPermissions || mMethod == Methods.getPreferredPackages) { if (param.getResult() != null && isRestricted(param))