Skip to content
Snippets Groups Projects
Commit 7692b3bd authored by Himanshu Rawat's avatar Himanshu Rawat Committed by David Duarte
Browse files

Close uhid file and polling thread together

UHID file descriptor is closed by btif_hh in jni thread on disconnection
or open failure while the UHID polling thread is closed by bta_hh in the
main thread on disconnection.
Closing UHID file descriptor without stopping polling thread can result
in high battery drain.
This change ensures that UHID fd closure is aligned  with closing of the
polling thread.

Bug: 280170626
Test: Regression
(cherry picked from https://android-review.googlesource.com/q/commit:5d0360323fc9157397ddfa035e987c1e9c5258ad)
Merged-In: I64daa836351f1ab3766947353d7824364eb9530f
Change-Id: I64daa836351f1ab3766947353d7824364eb9530f
parent a14dc09e
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment