diff options
author | Nick Kralevich <nnk@google.com> | 2013-03-26 16:53:17 -0700 |
---|---|---|
committer | Nick Kralevich <nnk@google.com> | 2013-03-27 15:35:03 -0700 |
commit | 292e4dabe97f77ea91945b2f520c0c680fabb145 (patch) | |
tree | 1f6b8d3f5a4ce4727dedec9782d3af0dd786667b /res | |
parent | 2055eecd55b944643111c4987e507f4a650f95e4 (diff) | |
download | android_packages_apps_PackageInstaller-292e4dabe97f77ea91945b2f520c0c680fabb145.tar.gz android_packages_apps_PackageInstaller-292e4dabe97f77ea91945b2f520c0c680fabb145.tar.bz2 android_packages_apps_PackageInstaller-292e4dabe97f77ea91945b2f520c0c680fabb145.zip |
PackageInstaller: add permission granting support
Add support to PackageInstaller for allowing the user to grant
permissions to other apps. The user is involved in the decision,
and can approve or reject permissions.
Applications can make a request to PackageInstaller using something
like the following code:
private void onPromptPermissionsClicked(String... permissions) {
Intent i = getActivity().getApplication()
.getPackageManager().requestPermission(permissions);
startActivityForResult(i, 0);
}
This code reuses the sideloading upgrade flow when adding permissions,
making the UI very familiar to someone who's sideloaded applications.
Conceptually, we are treating a permission grant as a reinstall of the
application with new permissions.
Change-Id: Ia37f761e5574a490d1d37b9eb40cf5e77c928a40
Diffstat (limited to 'res')
-rw-r--r-- | res/values/strings.xml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/res/values/strings.xml b/res/values/strings.xml index db43792a..a43af793 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -142,4 +142,8 @@ <!-- Body text for new tab when there are no new permissions [CHAR LIMIT=NONE] --> <string name="no_new_perms">This update requires no new permissions.</string> + + <string name="grant_confirm_question">Do you want to grant the following permissions? + It will get access to:</string> + </resources> |