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
Enable SVDO. (1/2)

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

Change-Id: If7be25edc10f21680adbe3a059370d77a82ef076
Merge "Don't display prompt when card inserted/removed" into cm-10.2
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
Merge "Telephony: Don't read records from card if not needed." into cm-10.2
Merge "Don't assume 3GPP as active app on CDMA with LTE device" into cm-10.2
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
Merge "Enable SVDO. (1/2)" into cm-10.2
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
Revert "Telephony: Don't read records from card if not needed."

This breaks reading critical information from nv index.

This reverts commit 79920f0fc6547b718707ad2b89124be525c11738.

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

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

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

This reverts commit 2bda0907af637f5759713f1ecc2227bf9b71e959.

Change-Id: If7782e6efdab19552e7891cc51e29880ffc778e8
Merge "Telephony: Allow ruim to fetch in cdma lte mode," into cm-10.2
Merge "SamsungQualcommRIL: Create 2 more app for nv type of subscription." into cm-10.2
Telephony: Mock SMS (2/4)

This change brings the possibility of simulate the reception of SMS on real devices.
This change adds a MockSmsReceiver inside SMSDispatcher that have a BroadcastReceiver listening
for Intents.MOCK_SMS_RECEIVED_ACTION actions. This class accept the SMS simulation if and only if
Settings.Secure.ALLOW_MOCK_SMS is enabled and the sender application has the
"android.permission.SEND_MOCK_SMS" permission.

This receiver should be used in the next way:

Devs should declare <uses-permission android:name="android.permission.SEND_MOCK_SMS" />
and call it with:

Intent in = new Intent(Intents.MOCK_SMS_RECEIVED_ACTION);
in.putExtra("scAddr", "+01123456789");
in.putExtra("senderAddr", "+01123456789");
in.putExtra("msg", "This is a mock SMS message.");
sendBroadcast(in);

or

String pdu = "07914151551512f2040B916105551511f100006060605130308A04D4F29C0E";
byte[][] pdus = new byte[1][];
pdus[0] = HexDump.hexStringToByteArray(pdu);
Intent in = new Intent(Intents.MOCK_SMS_RECEIVED_ACTION);
intent.putExtra("pdus", pdus);
sendBroadcast(in);

Ported from http://review.cyanogenmod.org/#/c/23017

Patchset 2: Add support for sender vanish address; Split request into multiples sms
Patchset 3: Remove TODO comment

Change-Id: I14cab3d8ceb484df71a676dcfa44ca1634be908d
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
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
Merge "Telephony: Mock SMS (2/4)" into cm-10.2