Is getSimCountryIso returns 3 letters or 2 letters ISO code

I was wondering, getSimCountryIso returns 2 letters or 3 letters of the ISO code? Since this is not mentioned in the documentation. I tested using my Nexus phone, it returns 2 letters. However, I'm not sure if this is true for other phones.

+6
source share
2 answers

It returns everything that OEM has configured for the gsm.sim.operator.iso-country property, which in my experience is a 2-character code. The codes I saw correspond to the Alpha-2 code from ISO 3166-1 ( http://en.wikipedia.org/wiki/ISO_3166-1 ). This is based on my observation, as I could not find it in any official documentation.

+5
source

From the SIM cards I tried, it returns lowercase two-letter country codes.

0
source

Source: https://habr.com/ru/post/945346/


All Articles