SamsungExynos3RIL: rebase to latest RIL

Change-Id: Ibb15014055b1648fe073f4bf6b1ff673271caab4
Telephony: prevent NPE

Change-Id: Ia7a08334a901ef67353d5816d0822d0cb2d57daf
Don't display prompt when card inserted/removed

UiccCard displays a prompt to reboot the device when a card is
inserted or removed. Don't display this if the modem supports
hot swapping.

Change-Id: I43fc95e61382671f61286818304ec58e922e8605
HTCQualcommRIL: fix data drops when switching state

* HTC RIL always throws this exception after the initial data call
  setup, so only switch ifname if the call goes from active to inactive.
* Prevents data drop due to empty address/DNS/gateway when radio tech
  switches to/from LTE/3G/2G.

Change-Id: Ia540e9b48e2f0ff7deb4d798aaac2c45ef38dbb3
Telephony: Query SignalStrength when there is a RAT change.

In CdmaLte phone when RAT switch happens, telephony receiving
new signal info before updating to new RAT and because of that
the received signal info is ignored and empty bars updated
on UI. To avoid that query signal strength info when there
is a change in PS RAT happens.
CRs-Fixed: 464438

Change-Id: If494b9380f47bd82fe4f5dec03f9538c7ab76b49
Enable SVDO. (1/2)

Allow evdo/ehrpd + voice simutaneously.
Use ro.ril.svdo=true

Change-Id: If7be25edc10f21680adbe3a059370d77a82ef076
Telephony: Don't read records from card if not needed.

Specifically handle the scenario where there is an RUIM card
 inserted but we are in NV mode. In this case, don't read
records from the card.
IccCardProxy tells the IccRecord that it will be requiring records
from the card. RuimRecord waits for this indication before fetching
records from the card
Change-Id: Ifa95dda2958922901e887b386c55556f947a881d
Don't assume 3GPP as active app on CDMA with LTE device

IccCardProxy assumes, that on a CDMA+LTE device, the active app
is the SIM/USIM and not the RUIM/CSIM. However, for voice RUIM/CSIM
is the active app on such a device. All services, like FDN,etc. should
be tied to the active voice app.
CRs-Fixed: 428304, 506938

Change-Id: I70894a1aab0a812a50f1cbab986161bb3b708b85
Telephony: Guess radio tech

If RIL returns radio_tech_unknown IccCardProxy
needs to guess radio tech family.
It will do so based on present uicc applications.

Make sure that all pathes update IccCardProxy
radio tech, since it has its own logic for determining
app type, which might change even when PhoneProxy
ignores the change
(An example of this would be umts->unknown->umts change)
CRs-Fixed: 460777

Conflicts:
	src/java/com/android/internal/telephony/uicc/IccCardProxy.java

Change-Id: I04ee067cfb5f6517298458667500db14aaefc810
Fix 1x/evdo data call for NV/RUIM based subscription.

NV/RUIM based CDMA subscription was not handled properly in
DcTracker and data calls were not initiated since it was
waiting for sim loaded event.Changed the code to allow data
calls even without loading SIM ,if CDMA subscription is NV
based.
Dummy APN profiles will be created based on the current DATA
radio technology so that they wont be used for GSM/UMTS/LTE
and eHRPD.

Patch set 2:
* Rewrite a portion of the fix to Google standard.
* The reason string is only for log purposes.
* Add support for SIM/RUIM based connection.
* Consolidate the fix to one method.
Change-Id: Ie536f10e76befc62bdd4e1b99f3db7906d0f345d
Move custom icccardstatus back to HTCQualcommRil.

On m7spr and jewel,  we no longer need the custom ril class.

Patchset4: remove htccdmaqualcommril class.

Change-Id: I02a26a8d52f724e4ba0e8955f6ab8fae1951edbb
Telephony: Allow ruim to fetch in cdma lte mode,

don't do it for devices don't have lte in nv mode.
fixes cases where the iccid could be unknown on some cdma nv devices.

Change-Id: Ie8e676a59e20c6da70eded511a979022667aa6fa
SamsungQualcommRIL: Create 2 more app for nv type of subscription.

A proper patch for http://review.cyanogenmod.org/#/c/48388/

Change-Id: I42e3ec88452239a6b953dff0e636a8c2e5dbf958
DcTracker: ensure subscription is from NV before calling onRecordsLoaded

if CDMA and subscription is from SIM, we dont want to call onRecordsLoaded() if we dont meet the critiria to do so yet.

Change-Id: I1466cc2157c2d284970aec35c601c4b378389886
fix mvno_match_data OutOfBounds Exception in substring check routine.

When the length of mvno_match_data is greater than GID from IccRecord,
It will generate StringIndexOutOfBoundsException.
Therefore, codes are changed to use startsWith() insteads of subString().

Change-Id: I04c5c5039edb2cfa757bf2f5a4b9f124afb69b06
Bugs: 10171336

Fix mvnoMatches function but keep case-insensitive

Redo previous fix in a way that's still case insensitive.

bug:10171336
Change-Id: I65e29b72ace2a41ed7a19e3bfb5d23bf3773d41c