问题描述
我使用 https://github.com/aegis1980/WifiHotSpot 代码启动和停止热点从我的应用程序中.但这只会启动和停止无法更改Wifi配置的热点,我也想更改SSID和密码.我知道如何在Oreo设备下执行该操作.谁能帮助我在Oreo中获得相同的结果.
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.
推荐答案
仅当您的应用程序作为系统应用程序运行时才可能
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
您可以使用相同的
这篇关于如何在Oreo设备中更改WifiConfigration的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!