[REQUEST] Add EAP-SIM Support

Discussion in 'Xiaomi Mi 2 / Mi 2S' started by mehdoux, Aug 28, 2014.

  1. mehdoux

    mehdouxMembers

    Aug 14, 2014
    54
    23
    18
    Male
    Hi everybody,

    I want to ask you if it's possible to add EAP-SIM support on CM11 (or in any ROM, I tried pretty much all of them, and any one is supporting it).

    What is EAP-SIM ?


    Basically, this is just a protocol that allows you to connect to a special Wifi network (in my case with the netowrk "FreeWifi_secure") without having to type in any password. You're automatically authenticated using you SIM card, which, obviously, is a SIM card of the company which provides the Wifi network.

    What's the problem with CM11 ?


    First of all, the phone doesn't give the possibility to connect through the SIM card. That's how CM11 looks like when we try to cnnect such a network :

    [​IMG]

    That's how the menu should look like to allow the connection to the network :

    [​IMG]

    After searching a lot on the web, I understood that Android AOSP dosen't includes libraries to connect to such a network. As CM is based on Android AOSP, this is normal that it doesn't support it. Is there a way to add it in CM11 ? Or at least, to give a patch for users who need this option ?

    Useful links for developpers :

    https://code.google.com/p/seek-for-android/wiki/EapSimAka

    https://android-review.googlesource.com/#/q/message:eap-sim,n,z


    This is also important to underline that this feature has been requested to Google since 2010, and nothing has changed, despite the fact that near 10 000 persons starred the issue and more than 1200 persons wrote a comment : https://code.google.com/p/android/issues/detail?id=9329
     
    Beyaz likes this.
  2. cpasmoi

    cpasmoiStaff

    Sep 22, 2013
    355
    132
    67
    Male
    France
    they added it recently to miui :D
     
    mehdoux likes this.
  3. mehdoux

    mehdouxMembers

    Aug 14, 2014
    54
    23
    18
    Male
    Hi,

    I'm gonna try that ! Thank you for the information dude !
    Anyway, if someone could add this feature into CM11, it would be great !
     
  4. XperianPro

    XperianProMembers

    Oct 26, 2013
    648
    217
    80
    Male
    Actually Android supports it but Settings.apk don't so you need to enter configuration directly into WiFi configuration file.
     
  5. mehdoux

    mehdouxMembers

    Aug 14, 2014
    54
    23
    18
    Male
    #5mehdoux,Aug 29, 2014
    Last edited: Aug 29, 2014
    Hi,

    Unfortunately, no, it's not working because I have already tried everything I was able to do before posting this thread. Indeed, many tutorials on the web explains that we have to modifiy the wpa_supplicant file. That's what I did and it's still not working. That's why I think EAP-SIM is neither implemented on Settings.apk nor on Android (AOSP, of course, because some ROM not based on AOSP or some manufacturer ROM support it)
    Actually, this links seems very useful to help implementing EAP-SIM on android but, as I'm not a developper, I can't do anything :

    https://code.google.com/p/seek-for-android/wiki/EapSimAka


    EDIT : Unfortunately, after testing latest MIUI release (4.8.22) as advised me cpasmoi, EAP-SIM is still not working, even with the wpa_supplicant file modified (SIM option is still not here). Definitely, there isn't any ROM for Mi2S which supports EAP-SIM ! If someone could help me, it would be great. Thanks for reading such a long message !
     
  6. XperianPro

    XperianProMembers

    Oct 26, 2013
    648
    217
    80
    Male
    I will take a look at source code,maybe something can be done.
     
    Beyaz, MSephiroth and mehdoux like this.
  7. mehdoux

    mehdouxMembers

    Aug 14, 2014
    54
    23
    18
    Male
    Up !
    @XperianPro : Found something ? An idea to fix this issue ?

    Thanks.
     
  8. XperianPro

    XperianProMembers

    Oct 26, 2013
    648
    217
    80
    Male
    I didnt look yet but I will fetch AOSP code tomorrow and I will look then.
     
  9. XperianPro

    XperianProMembers

    Oct 26, 2013
    648
    217
    80
    Male
  10. Its not my ROM. I don't use caf code at all
     
  11. mehdoux

    mehdouxMembers

    Aug 14, 2014
    54
    23
    18
    Male
    Hi,

    @M1cha : I just installed the ROM you advised me. But, unfortunately, like all Mi2S ROMs, EAP-SIM is not supported. (wifi network is stuck on "Connecting")
    Hope somebody will help me to fix this issue ! ;)
     
  12. XperianPro

    XperianProMembers

    Oct 26, 2013
    648
    217
    80
    Male
    I meant on kernel.
     
  13. mehdoux

    mehdouxMembers

    Aug 14, 2014
    54
    23
    18
    Male
    A little up ! :D
     
  14. mehdoux

    mehdouxMembers

    Aug 14, 2014
    54
    23
    18
    Male
    Again up ! Don't forget me guys!
     
  15. XperianPro

    XperianProMembers

    Oct 26, 2013
    648
    217
    80
    Male
    Its not possible,there's no simple switch in source code to make it working,code rewriting is needed and I doubt anyone will do it since Android L will come in a month or so.
     
  16. mehdoux

    mehdouxMembers

    Aug 14, 2014
    54
    23
    18
    Male
    Hi,

    Ok, thank you for your franchise. The only thing I can do now is to wait for Android L and hope that this feature will be built-in. But I doubt it.
     

Share Our Site