Loading core/tests/bugreports/src/com/android/os/bugreports/tests/BugreportManagerTest.java +6 −1 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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"); Loading Loading
core/tests/bugreports/src/com/android/os/bugreports/tests/BugreportManagerTest.java +6 −1 Original line number Diff line number Diff line Loading @@ -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; Loading Loading @@ -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"); Loading