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