Add an exported flag in manifest
With b/150232615, we will need an explicit value set for the exported
flag when intent filters are present, as the default behavior is
changing for S+. This change adds the value reflecting the previous
default to the manifest.
These changes were made using an automated tool, the xml file may be
reformatted slightly creating a larger diff. The only "real" change is
the addition of "android:exported" to activities, services, and
receivers that have one or more intent-filters.
Bug: 150232615
Test: TH
Exempt-From-Owner-Approval: mechanical refactoring
Change-Id: Id6c53280cbfc52135cf09a468199c9df78433215
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 3eadb5d..dfb6ccb 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -17,9 +17,9 @@
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="com.android.car.notification">
+ package="com.android.car.notification">
<!-- Permission to show display overlay window for heads-up notifications -->
- <uses-permission android:name="android.permission.INTERNAL_SYSTEM_WINDOW" />
+ <uses-permission android:name="android.permission.INTERNAL_SYSTEM_WINDOW"/>
<!-- Permission to get the current user id to cancel a notification -->
<uses-permission android:name="android.permission.INTERACT_ACROSS_USERS"/>
<!-- Permission to get the current user id to cancel all notifications -->
@@ -28,27 +28,28 @@
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.MODIFY_PHONE_STATE"/>
- <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
+ <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<!--Permission to talk to the Status bar service which proxies the calls to remove
- notifications to the notification service -->
- <uses-permission android:name="android.permission.STATUS_BAR_SERVICE" />
+ notifications to the notification service -->
+ <uses-permission android:name="android.permission.STATUS_BAR_SERVICE"/>
<!--Permission to start a voice interaction service-->
<uses-permission android:name="android.permission.ACCESS_VOICE_INTERACTION_SERVICE"/>
<application android:name=".NotificationApplication">
- <activity
- android:name=".CarNotificationCenterActivity"
- android:theme="@style/Theme.DeviceDefault.NoActionBar.Notification"
- android:launchMode="singleInstance"
- android:noHistory="true"
- android:exported="true"
- android:stateNotNeeded="true">
- <meta-data android:name="distractionOptimized" android:value="true"/>
+ <activity android:name=".CarNotificationCenterActivity"
+ android:theme="@style/Theme.DeviceDefault.NoActionBar.Notification"
+ android:launchMode="singleInstance"
+ android:noHistory="true"
+ android:exported="true"
+ android:stateNotNeeded="true">
+ <meta-data android:name="distractionOptimized"
+ android:value="true"/>
</activity>
<service android:name=".CarNotificationListener"
- android:label="@string/notification_service_label"
- android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE"
- android:directBootAware="true">
+ android:label="@string/notification_service_label"
+ android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE"
+ android:directBootAware="true"
+ android:exported="true">
<intent-filter>
<action android:name="android.service.notification.NotificationListenerService"/>
</intent-filter>