1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2023 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 query all installed packages -->
22    <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/>
23
24    <!-- Permission to allow drag surface control to be transferred from DragEvent. -->
25    <uses-permission android:name="android.permission.START_TASKS_FROM_RECENTS"/>
26    <uses-permission android:name="android.permission.MEDIA_CONTENT_CONTROL"/>
27    <!-- System permission to query users on device -->
28    <uses-permission android:name="android.permission.MANAGE_USERS"/>
29    <uses-permission android:name="android.permission.MEDIA_CONTENT_CONTROL"/>
30    <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS_FULL"/>
31
32    <!-- Permission to allow broadcasting events to the dock -->
33    <uses-permission android:name="com.android.car.docklib.permission.BROADCAST_SENDER" />
34
35    <application>
36
37        <!--TODO (b/301667893): Remove the Activities and its CarLauncher specific code, once we are
38           able to provide a Fragment for AppGrid-->
39        <activity
40            android:name="com.android.car.carlauncher.AppGridActivity"
41            android:launchMode="singleInstance"
42            android:windowSoftInputMode="adjustPan"
43            android:exported="true"
44            android:theme="@style/Theme.Launcher.AppGridActivity"
45            android:excludeFromRecents="true">
46            <meta-data android:name="distractionOptimized" android:value="true"/>
47            <intent-filter>
48                <action android:name="com.android.car.carlauncher.ACTION_APP_GRID"/>
49                <category android:name="android.intent.category.DEFAULT"/>
50            </intent-filter>
51        </activity>
52
53        <activity android:name="com.android.car.carlauncher.ResetLauncherActivity"
54            android:theme="@style/ActionDialogTheme"
55            android:excludeFromRecents="true"
56            android:exported="true"
57            android:launchMode="singleInstance">
58            <intent-filter>
59                <action android:name="com.android.settings.action.EXTRA_SETTINGS"/>
60                <category android:name="android.intent.category.DEFAULT"/>
61            </intent-filter>
62            <meta-data
63                android:name="com.android.settings.title"
64                android:resource="@string/reset_appgrid_title"/>
65            <meta-data
66                android:name="com.android.settings.category"
67                android:value="com.android.settings.category.ia.apps"/>
68        </activity>
69
70    </application>
71
72</manifest>
73