Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit acb32169 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Use RECEIVER_EXPORTED in BugreportManagerTest" into main

parents efc35f89 d3086e08
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@

package com.android.os.bugreports.tests;

import static android.content.Context.RECEIVER_EXPORTED;

import static com.google.common.truth.Truth.assertThat;

import static org.junit.Assert.assertNotNull;
@@ -358,7 +360,10 @@ public class BugreportManagerTest {
        // shell UID rather than our own.
        BugreportBroadcastReceiver br = new BugreportBroadcastReceiver();
        InstrumentationRegistry.getContext()
                .registerReceiver(br, new IntentFilter(INTENT_BUGREPORT_FINISHED));
                .registerReceiver(
                        br,
                        new IntentFilter(INTENT_BUGREPORT_FINISHED),
                        RECEIVER_EXPORTED);
        UiDevice.getInstance(InstrumentationRegistry.getInstrumentation())
                .executeShellCommand("am bug-report");