Merge "Specifies RECEIVER_NOT_EXPORTED for FlashNotificationsController broadcast receiver" into udc-dev

This commit is contained in:
Angela Wang
2023-03-07 06:52:50 +00:00
committed by Android (Google) Code Review

View File

@@ -255,7 +255,7 @@ class FlashNotificationsController {
broadcastFilter.addAction(ACTION_FLASH_NOTIFICATION_STOP_PREVIEW);
mFlashBroadcastReceiver = new FlashBroadcastReceiver();
mContext.registerReceiver(
mFlashBroadcastReceiver, broadcastFilter, Context.RECEIVER_EXPORTED);
mFlashBroadcastReceiver, broadcastFilter, Context.RECEIVER_NOT_EXPORTED);
final PowerManager powerManager = mContext.getSystemService(PowerManager.class);
mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, WAKE_LOCK_TAG);