Merge "Fix non-protected broadcast NO_ACTION" into sc-v2-dev am: 2aa3d92490

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16006940

Change-Id: I1eaf4d6b8ffb1992b93f31f0f6a538a58e268963
This commit is contained in:
TreeHugger Robot
2021-10-11 04:01:07 +00:00
committed by Automerger Merge Worker

View File

@@ -31,7 +31,6 @@ import org.junit.Before
import org.junit.Rule
import org.junit.Test
import org.junit.runner.RunWith
import java.lang.Exception
/**
* UsbPermissionActivityTest
@@ -54,7 +53,9 @@ class UsbPermissionActivityTest : SysuiTestCase() {
putExtra(Intent.EXTRA_INTENT, PendingIntent.getBroadcast(
mContext,
334,
Intent("NO_ACTION"),
Intent("NO_ACTION").apply {
setPackage("com.android.systemui.tests")
},
PendingIntent.FLAG_MUTABLE))
putExtra(UsbManager.EXTRA_ACCESSORY, UsbAccessory(
"manufacturer",