Commit 0d11d551 by tonihei Committed by christosts

Mark broadcast receivers as not exported

They are called from the system only and don't need to be exported
to be visible to other apps.

PiperOrigin-RevId: 489210264
(cherry picked from commit c1fd03df)
parent e42c65bc
...@@ -1162,8 +1162,7 @@ public class PlayerNotificationManager { ...@@ -1162,8 +1162,7 @@ public class PlayerNotificationManager {
Notification notification = builder.build(); Notification notification = builder.build();
notificationManager.notify(notificationId, notification); notificationManager.notify(notificationId, notification);
if (!isNotificationStarted) { if (!isNotificationStarted) {
// TODO(b/197817693): Explicitly indicate whether the receiver should be exported. Util.registerReceiverNotExported(context, notificationBroadcastReceiver, intentFilter);
context.registerReceiver(notificationBroadcastReceiver, intentFilter);
} }
if (notificationListener != null) { if (notificationListener != null) {
// Always pass true for ongoing with the first notification to tell a service to go into // Always pass true for ongoing with the first notification to tell a service to go into
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment