Correct exported state for VoiceInteractionManagerServiceImpl receiver

The VoiceInteractionManagerServiceImpl receiver that listens for
CLOSE_SYSTEM_DIALOGS broadcasts was initially marked as not exported
since this broadcast should be dropped by the platform when sent from
apps. However since this broadcast is still valid to be used in tests,
receivers registering for this broadcast should be marked as exported.
This commit updates the receiver to exported to allow any tests that
send this broadcast to complete successfully.

Bug: 161145287
Test: Build
Change-Id: I2238b2e2d3c3b6ecec155b628ac59e8db6e863b6
This commit is contained in:
Michael Groover
2021-11-22 17:40:50 -08:00
parent 06613fb4f5
commit 2e701ddb90

View File

@@ -191,7 +191,7 @@ class VoiceInteractionManagerServiceImpl implements VoiceInteractionSessionConne
IntentFilter filter = new IntentFilter();
filter.addAction(Intent.ACTION_CLOSE_SYSTEM_DIALOGS);
mContext.registerReceiver(mBroadcastReceiver, filter, null, handler,
Context.RECEIVER_NOT_EXPORTED);
Context.RECEIVER_EXPORTED);
}
public boolean showSessionLocked(Bundle args, int flags,