1<?xml version="1.0" encoding="utf-8"?> 2<!-- 3 Copyright (C) 2017 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.car.carlauncher"> 20 21 <!-- System permission to access the CarProjectionManager for projection status--> 22 <uses-permission android:name="android.car.permission.ACCESS_CAR_PROJECTION_STATUS"/> 23 <!-- Permission to assign Activity to TDA --> 24 <uses-permission android:name="android.car.permission.CONTROL_CAR_APP_LAUNCH"/> 25 <!-- System permission to host maps activity --> 26 <uses-permission android:name="android.permission.ACTIVITY_EMBEDDING"/> 27 <!-- Needed to change component enabled state when user opens disabled apps. --> 28 <uses-permission android:name="android.permission.CHANGE_COMPONENT_ENABLED_STATE"/> 29 <!-- Permission to open recent tasks and to allow drag surface control to be transferred from DragEvent. --> 30 <uses-permission android:name="android.permission.START_TASKS_FROM_RECENTS"/> 31 <!-- Permission for the InCallController to bind the InCallService --> 32 <uses-permission android:name="android.permission.CONTROL_INCALL_EXPERIENCE"/> 33 <!-- System permission to send events to hosted maps activity --> 34 <uses-permission android:name="android.permission.INJECT_EVENTS"/> 35 <!-- System permission to use internal system windows --> 36 <uses-permission android:name="android.permission.INTERNAL_SYSTEM_WINDOW"/> 37 <!-- System permission to register TaskOrganizer --> 38 <uses-permission android:name="android.permission.MANAGE_ACTIVITY_TASKS"/> 39 <!-- System permission to bring hosted maps activity to front on main display --> 40 <uses-permission android:name="android.permission.REORDER_TASKS"/> 41 <!-- System permission to remove a task --> 42 <uses-permission android:name="android.permission.REMOVE_TASKS"/> 43 <!-- System permission to call AM.getRunningAppProcesses(). 44 TODO: change this to REAL_GET_TASKS. --> 45 <uses-permission android:name="android.permission.GET_TASKS"/> 46 <!-- System permission to query users on device --> 47 <uses-permission android:name="android.permission.MANAGE_USERS"/> 48 <!-- System permission to control media playback of the active session --> 49 <uses-permission android:name="android.permission.MEDIA_CONTENT_CONTROL"/> 50 <!-- System permission to get app usage data --> 51 <uses-permission android:name="android.permission.PACKAGE_USAGE_STATS"/> 52 <!-- System permission to query all installed packages --> 53 <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/> 54 <!-- Permission to read contacts data. Needed to display contact name on dialer card --> 55 <uses-permission android:name="android.permission.READ_CONTACTS"/> 56 <!-- Permission for read-only access to phone state, namely the status of any ongoing calls --> 57 <uses-permission android:name="android.permission.READ_PHONE_STATE"/> 58 <!-- Allows input events to be monitored by CarDisplayAreaTouchHandler. --> 59 <uses-permission android:name="android.permission.MONITOR_INPUT"/> 60 <!-- Needed to use TYPE_APPLICATION_OVERLAY window type to display title bar. --> 61 <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/> 62 <!-- Permission to start a voice interaction service. --> 63 <uses-permission android:name="android.permission.ACCESS_VOICE_INTERACTION_SERVICE"/> 64 <!-- Permission to use InteractionJankMonitor. --> 65 <uses-permission android:name="android.permission.READ_DEVICE_CONFIG"/> 66 <!-- Permission to send notifications --> 67 <uses-permission android:name="android.permission.POST_NOTIFICATIONS"/> 68 <uses-permission android:name="android.permission.FORCE_STOP_PACKAGES"/> 69 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL"/> 70 <!-- Permission to create RemoteCarTaskView --> 71 <uses-permission android:name="android.car.permission.MANAGE_CAR_SYSTEM_UI"/> 72 <!-- Permission to read outside temperature sensor --> 73 <uses-permission android:name="android.car.permission.CAR_EXTERIOR_ENVIRONMENT"/> 74 <!-- Permission to read hvac properties --> 75 <uses-permission android:name="android.car.permission.CONTROL_CAR_CLIMATE"/> 76 <!-- Permission to read navigation state --> 77 <uses-permission android:name="android.car.permission.CAR_MONITOR_CLUSTER_NAVIGATION_STATE"/> 78 79 <!-- To connect to media browser services in other apps, media browser clients 80 that target Android 11 need to add the following in their manifest --> 81 <queries> 82 <intent> 83 <action android:name="android.media.browse.MediaBrowserService"/> 84 </intent> 85 </queries> 86 87 <application 88 android:icon="@drawable/ic_launcher_home" 89 android:label="@string/app_title" 90 android:theme="@style/Theme.Launcher" 91 android:supportsRtl="true"> 92 <activity 93 android:name=".CarLauncher" 94 android:configChanges="uiMode|mcc|mnc" 95 android:launchMode="singleTask" 96 android:clearTaskOnLaunch="true" 97 android:stateNotNeeded="true" 98 android:resumeWhilePausing="true" 99 android:exported="true" 100 android:windowSoftInputMode="adjustPan"> 101 <meta-data android:name="distractionOptimized" android:value="true"/> 102 <intent-filter> 103 <action android:name="android.intent.action.MAIN"/> 104 <category android:name="android.intent.category.HOME"/> 105 <category android:name="android.intent.category.DEFAULT"/> 106 <category android:name="android.intent.category.LAUNCHER_APP"/> 107 </intent-filter> 108 </activity> 109 <activity 110 android:name=".ControlBarActivity" 111 android:launchMode="singleInstance" 112 android:clearTaskOnLaunch="true" 113 android:stateNotNeeded="true" 114 android:resumeWhilePausing="true" 115 android:exported="true" 116 android:windowSoftInputMode="adjustPan" 117 android:excludeFromRecents="true"> 118 <meta-data android:name="distractionOptimized" android:value="true"/> 119 <intent-filter> 120 <category android:name="android.intent.category.DEFAULT"/> 121 </intent-filter> 122 </activity> 123 <service 124 android:name=".recents.CarQuickStepService" 125 android:permission="android.permission.STATUS_BAR_SERVICE" 126 android:directBootAware="true" 127 android:exported="true"> 128 <intent-filter> 129 <action android:name="android.intent.action.QUICKSTEP_SERVICE"/> 130 </intent-filter> 131 </service> 132 <activity 133 android:name=".recents.CarRecentsActivity" 134 android:excludeFromRecents="true" 135 android:launchMode="singleInstance" 136 android:stateNotNeeded="true" 137 android:exported="true" 138 android:taskAffinity="" 139 android:resumeWhilePausing="true"> 140 <meta-data android:name="distractionOptimized" android:value="true"/> 141 <intent-filter> 142 <action android:name="com.android.car.carlauncher.recents.OPEN_RECENT_TASK_ACTION"/> 143 <category android:name="android.intent.category.DEFAULT"/> 144 </intent-filter> 145 </activity> 146 <activity android:name="com.android.car.carlauncher.calmmode.CalmModeActivity" 147 android:excludeFromRecents="true" 148 android:exported="true" 149 android:launchMode="singleInstance" 150 android:theme="@style/Theme.CalmMode"> 151 <intent-filter> 152 <action android:name="com.android.settings.action.EXTRA_SETTINGS"/> 153 <category android:name="android.intent.category.DEFAULT"/> 154 </intent-filter> 155 <meta-data android:name="distractionOptimized" android:value="true"/> 156 <meta-data 157 android:name="com.android.settings.title" 158 android:resource="@string/calm_mode_title"/> 159 <meta-data 160 android:name="com.android.settings.category" 161 android:value="com.android.settings.category.ia.display"/> 162 </activity> 163 164 <provider android:name=".calmmode.CalmModeQCProvider" 165 android:authorities="com.android.car.carlauncher.calmmode" 166 android:grantUriPermissions="true" 167 android:exported="true"> 168 </provider> 169 170 <!-- The service needs to be directBootAware so that it can reflect the correct call state 171 when the system boots up. --> 172 <service android:name=".homescreen.audio.telecom.InCallServiceImpl" 173 android:directBootAware="true" 174 android:permission="android.permission.BIND_INCALL_SERVICE" 175 android:exported="true"> 176 <!-- The home app does not display the in-call UI. This is handled by the 177 Dialer application.--> 178 <meta-data android:name="android.telecom.IN_CALL_SERVICE_UI" android:value="false"/> 179 <meta-data android:name="android.telecom.IN_CALL_SERVICE_CAR_MODE_UI" 180 android:value="false"/> 181 <meta-data android:name="android.telecom.INCLUDE_SELF_MANAGED_CALLS" 182 android:value="true"/> 183 <intent-filter> 184 <action android:name="android.telecom.InCallService"/> 185 </intent-filter> 186 </service> 187 </application> 188</manifest> 189