From e0917a05f82d1665d3cba86fa6cb770744c08fa0 Mon Sep 17 00:00:00 2001 From: Michael Groover Date: Mon, 22 Nov 2021 17:32:44 -0800 Subject: [PATCH] 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 --- .../com/android/server/autofill/AutofillManagerService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/autofill/java/com/android/server/autofill/AutofillManagerService.java b/services/autofill/java/com/android/server/autofill/AutofillManagerService.java index 5e2449da04c79..422749e9a75af 100644 --- a/services/autofill/java/com/android/server/autofill/AutofillManagerService.java +++ b/services/autofill/java/com/android/server/autofill/AutofillManagerService.java @@ -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);