1<!--
2  ~ Copyright (C) 2022 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    xmlns:tools="http://schemas.android.com/tools">
19
20    <application>
21        <receiver
22            android:name=".TracingReceiver"
23            android:directBootAware="false"
24            android:enabled="true"
25            android:exported="true"
26            android:permission="android.permission.DUMP">
27            <!-- Note: DUMP above highly limits who can call the receiver; Shell has DUMP perm. -->
28            <intent-filter>
29                <action android:name="androidx.tracing.perfetto.action.ENABLE_TRACING" />
30                <action android:name="androidx.tracing.perfetto.action.ENABLE_TRACING_COLD_START" />
31                <action android:name="androidx.tracing.perfetto.action.DISABLE_TRACING_COLD_START" />
32            </intent-filter>
33        </receiver>
34
35        <provider
36            android:name="androidx.startup.InitializationProvider"
37            android:authorities="${applicationId}.androidx-startup"
38            android:exported="false"
39            tools:node="merge">
40            <meta-data
41                android:name="androidx.tracing.perfetto.StartupTracingInitializer"
42                android:value="androidx.startup" />
43        </provider>
44        <receiver
45            android:name="androidx.tracing.perfetto.StartupTracingConfigStoreIsEnabledGate"
46            android:enabled="false"
47            android:exported="false"
48            android:directBootAware="false"
49            tools:targetApi="n">
50        </receiver>
51    </application>
52</manifest>
53