From d9c1092ad53f023792fabe8b0e60db50cf649116 Mon Sep 17 00:00:00 2001 From: Jagrut Desai Date: Thu, 20 Jul 2023 11:38:24 -0700 Subject: [PATCH] Adding RECEIVER_EXPORTED flag to BroadcastReceiver We currently won't be able to run test locally on Android 14 devices as the flag is required for all braodcast recievers, so the change here. Test: Presubmit Bug: 292118103 Flag: not needed Change-Id: I85f9d1b9717b85b30a15e825ebd500508dd3ca5d --- .../android/launcher3/testcomponent/BaseTestingActivity.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/src/com/android/launcher3/testcomponent/BaseTestingActivity.java b/tests/src/com/android/launcher3/testcomponent/BaseTestingActivity.java index d3ce67c81c..81a59b9a45 100644 --- a/tests/src/com/android/launcher3/testcomponent/BaseTestingActivity.java +++ b/tests/src/com/android/launcher3/testcomponent/BaseTestingActivity.java @@ -69,7 +69,10 @@ public class BaseTestingActivity extends Activity implements View.OnClickListene mView.setBackgroundColor(Color.BLUE); setContentView(mView); - registerReceiver(mCommandReceiver, new IntentFilter(mAction + SUFFIX_COMMAND)); + registerReceiver( + mCommandReceiver, + new IntentFilter(mAction + SUFFIX_COMMAND), + RECEIVER_EXPORTED); } protected void addButton(String title, String method) {