How can I set Bluetooth connection priority for various devices? [closed]
How can I set up Bluetooth devices with a set of connection priority rules, so that they connect to the correct device.
Ideally, my phone(Android) would prefer connection to car > laptop > PC.
My headphones would prefer Laptop > Phone for media stream, Phone > Laptop for phone stream.
I expect the answer is that it can't be done without some significant difficulty, if it's possible at all, but I'd be glad to be surprised.
Solution 1:
This is very simple. (Meaning that there is only one way to do this!) The bluetooth standard lacks an option for setting a specific priority on a device. This is usually handled by the operating system.
Under bluetooth settings please add (or remove and re-add) the devices to change the priority. The devices should be listed in priority, and attempt to connect in the order listed. If a device with higher priority is available during a periodic scan it should attempt to drop the connection to the current device and reconnect with the higher priority device.
I have actually had this happen to me in my car, that I entered the car with my Mono Headset turned on and talking and after about 3 minutes, my car speakerphone picked up the call.
My devices are listed:
- Stereo Headset
- Motorola Car adapter
- Mono headset
Solution 2:
An alternate method to enforce this manually is to change the order of the devices within /data/misc/bluedroid/bt_config.conf
on your device via the adb
shell.