diff options
author | Dianne Hackborn <hackbod@google.com> | 2010-01-22 11:31:30 -0800 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2010-01-26 12:28:15 -0800 |
commit | 8aa2e8939c61d788cbc192098465e79f584e173a (patch) | |
tree | 83f2ea06758e1bb3f28a8fabedae29c3a5b89582 /core/res | |
parent | 148fea03caed2a082387c45ae12a91561b8e41e5 (diff) | |
download | frameworks_base-8aa2e8939c61d788cbc192098465e79f584e173a.zip frameworks_base-8aa2e8939c61d788cbc192098465e79f584e173a.tar.gz frameworks_base-8aa2e8939c61d788cbc192098465e79f584e173a.tar.bz2 |
More device admin work: description, policy control.
There is now a description attribute associated with all components,
that can supply user-visible information about what the component does.
We use this to show such information about device admins, and wallpapers
are also updated to be able to show this in addition to the existing
description in their meta-data.
This also defines security control for admins, requiring that they
declare the policies they will touch, and enforcing that they do
so to be able to use various APIs.
Diffstat (limited to 'core/res')
-rw-r--r-- | core/res/res/values/attrs_manifest.xml | 5 | ||||
-rw-r--r-- | core/res/res/values/strings.xml | 34 |
2 files changed, 39 insertions, 0 deletions
diff --git a/core/res/res/values/attrs_manifest.xml b/core/res/res/values/attrs_manifest.xml index c6ef3a0..7728c50 100644 --- a/core/res/res/values/attrs_manifest.xml +++ b/core/res/res/values/attrs_manifest.xml @@ -938,6 +938,7 @@ is a period then it is appended to your package name. --> <attr name="name" /> <attr name="label" /> + <attr name="description" /> <attr name="icon" /> <attr name="process" /> <attr name="authorities" /> @@ -1016,6 +1017,7 @@ is a period then it is appended to your package name. --> <attr name="name" /> <attr name="label" /> + <attr name="description" /> <attr name="icon" /> <attr name="permission" /> <attr name="process" /> @@ -1047,6 +1049,7 @@ is a period then it is appended to your package name. --> <attr name="name" /> <attr name="label" /> + <attr name="description" /> <attr name="icon" /> <attr name="permission" /> <attr name="process" /> @@ -1078,6 +1081,7 @@ <attr name="name" /> <attr name="theme" /> <attr name="label" /> + <attr name="description" /> <attr name="icon" /> <attr name="launchMode" /> <attr name="screenOrientation" /> @@ -1130,6 +1134,7 @@ "com.mycompany.MyName". --> <attr name="targetActivity" format="string" /> <attr name="label" /> + <attr name="description" /> <attr name="icon" /> <attr name="permission" /> <!-- Specify whether the activity-alias is enabled or not (that is, can be instantiated by the system). diff --git a/core/res/res/values/strings.xml b/core/res/res/values/strings.xml index 265dacd..0ef07ff 100644 --- a/core/res/res/values/strings.xml +++ b/core/res/res/values/strings.xml @@ -1157,6 +1157,40 @@ <!-- Description of an application permission, listed so the user can choose whether they want to allow the application to do this. --> <string name="permdesc_cache_filesystem">Allows an application to read and write the cache filesystem.</string> + <!-- Policy administration --> + + <!-- Title of policy access to limiting the user's password choices --> + <string name="policylab_limitPassword">Limit password</string> + <!-- Description of policy access to limiting the user's password choices --> + <string name="policydesc_limitPassword">Restrict the types of passwords you + are allowed to use.</string> + <!-- Title of policy access to watch user login attempts --> + <string name="policylab_watchLogin">Watch login attempts</string> + <!-- Description of policy access to watch user login attempts --> + <string name="policydesc_watchLogin">Monitor attempts to login to + the device, in particular to respond to failed login attempts.</string> + <!-- Title of policy access to reset user's password --> + <string name="policylab_resetPassword">Reset your password</string> + <!-- Description of policy access to reset user's password --> + <string name="policydesc_resetPassword">Force your password + to a new value, requiring the administrator give it to you + before you can log in.</string> + <!-- Title of policy access to limiting the user's unlock timeout --> + <string name="policylab_limitUnlock">Limit lock timeout</string> + <!-- Description of policy access to limiting the user's unlock timeout --> + <string name="policydesc_limitUnlock">Restrict the unlock timeout + durations you can select.</string> + <!-- Title of policy access to force lock the device --> + <string name="policylab_forceLock">Force lock</string> + <!-- Description of policy access to limiting the user's password choices --> + <string name="policydesc_forceLock">Force the device to immediately lock, + requiring that its password is re-entered.</string> + <!-- Title of policy access to wipe the user's data --> + <string name="policylab_wipeData">Erase all data</string> + <!-- Description of policy access to wipe the user's data --> + <string name="policydesc_wipeData">Perform a factory reset, deleting + all of your data without any confirmation from you.</string> + <!-- The order of these is important, don't reorder without changing Contacts.java --> <skip /> <!-- Phone number types from android.provider.Contacts. This could be used when adding a new phone number for a contact, for example. --> <string-array name="phoneTypes"> |