In Progress Wrong operator name (Telecom Italiz SpA)

Discussion in 'Bugs' started by Giangiva, Aug 22, 2013.

  1. Giangiva

    GiangivaMembers

    Jul 22, 2013
    174
    23
    28
    Male
    Italy
    Hello,
    when connecting my MI2A with MIUI 3.8.16 (multilanguage from miuiandroid.com) to my car via bluetooth, I noticed that the name of my mobile operator is wrong.
    It shows: "Telecom Italiz SpA", while it should be: "Telecom Italia SpA".
    Personally, I'd prefer something like "I TIM", as it is shown in the upper left corner of my phone.
    In any case, Italiz is obviously wrong.
    I've done some research by unzipping the latest ROM I installed on my phone and I found the wrong name to be in this library:
    /system/lib/libril-qc-qmi-1.so
    I patched it with a hex editor and replaced it on my phone: now it shows the correct name.

    As I don't like this patchwork (not even if it works and not even if it is for my phone only), is there a way to have it fixed permanently?
     
  2. iBotPeaches

    iBotPeachesScript Gatekeeper

    Oct 31, 2011
    3,811
    1,115
    335
    Kansas
    Its actually a spn.conf file which is the bad rename in /system/etc.

    So I'll just patch it with what you said above.
     
  3. Giangiva

    GiangivaMembers

    Jul 22, 2013
    174
    23
    28
    Male
    Italy
    Thanks a lot for your help! When changing the name, please consider that this carrier is known in Italy as "TIM" (http://www.tim.it) and not as telecom Italia, which is its mother (or sister) company whose business is on landline phones. so I would suggest "I TIM" as the carrier name.
     
  4. iBotPeaches

    iBotPeachesScript Gatekeeper

    Oct 31, 2011
    3,811
    1,115
    335
    Kansas
    Lost track of days. Forgot today was Friday, forgot to push the change into the repo :/
     
  5. Giangiva

    GiangivaMembers

    Jul 22, 2013
    174
    23
    28
    Male
    Italy
    Nevermind: I'll wait... :)
    I had a look to the file you mentioned: it's indeed a much cleaner patch than my one.
    Can you tell me the ID bound to my carrier? I think I found the id: 22201. Thanks!
    I can patch myself that conf file, for the time being...
    Thank you again for your efforts!
     
  6. Giangiva

    GiangivaMembers

    Jul 22, 2013
    174
    23
    28
    Male
    Italy
    FYI, I tried patching the indicated file (/system/etc/spn-conf.xml) by duplicating one of the existing lines and changing the data on the new line according to my needs.
    The final result was:
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <spnOverrides>
      <spnOverride numeric="23430" spn="EE" />
      <spnOverride numeric="23431" spn="EE" />
      <spnOverride numeric="23432" spn="EE" />
      <spnOverride numeric="23433" spn="EE" />
      <spnOverride numeric="23434" spn="EE" />
      <spnOverride numeric="23486" spn="EE" />
      <spnOverride numeric="20801" spn="Orange" />
      <spnOverride numeric="22201" spn="I TIM" />
    </spnOverrides>
    
    But it didn't change anything.
    So, for the time being, I'm back to my ugly hack of the library... :-(
     
  7. iBotPeaches

    iBotPeachesScript Gatekeeper

    Oct 31, 2011
    3,811
    1,115
    335
    Kansas

    Strange. Wikipedia reports it as being 22201 as well. If you open up MIUIStats, and go the the "preview" stats thing. What does that screen say in regards to carrier?
     
  8. Giangiva

    GiangivaMembers

    Jul 22, 2013
    174
    23
    28
    Male
    Italy
  9. Giangiva

    GiangivaMembers

    Jul 22, 2013
    174
    23
    28
    Male
    Italy
    Sorry, that was with my patch on the library... :-(

    Here is the screenshot with the original library:

    Screenshot_2013-08-24-16-22-37.png
     
  10. Giangiva

    GiangivaMembers

    Jul 22, 2013
    174
    23
    28
    Male
    Italy
    Please be aware that the second screenshot shows the wrong operator name inspite of the modified spn-conf.xml.
     
  11. Giangiva

    GiangivaMembers

    Jul 22, 2013
    174
    23
    28
    Male
    Italy
    Any news on this matter?
     

Share Our Site