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    <uses-permission android:name="android.car.permission.ACCESS_CAR_PROJECTION_STATUS"/>
22    <!-- System permission to host maps activity -->
23    <uses-permission android:name="android.permission.ACTIVITY_EMBEDDING"/>
24    <!-- System permission to send events to hosted maps activity -->
25    <uses-permission android:name="android.permission.INJECT_EVENTS"/>
26    <!-- System permission to use internal system windows -->
27    <uses-permission android:name="android.permission.INTERNAL_SYSTEM_WINDOW"/>
28    <!-- System permissions to bring hosted maps activity to front on main display -->
29    <uses-permission android:name="android.permission.MANAGE_ACTIVITY_STACKS"/>
30    <!-- System permission to query users on device -->
31    <uses-permission android:name="android.permission.MANAGE_USERS"/>
32    <!-- System permission to control media playback of the active session -->
33    <uses-permission android:name="android.permission.MEDIA_CONTENT_CONTROL"/>
34    <!-- System permission to get app usage data -->
35    <uses-permission android:name="android.permission.PACKAGE_USAGE_STATS"/>
36    <!-- System permission to query all installed packages -->
37    <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/>
38    <uses-permission android:name="android.permission.REORDER_TASKS"/>
39
40    <!-- To connect to media browser services in other apps, media browser clients
41    that target Android 11 need to add the following in their manifest -->
42    <queries>
43        <intent>
44            <action android:name="android.media.browse.MediaBrowserService" />
45        </intent>
46    </queries>
47
48    <application
49        android:icon="@drawable/ic_launcher_home"
50        android:label="@string/app_title"
51        android:theme="@style/Theme.Launcher">
52        <activity
53            android:name=".CarLauncher"
54            android:configChanges="uiMode|mcc|mnc"
55            android:launchMode="singleTask"
56            android:clearTaskOnLaunch="true"
57            android:stateNotNeeded="true"
58            android:resumeWhilePausing="true"
59            android:windowSoftInputMode="adjustPan">
60            <meta-data android:name="distractionOptimized" android:value="true"/>
61            <intent-filter>
62                <action android:name="android.intent.action.MAIN"/>
63                <category android:name="android.intent.category.HOME"/>
64                <category android:name="android.intent.category.DEFAULT"/>
65            </intent-filter>
66        </activity>
67        <activity
68            android:name=".AppGridActivity"
69            android:launchMode="singleInstance"
70            android:exported="true"
71            android:noHistory="true"
72            android:theme="@style/Theme.Launcher.AppGridActivity">
73            <meta-data android:name="distractionOptimized" android:value="true"/>
74        </activity>
75    </application>
76</manifest>
77