diff options
author | Yuichi Araki <yaraki@google.com> | 2014-11-28 15:50:28 +0900 |
---|---|---|
committer | Yuichi Araki <yaraki@google.com> | 2014-12-04 17:17:13 +0900 |
commit | 2ef3f239e77dff74979036ebc302560377a5ff05 (patch) | |
tree | 251a13cf2559b615fcdc446e79b937c6aa1b3bbd /admin/BasicManagedProfile/template-params.xml | |
parent | b84a08a4015862660f6e83c8b25429a41e1bd4f5 (diff) | |
download | android-2ef3f239e77dff74979036ebc302560377a5ff05.tar.gz |
Add metadata to BasicManagedProfile sample
Change-Id: Iaa383b117ee9b06d682db5ad6d02d7935b683820
Diffstat (limited to 'admin/BasicManagedProfile/template-params.xml')
-rw-r--r-- | admin/BasicManagedProfile/template-params.xml | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/admin/BasicManagedProfile/template-params.xml b/admin/BasicManagedProfile/template-params.xml index c1ba1cb2..ff926ab5 100644 --- a/admin/BasicManagedProfile/template-params.xml +++ b/admin/BasicManagedProfile/template-params.xml @@ -42,4 +42,61 @@ </strings> <template src="base"/> + <metadata> + <status>PUBLISHED</status> + <categories>Device Admin</categories> + <technologies>Android</technologies> + <languages>Java</languages> + <solutions>Mobile</solutions> + <level>ADVANCED</level> + <icon>screenshotsicon-web.png</icon> + <screenshots> + <img>screenshots/not_set_up.png</img> + <img>screenshots/set_up.png</img> + <img>screenshots/main.png</img> + </screenshots> + <api_refs> + <android>android.app.admin.DevicePolicyManager</android> + <android>android.app.admin.DeviceAdminReceiver</android> + </api_refs> + + <description> +<![CDATA[ +This sample demonstrates basic functionalities of Managed Profile API +introduced in Android 5.0 Lollipop. You can set up this app as a +profile owner, and use this app to enable/disable apps in the newly +created managed profile. You can also set restrictions to some apps, +enable/disable Intent forwarding between profiles, and wipe out all +the data associated with the profile. +]]> + </description> + + <intro> +<![CDATA[ +As of Android 5.0, DevicePolicyManager introduces new features to +support managed profile. + +To set up this app as a profile owner, you need to encrypt your device +(you are prompted to do if you haven't). This doesn't wipe out the +device, but be aware that you can set up only one managed profile at a +time. + +[isProfileOwnerApp][1] can be used to determine if a particular +package is registered as the profile owner for the current user. You +can initiate the provisioning flow of a managed profile with Intent of +[ACTION_PROVISION_MANAGED_PROFILE][2]. + +You have to implement a class extending [DeviceAdminReceiver][3] to +receive the result of the provisioning flow. Use +[setProfileEnabled][4] to enable the newly created profile, and your +app is now set up as a profile owner. + +[1]: http://developer.android.com/reference/android/app/admin/DevicePolicyManager.html#isProfileOwnerApp(java.lang.String) +[2]: http://developer.android.com/reference/android/app/admin/DevicePolicyManager.html#ACTION_PROVISION_MANAGED_PROFILE +[3]: http://developer.android.com/reference/android/app/admin/DeviceAdminReceiver.html +[4]: http://developer.android.com/reference/android/app/admin/DevicePolicyManager.html#setProfileEnabled(android.content.ComponentName) +]]> + </intro> + </metadata> + </sample> |