diff options
author | Felipe Leme <felipeal@google.com> | 2017-02-10 13:06:58 -0800 |
---|---|---|
committer | Felipe Leme <felipeal@google.com> | 2017-02-10 13:06:58 -0800 |
commit | 8775eaac44c0b70875ddac0040c291e0e2fe45ad (patch) | |
tree | e0dbee9af519706c874e6bff42b0d53ee67d7ff0 /packages/Shell/tests | |
parent | c928e9fa5343bd11d477240c119268a980cdf229 (diff) |
Set package name on bugreport intents.
BUG: 35257764
Test: BugreportReceiverTest passes
Change-Id: Ia6ff03b2a12ab9987f5b36fa1da88e9c77af18a2
Diffstat (limited to 'packages/Shell/tests')
-rw-r--r-- | packages/Shell/tests/src/com/android/shell/BugreportReceiverTest.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/Shell/tests/src/com/android/shell/BugreportReceiverTest.java b/packages/Shell/tests/src/com/android/shell/BugreportReceiverTest.java index 4e3744a49e5e..823b9b1023a3 100644 --- a/packages/Shell/tests/src/com/android/shell/BugreportReceiverTest.java +++ b/packages/Shell/tests/src/com/android/shell/BugreportReceiverTest.java @@ -695,6 +695,7 @@ public class BugreportReceiverTest { private void sendBugreportStarted(int id, int pid, String name, int max) throws Exception { Intent intent = new Intent(INTENT_BUGREPORT_STARTED); + intent.setPackage("com.android.shell"); intent.setFlags(Intent.FLAG_RECEIVER_FOREGROUND); intent.putExtra(EXTRA_ID, id); intent.putExtra(EXTRA_PID, pid); @@ -754,6 +755,7 @@ public class BugreportReceiverTest { */ private void sendBugreportFinished(int id, String bugreportPath, String screenshotPath) { Intent intent = new Intent(INTENT_BUGREPORT_FINISHED); + intent.setPackage("com.android.shell"); intent.setFlags(Intent.FLAG_RECEIVER_FOREGROUND); if (id != NO_ID) { intent.putExtra(EXTRA_ID, id); |