google / paco

The Paco behavioral science mobile research platform
http://www.pacoapp.com/
Apache License 2.0
327 stars 93 forks source link

Add Javascript methods for querying permissions granted to packages #1503

Closed BramBonne closed 8 years ago

BramBonne commented 8 years ago

Two methods added to the packagemanager Javascript interface:

getApplicationName(String packageName) Resolves an Android package name to the name of the app, if it is visible to the user.

getGrantedPermissions() Get a list of all applications, and the permissions that were granted to them. For packages targeting SDK version 21 or lower, this means "permissions requested at install time"; for packages targeting SDK 22 or newer, this means "permissions granted during runtime".