I’m searching for a way to set the BSSID my OnePlus One (running LineageOS 16) is connecting to. I started adb shell as root and tried to change the BSSID in /data/misc/wifi/WifiConfigStore.xml, but when restarting the WiFi connection, the *.xml file gets set to default.
Can someone tell me which file needs to be edited that the MAC Address of the BSSID may get written to the *.xml file, or in which format the change needs to be made so that it won’t get set to default?
I found a configuration documentation which tells about editing a Public String, but I don’t know what needs to be edited and how. https://developer.android.com/reference/android/net/wifi/WifiConfiguration#BSSID
Thanks in advance,