Merge "Add implicit broadcast exception for USB_ACCESSORY_HANDSHAKE" am: 1e47688982 am: 7d700b13de
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1866191 Change-Id: I1cc174c7d6384508399d3b6ce8820ce8b05cf8f3
This commit is contained in:
@@ -765,6 +765,8 @@ public class UsbDeviceManager implements ActivityTaskManagerInternal.ScreenObser
|
|||||||
|
|
||||||
// send a sticky broadcast containing USB accessory handshake information
|
// send a sticky broadcast containing USB accessory handshake information
|
||||||
Intent intent = new Intent(UsbManager.ACTION_USB_ACCESSORY_HANDSHAKE)
|
Intent intent = new Intent(UsbManager.ACTION_USB_ACCESSORY_HANDSHAKE)
|
||||||
|
.addFlags(Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND
|
||||||
|
| Intent.FLAG_RECEIVER_FOREGROUND)
|
||||||
.putExtra(UsbManager.EXTRA_ACCESSORY_UEVENT_TIME,
|
.putExtra(UsbManager.EXTRA_ACCESSORY_UEVENT_TIME,
|
||||||
mAccessoryConnectionStartTime)
|
mAccessoryConnectionStartTime)
|
||||||
.putExtra(UsbManager.EXTRA_ACCESSORY_STRING_COUNT,
|
.putExtra(UsbManager.EXTRA_ACCESSORY_STRING_COUNT,
|
||||||
|
|||||||
Reference in New Issue
Block a user