OSDN Git Service

Application restrictions API
authorAmith Yamasani <yamasani@google.com>
Sat, 2 Mar 2013 01:04:38 +0000 (17:04 -0800)
committerAmith Yamasani <yamasani@google.com>
Thu, 21 Mar 2013 05:29:59 +0000 (22:29 -0700)
commitdf2e92a535e19c00edd37318d974dab992ccc2c1
tree8f7232982c05f769fa2e4a4bbe526e48ad949979
parent9eac52698b18d089e73c7ec2bf73a64a39504733
Application restrictions API

Adds the ability for apps to export some restrictions. The restrictions
are presented in Settings based on the restriction type. The user's
selections are stored by UserManagerService and provided to the
target user's application as a list of RestrictionEntry objects which
contain the key, value(s).

Also introduce a manifest entry for system apps to request that the
app be automatically installed in all users, so that they cannot be
deselected by the owner user.

Shared account filtering for non-whitelisted apps.

Change-Id: I15b741e3c0f3448883cb364c130783f1f6ea7ce6
17 files changed:
api/current.txt
core/java/android/accounts/AccountManager.java
core/java/android/app/Application.java
core/java/android/content/Context.java
core/java/android/content/Intent.java
core/java/android/content/RestrictionEntry.aidl [new file with mode: 0644]
core/java/android/content/RestrictionEntry.java [new file with mode: 0644]
core/java/android/content/pm/PackageInfo.java
core/java/android/content/pm/PackageParser.java
core/java/android/os/IUserManager.aidl
core/java/android/os/UserManager.java
core/res/res/values/attrs_manifest.xml
core/res/res/values/config.xml
core/res/res/values/public.xml
core/res/res/values/symbols.xml
services/java/com/android/server/accounts/AccountManagerService.java
services/java/com/android/server/pm/UserManagerService.java