What are the alternative Google APIs for Samsung Knox Wi-fi deprecation?
There are a few key differences between the Google and Samsung Knox Wi-Fi APIs. Firstly, Google APIs don't support the following security types:
- WIFI_SECURITY_OPEN, WIFI_SECURITY_PERSONAL
- WIFI_SECURITY_ENTERPRISE_EAP
- WIFI_SECURITY_ENTERPRISE_192
Additionally, Google's allow/deny SSID APIs don't support an allow list and deny list simultaneously. The client can either set an allow list, which blocks all SSIDs not on the list, or set a deny list, which blocks all SSIDs on the list.
The following table lists the Knox Wi-Fi policy APIs and their Google API equivalents.
Knox Wi-Fi policy APIs | Google APIs |
---|---|
Deprecated, with support removed. |
|
Deprecated. |
|
Deprecated. |
|
Deprecated, with support removed. |
|
Not yet supported by Google. Use the WifiPolicy API instead. |
|
Not yet supported by Google. Use the WifiPolicy API instead. |
|
Not yet supported by Google. Use the WifiPolicy API instead. |
|
Not yet supported by Google. Use the WifiPolicy API instead. |
|
Not yet supported by Google. Use the WifiPolicy API instead. |
|
Not yet supported by Google. Use the WifiPolicy API instead. |
|
Deprecated. |
|
Deprecated. |
|
Combination of setWifiEnabled and addUserRestriction — DISALLOW_CHANGE_WIFI_STATE |
|
Combination of isWifiEnabled and getUserRestrictions — DISALLOW_CHANGE_WIFI_STATE |
|
Not yet supported by Google. Use the WifiPolicy API instead. |
|
Not yet supported by Google. Use the WifiPolicy API instead. |
|
Combination of setWifiEnabled, addNetworkPrivileged, and enableNetwork. |
|
If you're calling the WifiAdminProfile Knox API, certain fields are passed as parameters to setWifiProfile. As a result of the harmonization between Knox and Google APIs, these fields must be replaced with their Google API counterparts.
The following table lists each WifiAdminProfile field and provides its Google API equivalent.
WifiAdminProfile | WifiConfiguration/WifiEnterpriseConfig |
---|---|
ssid |
|
psk |
|
password |
|
security |
|
wepKeyId |
|
wepKey1 |
|
wepKey2 |
|
wepKey3 |
|
wepKey4 |
|
userIdentity |
|
anonymousIdentity |
|
phase1 |
Not supported. |
phase2 |
|
clientCertification |
|
caCertificate |
|
staticIpEnabled |
|
staticIp |
|
staticGateway |
|
staticPrimaryDns |
|
staticSecondaryDns |
|
staticSubnetMask |
|
proxyState |
Automatically filled in by setHttpProxy. |
proxyHostname |
|
proxyPort |
|
proxyBypassList |
|
proxyPacUrl |
|
proxyAuthConfigList |
Not supported. |