Android: How to create EAP wifi configuration programmatically?

前端 未结 2 839
谎友^
谎友^ 2021-01-20 08:07

I know how to create Open/WEP/PSK/PSK2 configuration programmatically.

ex.

WifiConfiguration conf = new WifiConfiguration();
conf.SSID = \"ssid\";
co         


        
2条回答
  •  -上瘾入骨i
    2021-01-20 08:45

    Java Reflection API can be used to create IEEE802.x network with certificate. You can directily create IEEE802.x network connection is earlier version (like 1.6). In latest android the "EnterpriseField" (a inner class) is not directily accessible through program.

提交回复
热议问题