#StackBounty: #wi-fi #adb #mac-address Set fixed BSSID in LineageOS16 / Android

Bounty: 50

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,

Get this bounty!!!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.