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
This commit is contained in:
Jagrut Desai
2023-07-20 11:38:24 -07:00
parent 210e000272
commit d9c1092ad5
@@ -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) {