1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2024 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    This is a minimal manifest that only includes necessary permissions required to get SystemUI
20    to be able to build the parts of the Traceur codebase it requires, and to avoid SysUi Studio
21    warning messages. The entire manifest used for building Traceur app can be found in
22    packages/apps/Traceur.
23  -->
24<manifest xmlns:android="http://schemas.android.com/apk/res/android"
25    xmlns:tools="http://schemas.android.com/tools"
26    package="com.android.traceur.common"
27    tools:ignore="ImpliedTouchscreenHardware,MissingLeanbackLauncher,MissingLeanbackSupport,ProtectedPermissions">
28    <!--- Used to query for Betterbug. -->
29    <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"
30        tools:ignore="QueryAllPackagesPermission" />
31
32    <!-- Used to trigger the trace start/stop service. -->
33    <uses-permission android:name="android.permission.START_FOREGROUND_SERVICES_FROM_BACKGROUND"/>
34
35    <!-- Used for brief periods where the trace service is foregrounded. -->
36    <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
37
38    <!-- Used to control IME Winscope tracing (not yet migrated to perfetto). -->
39    <uses-permission android:name="android.permission.CONTROL_UI_TRACING" />
40
41    <!-- Used to control view capture Winscope tracing (not yet migrated to perfetto). -->
42    <uses-permission android:name="android.permission.WRITE_SECURE_SETTINGS" />
43</manifest>
44