Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc8bccf4 authored by Paul Murphy's avatar Paul Murphy
Browse files

Add implicit broadcast exception for USB_ACCESSORY_HANDSHAKE

Test: Manually tested
Bug: b/186495257
Change-Id: I896afc6049a927ac23717c765098b2b4566e9c09
parent eb233393
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -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,