问题
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.
- Check
com.android.internal.telephony.RILConstants
orcom.android.internal.telephony.CommandsInterface
. Git at Google - 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