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

Skip to content
Commit 24ed4cfd authored by Archie Pusaka's avatar Archie Pusaka Committed by Archie Pusaka
Browse files

hh: disconnect if UHID is not ready after 10 seconds

It's possible, e.g. due to a bad driver, for us to never receive UHID
OPEN event, thus making the device forever stuck in not ready state.

While this is not a problem by itself, the flag hid_report_queuing
queues any incoming input event during this whole time, so it will
waste memory, especially if the device is very actively sending input
events.

Disconnect the device if UHID is not ready after 10 seconds.

Bug: 359134513
Bug: 362665394
Test: mmm packages/modules/Bluetooth
Flag: com.android.bluetooth.flags.close_hid_if_uhid_ready_too_slow
Change-Id: I84cdd578cacfa68c21782e5a52b83184b0776fac
parent 94cfdf46
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment