Twitter

Monday 23 May, 2011

CyanogenMod Adds Support For Revoking And Faking App Permissions



Back in March we reported on a proposed patch to CyanogenMod that would allow users to deny apps access to certain permissions while retaining the connection to others. Rather than denying permissions outright, which would surely result in mass force closes, the new feature fakes them in a completely transparent manner. This lets users install applications they are interested in, while remaining mindful of their privacy.
The proposed patch went live (also here and here) yesterday, making the changes available to those who use the mod’s nightly builds. It remains to be seen whether this new feature will result in a rash of unexpected force closes in applications that don’t play nice with it for some reason as well as an uproar from developers who suddenly start getting flooded with fake data.
In order to activate the functionality, you’ll need to navigate to CyanogenMod Settings, then Permissions, and finally Enable Management. From there, permissions can be enabled or disabled through the Settings -> Applications -> Manage Applications menu. Most permission changes will go live immediately. Enabling "Network Communications" will require a reboot.
Here are the main details of the new feature, as documented in this commit:
Adds support for revoking permissions.
- 2 new methods in PackageManager: set and getRevokedPermissions.
- new permission android.permission.REVOKE_PERMISSIONS that guards the new methods.
- new widget that can revoke permissions and is to be used in Settings app.
- setting to enable disable permission managment.
- special message for force closed applications that have revoked permissions.
- "Reset permissions" on force close dialogue for applications wiht revoked permissions.
compile fix.
Change-Id: I19aace30b6e2bd2075231f8a8581c22b428e86e8
If you successfully flashed a nightly build with this feature enabled, feel free to leave a comment and let everyone know whether it’s working correctly or causing problems.

0 comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...