How to change Bluetooth address in SFOS

Modifying /var/lib/bluetooth/board-address seems to only change what’s shown in Settings / About, but not the actual address seen to other devices.

Any ideas?

Why would you need to change it? What are you trying to achieve with that?

1 Like

My 10 III got its mainboard replaced under warranty by Sony service center, so it has (among others) a new Bluetooth MAC address. I’ve got a Bluetooth car kit which is painful to pair with in case of SFOS. If I could change the Bluetooth address back to what it was with the old mainboard, I could continue to use the 10 III without having to pair it anew (as on the 10 III side I have all contents of /var/lib/bluetooth restored, i.e. all pairings, etc). But if there is a new Bluetooth address, I can’t avoid pairing from scratch with the carkit and all the problems that it may take (bluetoothctl is helpful, but even then it sometimes takes multiple attempts before it manages to successfully pair).

So just changing the BT address to the one of the original mainboard would be much easier.

4 Likes

Never tried it but maybe GitHub - thxomas/bdaddr: Updated version of the bluez bdaddr tool or the original from bluez can do it?

3 Likes

Thank you, I’ll take a look at it.

Fortunately, bluetoothctl did its job very well and I was able to pair the new mainboard using it (bluetoothctl correctly requests to enter the pairing PIN, unlike GUI which doesn’t do it at all).

2 Likes