• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="utf-8"?>
2<!-- Copyright (C) 2020 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
17<manifest xmlns:android="http://schemas.android.com/apk/res/android"
18          package="com.android.wm.shell.flicker">
19
20    <uses-sdk android:minSdkVersion="29" android:targetSdkVersion="29"/>
21    <!-- Read and write traces from external storage -->
22    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
23    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
24    <!-- Allow the test to write directly to /sdcard/ -->
25    <uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
26    <!-- Write secure settings -->
27    <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
28    <!-- Capture screen contents -->
29    <uses-permission android:name="android.permission.ACCESS_SURFACE_FLINGER" />
30    <!-- Enable / Disable tracing !-->
31    <uses-permission android:name="android.permission.DUMP" />
32    <!-- Run layers trace -->
33    <uses-permission android:name="android.permission.HARDWARE_TEST"/>
34    <!-- Capture screen recording -->
35    <uses-permission android:name="android.permission.CAPTURE_VIDEO_OUTPUT"/>
36    <!-- Workaround grant runtime permission exception from b/152733071 -->
37    <uses-permission android:name="android.permission.PACKAGE_USAGE_STATS"/>
38    <uses-permission android:name="android.permission.READ_LOGS"/>
39    <!-- Force-stop test apps -->
40    <uses-permission android:name="android.permission.FORCE_STOP_PACKAGES"/>
41    <!-- Control test app's media session -->
42    <uses-permission android:name="android.permission.MEDIA_CONTENT_CONTROL"/>
43    <!-- ATM.removeRootTasksWithActivityTypes() -->
44    <uses-permission android:name="android.permission.MANAGE_ACTIVITY_TASKS" />
45    <!-- Allow the test to write directly to /sdcard/ -->
46    <application android:requestLegacyExternalStorage="true">
47        <uses-library android:name="android.test.runner"/>
48
49        <service android:name=".NotificationListener"
50                 android:exported="true"
51                 android:label="WMShellTestsNotificationListenerService"
52                 android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
53            <intent-filter>
54                <action android:name="android.service.notification.NotificationListenerService" />
55            </intent-filter>
56        </service>
57    </application>
58
59    <instrumentation android:name="androidx.test.runner.AndroidJUnitRunner"
60                     android:targetPackage="com.android.wm.shell.flicker"
61                     android:label="WindowManager Shell Flicker Tests">
62    </instrumentation>
63</manifest>
64