Brett Chabot | dd0aa01 | 2009-07-10 12:10:53 -0400 | [diff] [blame] | 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- Copyright (C) 2009 The Android Open Source Project |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | --> |
| 16 | <manifest xmlns:android="http://schemas.android.com/apk/res/android" |
| 17 | package="com.android.cts.permissiondeclareapp"> |
| 18 | |
| 19 | <!-- |
| 20 | An app that declares a permission that requires a matching signature to |
| 21 | access. |
| 22 | --> |
Brett Chabot | dd0aa01 | 2009-07-10 12:10:53 -0400 | [diff] [blame] | 23 | <permission android:name="com.android.cts.permissionWithSignature" |
| 24 | android:protectionLevel="signature" /> |
Dianne Hackborn | 8c14cbb | 2010-08-18 16:01:06 -0700 | [diff] [blame] | 25 | <uses-permission android:name="com.android.cts.permissionWithSignature" /> |
Ricky Wai | 374e968 | 2019-05-31 12:50:42 +0100 | [diff] [blame] | 26 | <!-- To enable the app to start activities from the background. --> |
| 27 | <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /> |
Dianne Hackborn | 8c14cbb | 2010-08-18 16:01:06 -0700 | [diff] [blame] | 28 | |
Dianne Hackborn | 84310aa | 2010-09-27 22:03:52 -0700 | [diff] [blame] | 29 | <!-- A permission this app will not hold. --> |
| 30 | <permission android:name="com.android.cts.permissionNotUsedWithSignature" |
| 31 | android:protectionLevel="signature" /> |
| 32 | |
Jeff Sharkey | 082f61c | 2012-03-12 17:42:49 -0700 | [diff] [blame] | 33 | <permission android:name="com.android.cts.permissionNormal" /> |
| 34 | |
Brett Chabot | dd0aa01 | 2009-07-10 12:10:53 -0400 | [diff] [blame] | 35 | <application> |
Jeff Sharkey | 12f701b | 2018-02-25 14:43:35 -0700 | [diff] [blame] | 36 | <provider android:name="UtilsProvider" |
| 37 | android:authorities="com.android.cts.permissiondeclareapp" |
| 38 | android:exported="true" /> |
Dianne Hackborn | 8c14cbb | 2010-08-18 16:01:06 -0700 | [diff] [blame] | 39 | |
Brett Chabot | dd0aa01 | 2009-07-10 12:10:53 -0400 | [diff] [blame] | 40 | <!-- Need a way for another app to try to access the permission. So create a content |
| 41 | provider which is enforced by the permission --> |
| 42 | <provider android:name="PermissionContentProvider" |
| 43 | android:authorities="ctspermissionwithsignature" |
| 44 | android:readPermission="com.android.cts.permissionWithSignature" |
Nick Kralevich | 380058b | 2012-07-27 18:34:02 -0700 | [diff] [blame] | 45 | android:writePermission="com.android.cts.permissionWithSignature" |
| 46 | android:exported="true"> |
Dianne Hackborn | 8c14cbb | 2010-08-18 16:01:06 -0700 | [diff] [blame] | 47 | </provider> |
| 48 | |
| 49 | <!-- Need a way for another app to try to access the permission, but will |
| 50 | grant uri access. --> |
| 51 | <provider android:name="PermissionContentProviderGranting" |
| 52 | android:authorities="ctspermissionwithsignaturegranting" |
| 53 | android:readPermission="com.android.cts.permissionWithSignature" |
Nick Kralevich | 380058b | 2012-07-27 18:34:02 -0700 | [diff] [blame] | 54 | android:writePermission="com.android.cts.permissionWithSignature" |
| 55 | android:exported="true"> |
Dianne Hackborn | 84310aa | 2010-09-27 22:03:52 -0700 | [diff] [blame] | 56 | <grant-uri-permission android:pathPattern="/foo.*" /> |
| 57 | <grant-uri-permission android:pathPattern="/yes.*" /> |
Dianne Hackborn | 8c14cbb | 2010-08-18 16:01:06 -0700 | [diff] [blame] | 58 | </provider> |
| 59 | |
| 60 | <!-- Nobody else should get access to this --> |
| 61 | <provider android:name="PrivateContentProvider" |
| 62 | android:authorities="ctsprivateprovider" |
| 63 | android:exported="false"> |
Dianne Hackborn | 8c14cbb | 2010-08-18 16:01:06 -0700 | [diff] [blame] | 64 | </provider> |
| 65 | |
| 66 | <!-- Nobody else should get access to this, but we will grant uri access --> |
| 67 | <provider android:name="PrivateContentProviderGranting" |
| 68 | android:authorities="ctsprivateprovidergranting" |
| 69 | android:exported="false"> |
Dianne Hackborn | 84310aa | 2010-09-27 22:03:52 -0700 | [diff] [blame] | 70 | <grant-uri-permission android:pathPattern="/foo.*" /> |
| 71 | <grant-uri-permission android:pathPattern="/yes.*" /> |
| 72 | </provider> |
| 73 | |
Nick Kralevich | 380058b | 2012-07-27 18:34:02 -0700 | [diff] [blame] | 74 | <!-- An ambiguous content provider, where "exported" was not specified. |
| 75 | Nobody should get access to this. --> |
| 76 | <provider android:name="AmbiguousContentProvider" |
| 77 | android:authorities="ctsambiguousprovider"> |
| 78 | </provider> |
| 79 | |
Dianne Hackborn | 84310aa | 2010-09-27 22:03:52 -0700 | [diff] [blame] | 80 | <!-- Target for tests about how path permissions interact with granting |
| 81 | URI permissions. --> |
| 82 | <provider android:name="PermissionContentProviderPath" |
| 83 | android:authorities="ctspermissionwithsignaturepath" |
| 84 | android:readPermission="com.android.cts.permissionNotUsedWithSignature" |
Nick Kralevich | 380058b | 2012-07-27 18:34:02 -0700 | [diff] [blame] | 85 | android:writePermission="com.android.cts.permissionNotUsedWithSignature" |
| 86 | android:exported="true"> |
Dianne Hackborn | 84310aa | 2010-09-27 22:03:52 -0700 | [diff] [blame] | 87 | <path-permission |
| 88 | android:pathPrefix="/foo" |
| 89 | android:readPermission="com.android.cts.permissionWithSignature" |
| 90 | android:writePermission="com.android.cts.permissionWithSignature" /> |
| 91 | <path-permission |
| 92 | android:pathPrefix="/yes" |
| 93 | android:readPermission="com.android.cts.permissionWithSignature" |
| 94 | android:writePermission="com.android.cts.permissionWithSignature" /> |
Jeff Sharkey | c0f8161 | 2019-06-06 10:53:15 -0600 | [diff] [blame] | 95 | <grant-uri-permission android:pathPattern="/foo.*" /> |
| 96 | <grant-uri-permission android:pathPattern="/yes.*" /> |
Dianne Hackborn | 8c14cbb | 2010-08-18 16:01:06 -0700 | [diff] [blame] | 97 | </provider> |
Jeff Sharkey | 082f61c | 2012-03-12 17:42:49 -0700 | [diff] [blame] | 98 | |
| 99 | <!-- Target for tests that verify path permissions can restrict access |
| 100 | when no default top-level permission. --> |
| 101 | <provider android:name="PermissionContentProviderPathRestricting" |
Nick Kralevich | 380058b | 2012-07-27 18:34:02 -0700 | [diff] [blame] | 102 | android:authorities="ctspermissionwithsignaturepathrestricting" |
| 103 | android:exported="true"> |
Jeff Sharkey | 082f61c | 2012-03-12 17:42:49 -0700 | [diff] [blame] | 104 | <!-- Require signature permission to get into path. --> |
| 105 | <path-permission |
Jeff Sharkey | 5d871c9 | 2012-05-04 16:51:46 -0700 | [diff] [blame] | 106 | android:pathPrefix="/foo" |
Jeff Sharkey | 082f61c | 2012-03-12 17:42:49 -0700 | [diff] [blame] | 107 | android:readPermission="com.android.cts.permissionWithSignature" |
| 108 | android:writePermission="com.android.cts.permissionWithSignature" /> |
| 109 | <!-- Allow access to a specific path inside. --> |
| 110 | <path-permission |
| 111 | android:pathPrefix="/foo/bar" |
| 112 | android:readPermission="com.android.cts.permissionNormal" |
| 113 | android:writePermission="com.android.cts.permissionNormal" /> |
| 114 | </provider> |
| 115 | |
Jeff Sharkey | c0f8161 | 2019-06-06 10:53:15 -0600 | [diff] [blame] | 116 | <activity android:name=".SendResultActivity" android:exported="true" /> |
Brett Chabot | dd0aa01 | 2009-07-10 12:10:53 -0400 | [diff] [blame] | 117 | </application> |
| 118 | </manifest> |