Identify that Android device supports EAP-SIM for WiFi authentication programatically

谁说我不能喝 提交于 2020-01-15 14:25:09

问题


Currently there are two types of Android devices available in the market. Some devices support EAP-SIM authentication, while other does not. How can I identify programmatically whether my device support EAP-SIM authentication or not?


回答1:


To implement EAP-SIM feature, it requires patched wpa_supplicant and API to access APDU channel.

Since the AOSP did not have EAP-SIM support, there are different implementations on the market. It's hard to identify from wpa_supplicant, but we can check the APIs or service to guess if the device has smart card support or not.

  1. Check com.android.internal.telephony.RILConstants or com.android.internal.telephony.CommandsInterface. Git at Google
  2. Check if there is android.uid.smartcard system service. (Sony)


来源:https://stackoverflow.com/questions/16892040/identify-that-android-device-supports-eap-sim-for-wifi-authentication-programati

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!