OSDN Git Service

Remove SCO devices if Bluetooth process is dead
authorUgo Yu <ugoyu@google.com>
Mon, 14 May 2018 11:30:32 +0000 (19:30 +0800)
committerUgo Yu <ugoyu@google.com>
Tue, 15 May 2018 09:31:15 +0000 (17:31 +0800)
commit8f8ee847b43815c56723792864336d250fa6593e
treed79220e9baf139e288f7886d09765b321e6d9335
parent09a0c2d53cd4b9072decae5d641957b88795d2b8
Remove SCO devices if Bluetooth process is dead

Fix Bluetooth device stuck in device list forever if Bluetooth
crashed and any HFP device was connected at this moment.
Make sure all kind of device class of the BT address are removed
from the list.

Bug: 79509110
Test: kill com.android.bluetooth while HFP is connected.
Change-Id: I0d717bcc4c2182f1ac834d67b8227c9773639c7f
services/core/java/com/android/server/audio/AudioService.java