commit | 859fb5f6a62b19f3f348fe0ece89ff333c14d02c | [log] [tgz] |
---|---|---|
author | Sravan voleti <quic_svoleti@quicinc.com> | Fri Apr 19 11:16:44 2019 +0530 |
committer | Sravan voleti <quic_svoleti@quicinc.com> | Fri Apr 19 11:19:27 2019 +0530 |
tree | a06e7ca2287031d672f7cf0bad0394a4e461be28 | |
parent | 123d59a7128560f99501d477c02b31820ef1bd2d [diff] |
HID: Fix the potential NPE in HidHostService jni callback Add mutex-based protection mechanism to the HID JNI layer to avoid a race condition during graceful cleaning up of the Bluetooth HID Interface when Bluetooth is disabled, and native upcalls like connection_state_callback(). Bug: 130843208 Test: perfomed BT on and off use case not seen NPE. Change-Id: Idec03ba93415ef8335093e310142933cecb2b85c