• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    <!-- To connect to media browser services in other apps, media browser clients
73    that target Android 11 need to add the following in their manifest -->
74    <queries>
75        <intent>
76            <action android:name="android.media.browse.MediaBrowserService"/>
77        </intent>
78    </queries>
79
80    <!-- The app needs to be directBootAware so that it can reflect the correct call state
81     when the system boots up. -->
82    <!-- Consider "defaultToDeviceProtectedStorage" which prevents app crash before boot
83     complete if access storage, but be careful with any user sensitive data when using. -->
84    <application
85        android:icon="@drawable/ic_launcher_home"
86        android:label="@string/app_title"
87        android:theme="@style/Theme.Launcher"
88        android:directBootAware="true"
89        android:supportsRtl="true">
90        <activity
91            android:name=".CarLauncher"
92            android:configChanges="uiMode|mcc|mnc"
93            android:launchMode="singleTask"
94            android:clearTaskOnLaunch="true"
95            android:stateNotNeeded="true"
96            android:resumeWhilePausing="true"
97            android:exported="true"
98            android:windowSoftInputMode="adjustPan">
99            <meta-data android:name="distractionOptimized" android:value="true"/>
100            <intent-filter>
101                <action android:name="android.intent.action.MAIN"/>
102                <category android:name="android.intent.category.HOME"/>
103                <category android:name="android.intent.category.DEFAULT"/>
104                <category android:name="android.intent.category.LAUNCHER_APP"/>
105            </intent-filter>
106        </activity>
107        <activity android:name="com.android.car.carlauncher.ResetLauncherActivity"
108                  android:theme="@style/ActionDialogTheme"
109                  android:excludeFromRecents="true"
110                  android:exported="true"
111                  android:launchMode="singleInstance">
112            <intent-filter>
113                <action android:name="com.android.settings.action.EXTRA_SETTINGS"/>
114                <category android:name="android.intent.category.DEFAULT"/>
115            </intent-filter>
116            <meta-data
117                android:name="com.android.settings.title"
118                android:resource="@string/reset_appgrid_title"/>
119            <meta-data
120                android:name="com.android.settings.category"
121                android:value="com.android.settings.category.ia.apps"/>
122        </activity>
123        <activity
124            android:name=".ControlBarActivity"
125            android:launchMode="singleInstance"
126            android:clearTaskOnLaunch="true"
127            android:stateNotNeeded="true"
128            android:resumeWhilePausing="true"
129            android:exported="true"
130            android:windowSoftInputMode="adjustPan"
131            android:excludeFromRecents="true">
132            <meta-data android:name="distractionOptimized" android:value="true"/>
133            <intent-filter>
134                <category android:name="android.intent.category.DEFAULT"/>
135            </intent-filter>
136        </activity>
137        <activity
138            android:name=".AppGridActivity"
139            android:launchMode="singleInstance"
140            android:exported="true"
141            android:theme="@style/Theme.Launcher.AppGridActivity"
142            android:excludeFromRecents="true">
143            <meta-data android:name="distractionOptimized" android:value="true"/>
144            <intent-filter>
145                <action android:name="com.android.car.carlauncher.ACTION_APP_GRID"/>
146                <category android:name="android.intent.category.DEFAULT"/>
147            </intent-filter>
148        </activity>
149        <service
150            android:name=".recents.CarQuickStepService"
151            android:permission="android.permission.STATUS_BAR_SERVICE"
152            android:directBootAware="true"
153            android:exported="true">
154            <intent-filter>
155                <action android:name="android.intent.action.QUICKSTEP_SERVICE"/>
156            </intent-filter>
157        </service>
158        <activity
159            android:name=".recents.CarRecentsActivity"
160            android:excludeFromRecents="true"
161            android:launchMode="singleInstance"
162            android:stateNotNeeded="true"
163            android:exported="true"
164            android:taskAffinity=""
165            android:resumeWhilePausing="true">
166            <meta-data android:name="distractionOptimized" android:value="true"/>
167            <intent-filter>
168                <action android:name="com.android.car.carlauncher.recents.OPEN_RECENT_TASK_ACTION"/>
169                <category android:name="android.intent.category.DEFAULT"/>
170            </intent-filter>
171        </activity>
172
173
174        <service android:name=".homescreen.audio.telecom.InCallServiceImpl"
175                 android:permission="android.permission.BIND_INCALL_SERVICE"
176                 android:exported="true">
177            <!-- The home app does not display the in-call UI. This is handled by the
178            Dialer application.-->
179            <meta-data android:name="android.telecom.IN_CALL_SERVICE_UI" android:value="false"/>
180            <meta-data android:name="android.telecom.IN_CALL_SERVICE_CAR_MODE_UI"
181                       android:value="false"/>
182            <meta-data android:name="android.telecom.INCLUDE_SELF_MANAGED_CALLS"
183                       android:value="true"/>
184            <intent-filter>
185                <action android:name="android.telecom.InCallService"/>
186            </intent-filter>
187        </service>
188    </application>
189</manifest>
190