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
Loading
Please register or sign in to comment