Telephony: Fix RUIM app mcc/mnc issue.

if mUiccAppType is RUIM:
    use RuimRecords for mcc/mnc lookup.
else
    Use mIccRecords of mUiccAppType for mcc/mnc.

Above algorithm mandates that mUiccAppType MUST always be
correct for current configuration. This is controlled by
VOICE_RADIO_TECH and mPrecisePhoneType

For the configuration where simcard has only RuimApp and SimApp.
- In home network, VOICE_RADIO_TECH would indicate 1x.
    - This would result in enforcing that phonetype be CDMA.
    - MCC/MNC lookup on GsmCdmaPhone would result in using RuimRecords.
    - *#0000# would show RuimRecords parameters.
- In roaming GSM networks, VOICE_RADIO_TECH would indicate 3GPP RAT value.
    - this would force phone type to change from cdma >> GSM.
    - SimRecords would be used in mcc/mnc lookup.
    - *#0000# would show SimRecords parameters.

For the configuration where simcard has CsimApp, UsimApp and Isimapp.
- In home/roaming network, VOICE_RADIO_TECH would indicate 3GPP-rats/1x/LTE
    - GsmCdmaPhone would use SimRecords irrespective of VOICE_RADIO_TECH value.
    - *#0000# would show SimRecords or RuimRecords parameters based on current
    phoneType and VOICE_RADIO_TECH.

For the configurations where simcard has Csimapp or just RuimApp.
    - RuimRecords would be used in mcc/mnc lookup.
    - *#0000# woud show RuimRecords parameters.

Change-Id: Id2ac103c1d6fc6a3dbe6849f73ce92f84b5305ad
2 files changed
tree: 35fcb40bc16d72a0223fdbe48c44e1b27238657c
  1. resources/
  2. src/
  3. tests/
  4. tools/
  5. Android.mk
  6. CleanSpec.mk
  7. README.txt