• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 Copyright 2013 The Android Open Source Project
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9     http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16-->
17
18
19
20<sample>
21    <name>AppRestrictionEnforcer</name>
22    <group>Admin</group>
23    <package>com.example.android.apprestrictionenforcer</package>
24
25    <minSdk>21</minSdk>
26
27    <strings>
28        <intro>
29            <![CDATA[
30	    This sample demonstrates how to set restrictions to other apps as a profile owner.
31	    Use the AppRestrictionSchema sample to set restrictions.
32            ]]>
33        </intro>
34    </strings>
35
36    <template src="base" />
37
38    <metadata>
39        <status>PUBLISHED</status>
40        <categories>Device Admin</categories>
41        <technologies>Android</technologies>
42        <languages>Java</languages>
43        <solutions>Mobile</solutions>
44        <level>ADVANCED</level>
45        <icon>screenshots/big_icon.png</icon>
46        <screenshots>
47            <img>screenshots/main.png</img>
48        </screenshots>
49        <api_refs>
50            <android>android.app.admin.DevicePolicyManager</android>
51            <android>android.content.RestrictionEntry</android>
52            <android>android.content.RestrictionsManager</android>
53        </api_refs>
54
55        <description>
56            This sample demonstrates how to set restrictions to other apps as a profile owner.
57            Use the AppRestrictionSchema sample to set restrictions.
58        </description>
59
60        <intro>
61            <![CDATA[
62The [Android Device Administration API][1] allows enterprise administrators to
63enforce specific policies on a managed device. The system provides policies
64that control settings such as password complexity, screen lock, or camera
65availability. Developers can also augment this list with custom policies
66that control specific features within their applications. For example,
67a web browser could provide access to a whitelist of allowed domains.
68
69This sample demonstrates the 'admin' component and shows how a number of
70custom properties (booleans, strings, numbers, lists) can be set and
71enforced on another app.
72
73See the [AppRestrictionSchema sample][2] for further details.
74
75[1]: http://developer.android.com/guide/topics/admin/device-admin.html
76[2]: https://github.com/googlesamples/android-AppRestrictionSchema
77]]>
78        </intro>
79    </metadata>
80
81
82</sample>
83