Home | History | Annotate | Download | only in permission
      1 <?xml version="1.0" encoding="utf-8"?>
      2 <!--
      3  * Copyright (C) 2007 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 <manifest xmlns:android="http://schemas.android.com/apk/res/android"
     19     package="android.permission.cts" android:targetSandboxVersion="2">
     20 
     21     <!-- for android.permission.cts.PermissionGroupChange -->
     22     <permission android:name="android.permission.cts.B"
     23                 android:protectionLevel="dangerous"
     24                 android:label="@string/perm_b"
     25                 android:permissionGroup="android.permission.cts.groupB"
     26                 android:description="@string/perm_b" />
     27 
     28     <!-- for android.permission.cts.PermissionGroupChange -->
     29     <permission android:name="android.permission.cts.C"
     30                 android:protectionLevel="dangerous"
     31                 android:label="@string/perm_c"
     32                 android:permissionGroup="android.permission.cts.groupC"
     33                 android:description="@string/perm_c" />
     34 
     35     <!-- for android.permission.cts.PermissionGroupChange -->
     36     <permission-group android:description="@string/perm_group_b"
     37                       android:label="@string/perm_group_b"
     38                       android:name="android.permission.cts.groupB" />
     39 
     40     <!-- for android.permission.cts.PermissionGroupChange -->
     41     <permission-group android:description="@string/perm_group_c"
     42                       android:label="@string/perm_group_c"
     43                       android:name="android.permission.cts.groupC" />
     44 
     45     <uses-permission android:name="android.permission.INJECT_EVENTS" />
     46     <application>
     47         <uses-library android:name="android.test.runner" />
     48         <activity android:name="android.permission.cts.PermissionStubActivity"
     49                   android:label="PermissionStubActivity">
     50             <intent-filter>
     51                 <action android:name="android.intent.action.MAIN"/>
     52                 <category android:name="android.intent.category.FRAMEWORK_INSTRUMENTATION_TEST"/>
     53             </intent-filter>
     54         </activity>
     55     </application>
     56 
     57     <!--
     58         The CTS stubs package cannot be used as the target application here,
     59         since that requires many permissions to be set. Instead, specify this
     60         package itself as the target and include any stub activities needed.
     61 
     62         This test package uses the default InstrumentationTestRunner, because
     63         the InstrumentationCtsTestRunner is only available in the stubs
     64         package. That runner cannot be added to this package either, since it
     65         relies on hidden APIs.
     66     -->
     67     <instrumentation android:name="android.support.test.runner.AndroidJUnitRunner"
     68                      android:targetPackage="android.permission.cts"
     69                      android:label="CTS tests of android.permission">
     70         <meta-data android:name="listener"
     71             android:value="com.android.cts.runner.CtsTestRunListener" />
     72     </instrumentation>
     73 
     74 </manifest>
     75 
     76