如何在Oreo设备中更改WifiConfigration [英] How to change WifiConfigration in Oreo device

查看:84
本文介绍了如何在Oreo设备中更改WifiConfigration的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆