1<?xml version="1.0" encoding="utf-8"?>
2<!--
3  ~ Copyright (C) 2019 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    xmlns:tools="http://schemas.android.com/tools"
20    package="com.android.car.secondaryhome">
21    <!-- System permission to host maps activity -->
22    <uses-permission android:name="android.permission.ACTIVITY_EMBEDDING"/>
23    <!-- System permission to send events to hosted maps activity -->
24    <uses-permission android:name="android.permission.INJECT_EVENTS"/>
25    <!-- System permission to use internal system windows -->
26    <uses-permission android:name="android.permission.INTERNAL_SYSTEM_WINDOW"/>
27    <!-- System permissions to bring hosted activity to front on current display -->
28    <uses-permission android:name="android.permission.MANAGE_ACTIVITY_STACKS"/>
29    <uses-permission android:name="android.permission.REORDER_TASKS"/>
30    <!-- System permissions to querry user -->
31    <uses-permission android:name="android.permission.MANAGE_USERS"/>
32
33    <application
34        android:label="@string/app_name"
35        tools:replace="android:label">
36
37        <activity
38            android:name=".launcher.LauncherActivity"
39            android:label="@string/app_launcher"
40            android:theme="@style/LauncherTheme"
41            android:configChanges="orientation|screenSize|smallestScreenSize|
42                screenLayout|colorMode|density"
43            android:documentLaunchMode="always"
44            android:multiprocess="true">
45            <intent-filter>
46                <action android:name="android.intent.action.MAIN" />
47                <category android:name="android.intent.category.DEFAULT" />
48                <category android:name="android.intent.category.SECONDARY_HOME"/>
49            </intent-filter>
50        </activity>
51        <service android:name=".launcher.NotificationListener"
52              android:label="@string/notification_service_label"
53              android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE"
54              android:directBootAware="true">
55            <intent-filter>
56                <action android:name="android.service.notification.NotificationListenerService"/>
57            </intent-filter>
58        </service>
59    </application>
60</manifest>
61
62