Why is getNetworkOperator not reliable for CDMA?

Can I say why the documentation for the getNetworkOperator the TelephonyManager function indicates that this may return an unreliable result for CDMA?

getNetworkOperator documentation

Availability: Only when user is registered to a network. Result may be unreliable on CDMA networks (use getPhoneType() to determine if on a CDMA network).

What results do you get when calling this method on a CDMA device? and if it is not reliable, how can I get an MCC for a CDMA device?

+4
source share
2 answers

I know this is an old question, but maybe helpful to other people.

I don’t know what is coming back from some CDMA networks, but I think it will be β€œnull”.

You can get MCC from getSimOperator () .

Hope this helps.

+1
source

This is unreliable because it can be fake on cdma networks. You can get real operator names like Verizon Wireless, but you can also get strings like HOME, CRICKET, SCHOOL, etc.

0
source

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


All Articles