问题
I used https://github.com/aegis1980/WifiHotSpot code to start and stop Hotspot from my application. But it will only start and stop the hotspot that cannot change the Wifi configuration, I also want to change the SSID and password. I know how to do that thing under the Oreo device. Can anyone help me get the same result in Oreo.
回答1:
ONLY POSSIBLE IF YOUR APP IS RUNNING AS SYSTEM APP
In that case, I'm able to do this by using the below class:
https://github.com/anujjpandey/HotSpotOnOreo/blob/master/WifiAndDataConfigs.java
You can use the same
来源:https://stackoverflow.com/questions/54500228/how-to-change-wificonfigration-in-oreo-device