安卓:为什么不SDK提供的程序员加入WiFi配置(EAP)容易吗?程序员、容易、SDK、EAP

2023-09-06 00:31:19 作者:踩著星星漫步

我想在Android(WPA企业,WPA2企业版)以编程方式创建的企业无线网络配置文件。

I am trying to programmatically create enterprise WiFi profiles on Android (WPA-Enterprise, WPA2-Enterprise).

我看到一个相当著名的解决方案,这是使用反射,以实现这一点。据我了解,如果它以这种间接的方式这涉及到​​获得访问已被拒绝访问的API的部分来完成,必须有一个很好的理由。

I have seen a fairly famous solution, which is to use reflection in order to achieve this. To my understanding, if it has to be done in such indirect manner which involves gaining access to portions of an API that have been denied access to, there has to be a good reason for it.

这是否意味着谷歌不希望开发人员能够以编程方式配置无线网络的设置?如果是这样,这可能是这个原因呢?

Does this mean that Google does NOT want developers to be able programmatically configure WiFi settings ? If so, what could be the reason for this ?

推荐答案

Android的软糖4.3增加了这个功能,它的API:

Android JellyBean 4.3 has added this functionality to it's API:

的http://developer.android.com/reference/android/net/wifi/WifiEnterpriseConfig.html