Correct exported state for AutofillManagerService receiver

The AutofillManagerService 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: Ib1a11165f25894e67ba7dc7e9bea9397b542b4f9
This commit is contained in:
Michael Groover
2021-11-22 17:32:44 -08:00
parent 06613fb4f5
commit e0917a05f8

View File

@@ -210,7 +210,7 @@ public final class AutofillManagerService
final IntentFilter filter = new IntentFilter();
filter.addAction(Intent.ACTION_CLOSE_SYSTEM_DIALOGS);
context.registerReceiver(mBroadcastReceiver, filter, null, FgThread.getHandler(),
Context.RECEIVER_NOT_EXPORTED);
Context.RECEIVER_EXPORTED);
mAugmentedAutofillResolver = new FrameworkResourcesServiceNameResolver(getContext(),
com.android.internal.R.string.config_defaultAugmentedAutofillService);