1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 ~ Copyright (C) 2015 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="com.android.traceur" 20 android:versionCode="2" 21 android:versionName="1.0"> 22 <uses-sdk android:minSdkVersion="26" android:targetSdkVersion="29"/> 23 24 <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> 25 26 <!-- Used for adding the Quick Settings tile to the status bar. --> 27 <uses-permission android:name="android.permission.STATUS_BAR" /> 28 29 <!-- Used for brief periods where the trace service is foregrounded. --> 30 <uses-permission android:name="android.permission.FOREGROUND_SERVICE" /> 31 32 <!-- Declare Android TV support. --> 33 <uses-feature android:name="android.software.leanback" android:required="false" /> 34 35 <!-- touch screen is not required for TV --> 36 <uses-feature android:name="android.hardware.touchscreen" android:required="false" /> 37 38 <application android:label="@string/system_tracing"> 39 40 <activity android:name=".MainActivity" 41 android:description="@string/record_system_activity" 42 android:label="@string/system_tracing" 43 android:theme="@style/Theme.Settings" 44 android:launchMode="singleTask"> 45 <intent-filter> 46 <action android:name="android.intent.action.MAIN"/> 47 <category android:name="android.intent.category.INFO"/> 48 </intent-filter> 49 <intent-filter> 50 <action android:name="android.service.quicksettings.action.QS_TILE_PREFERENCES" /> 51 </intent-filter> 52 53 <!-- Mark this activity as a dynamic setting in the development category. --> 54 <intent-filter> 55 <action android:name="com.android.settings.action.IA_SETTINGS" /> 56 </intent-filter> 57 <meta-data android:name="com.android.settings.category" 58 android:value="com.android.settings.category.ia.development" /> 59 <meta-data android:name="com.android.settings.summary" android:resource="@string/record_system_activity" /> 60 <meta-data android:name="com.android.settings.order" android:value="10" /> 61 <meta-data android:name="com.android.settings.profile" android:value="primary_profile_only" /> 62 </activity> 63 64 <activity android:name=".MainTvActivity" 65 android:description="@string/record_system_activity" 66 android:label="@string/system_tracing" 67 android:theme="@style/TvTheme" 68 android:launchMode="singleTask"> 69 <intent-filter> 70 <action android:name="android.intent.action.MAIN"/> 71 <category android:name="android.intent.category.LEANBACK_LAUNCHER" /> 72 <category android:name="android.intent.category.INFO"/> 73 </intent-filter> 74 </activity> 75 76 <activity android:name=".UserConsentActivityDialog" 77 android:theme="@android:style/Theme.DeviceDefault.Light.Dialog.Alert" 78 android:finishOnCloseSystemDialogs="true" 79 android:excludeFromRecents="true" 80 android:exported="false"/> 81 82 <receiver android:name=".Receiver" android:permission="android.permission.DUMP"> 83 <intent-filter> 84 <action android:name="android.intent.action.BOOT_COMPLETED" /> 85 </intent-filter> 86 </receiver> 87 88 <service android:name=".StopTraceService" 89 android:exported="true" /> 90 91 <service android:name=".TraceService" 92 android:exported="false" /> 93 94 <service 95 android:name=".QsService" 96 android:enabled="false" 97 android:icon="@drawable/stat_sys_adb" 98 android:label="@string/record_trace" 99 android:permission="android.permission.BIND_QUICK_SETTINGS_TILE"> 100 <intent-filter> 101 <action android:name="android.service.quicksettings.action.QS_TILE" /> 102 </intent-filter> 103 </service> 104 105 <provider 106 android:name="androidx.core.content.FileProvider" 107 android:authorities="com.android.traceur.files" 108 android:grantUriPermissions="true" 109 android:exported="false"> 110 <meta-data 111 android:name="android.support.FILE_PROVIDER_PATHS" 112 android:resource="@xml/file_paths" /> 113 </provider> 114 115 <provider 116 android:name=".StorageProvider" 117 android:enabled="false" 118 android:authorities="com.android.traceur.documents" 119 android:grantUriPermissions="true" 120 android:exported="true" 121 android:permission="android.permission.MANAGE_DOCUMENTS"> 122 <intent-filter> 123 <action android:name="android.content.action.DOCUMENTS_PROVIDER" /> 124 </intent-filter> 125 </provider> 126 127 <provider 128 android:name=".SearchProvider" 129 android:authorities="com.android.traceur" 130 android:multiprocess="false" 131 android:grantUriPermissions="true" 132 android:permission="android.permission.READ_SEARCH_INDEXABLES" 133 android:exported="true"> 134 <intent-filter> 135 <action android:name="android.content.action.SEARCH_INDEXABLES_PROVIDER" /> 136 </intent-filter> 137 </provider> 138 </application> 139</manifest> 140