REPRODUCIBILITY: unknown%
BUILD ID = OS VERSION: 4.1.0.24
HARDWARE: XA2 Ultra
UI LANGUAGE: Finnish
REGRESSION: no (probably)
DESCRIPTION:
Removing paired Bluetooth device doesn’t remove cache item from /var/lib/bluetooth/cache
which can lead to confusion.
PRECONDITIONS:
- Have two identical handsfrees at hand
STEPS TO REPRODUCE:
- Power on and pair handsfree 1
- Make a call and use the handsfree to see it works OK
- Shut down handsfree 1
- Remove handsfree 1 from paired devices
- Power on and pair handsfree 2
- Make a call and use the handsfree to see if it works
EXPECTED RESULT:
- No remnants of handsfree 1 in
/var/lib/bluetooth/cache
- The device works as expected
ACTUAL RESULT:
- Obsolete cache item in
/var/lib/bluetooth/cache
- The call is router to handsfree
- It works for a second or two, then disconnects
- The Bluetooth device is connected but the call can’t be routed to it
ADDITIONAL INFORMATION:
After step 5) there are two files in /var/lib/bluetooth/cache
folder with different MAC addresses and same name (tested with JBL TUNE750BTNC). Removing device 2 and re-pairing it doesn’t fix the issue.
I fixed the issue by removing all Bluetooth devices, turning off Bluetooth, clearing all files from the cache dir, powering on Bluetooth and pairing the device once again. Removing only the device may well be enough though, I just didn’t bother grepping the files using the on screen keyboard.
This is likely not a regression but a long time bug. I remember hitting the same bug (or close) in Sailfish 3.x and clearing the cache did the trick.
An educated but still blind suggestion: purge the cache directory of non-paired devices when Bluetooth is turned on.
Thanks!