blob: bdf52534cc643a87561ff7909916b4b2ba063c60 [file] [log] [blame]
Adora Zhang07a94862018-06-19 16:16:09 -07001<?xml version="1.0" encoding="utf-8"?>
2<!--
3** Copyright (C) 2018 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
19<manifest xmlns:android="http://schemas.android.com/apk/res/android"
Ashwini Oruganti2fb5a9f2020-03-23 13:56:04 -070020 package="com.android.car.notification">
Brad Stenning935edda2018-10-19 08:38:02 -070021 <!-- Permission to show display overlay window for heads-up notifications -->
Ashwini Oruganti2fb5a9f2020-03-23 13:56:04 -070022 <uses-permission android:name="android.permission.INTERNAL_SYSTEM_WINDOW"/>
Adora Zhang6041e572018-08-21 14:23:44 -070023 <!-- Permission to get the current user id to cancel a notification -->
24 <uses-permission android:name="android.permission.INTERACT_ACROSS_USERS"/>
Qiao (Adora) Zhangaab41e02019-01-22 18:55:35 +000025 <!-- Permission to get the current user id to cancel all notifications -->
26 <uses-permission android:name="android.permission.MANAGE_USERS"/>
Priyank Singhd2e0f132019-04-02 15:04:08 -070027 <!-- Permission to get status if a user in on call -->
28 <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
29 <uses-permission android:name="android.permission.MODIFY_PHONE_STATE"/>
30
Ashwini Oruganti2fb5a9f2020-03-23 13:56:04 -070031 <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
Brad Stenning935edda2018-10-19 08:38:02 -070032 <!--Permission to talk to the Status bar service which proxies the calls to remove
Ashwini Oruganti2fb5a9f2020-03-23 13:56:04 -070033 notifications to the notification service -->
34 <uses-permission android:name="android.permission.STATUS_BAR_SERVICE"/>
Uriel Sade06456012018-12-03 10:50:29 -080035 <!--Permission to start a voice interaction service-->
36 <uses-permission android:name="android.permission.ACCESS_VOICE_INTERACTION_SERVICE"/>
Adora Zhang07a94862018-06-19 16:16:09 -070037
Calvin Huang6d247672022-09-12 12:53:31 -070038 <!--Permission to query application package info-->
39 <uses-permission android:name="android.permission.QUERY_ALL_PACKAGES"/>
40
Adora Zhang08b64ff2019-02-06 21:26:01 -080041 <application android:name=".NotificationApplication">
Ashwini Oruganti2fb5a9f2020-03-23 13:56:04 -070042 <activity android:name=".CarNotificationCenterActivity"
43 android:theme="@style/Theme.DeviceDefault.NoActionBar.Notification"
44 android:launchMode="singleInstance"
45 android:noHistory="true"
46 android:exported="true"
47 android:stateNotNeeded="true">
48 <meta-data android:name="distractionOptimized"
49 android:value="true"/>
Jonathan Koo86569e92019-05-03 11:45:10 -070050 </activity>
51 <service android:name=".CarNotificationListener"
Ashwini Oruganti2fb5a9f2020-03-23 13:56:04 -070052 android:label="@string/notification_service_label"
53 android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE"
54 android:directBootAware="true"
55 android:exported="true">
Adora Zhang07a94862018-06-19 16:16:09 -070056 <intent-filter>
57 <action android:name="android.service.notification.NotificationListenerService"/>
58 </intent-filter>
59 </service>
Adora Zhang07a94862018-06-19 16:16:09 -070060 </application>
61</manifest>