Add implicit broadcast exception for USB_ACCESSORY_HANDSHAKE

Test: Manually tested
Bug: b/186495257
Change-Id: I896afc6049a927ac23717c765098b2b4566e9c09
This commit is contained in:
Paul Murphy
2021-10-20 18:30:37 -07:00
parent eb2333936e
commit dc8bccf4a2

View File

@@ -765,6 +765,8 @@ public class UsbDeviceManager implements ActivityTaskManagerInternal.ScreenObser
// send a sticky broadcast containing USB accessory handshake information
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,
mAccessoryConnectionStartTime)
.putExtra(UsbManager.EXTRA_ACCESSORY_STRING_COUNT,