Fix OOBE crash/DoS after receiving 0-byte WAP push.

Add a try/catch block around the code in WapPushOverSms.dispatchWapPdu(),
so we don't get into a reboot trap on receiving weirdly formed messages.
Only catch ArrayIndexOutOfBoundsException, which is difficult to
prevent inside dispatchWapPdu() for 0-byte PDUs or other unusual
contents. The caller should probably catch any unhandled exceptions of other types and log them with stack traces.

Bug: 11967705
Change-Id: Iabfec68d2564dd438d45c80cdba877bf19fa0397
Merge tag 'android-4.4.2_r1' into HEAD

Android 4.4.2 Release 1
Telephony: DcTracker: Fix CDMA APN Data issues.

Fixes Data on CDMA when APN Match cannot be found
Original commit: cd2585eb3f4e2db5c8a36382ffa644fa0d1515b4

PS2: Fixed small derp that was breaking build
PS3: Change author name to original author

Change-Id: Iad7737635686fdb9d7d35099d3cf615eb47a3dfd
Telephony: check if the provisioning apn is actually empty before

checking if they are equal.  Fixes cases where the stubbed apn
(empty) equal to the empty provisioning apn.

Fixes no IP issues on CDMA data types.

Change-Id: Id7bda83778f5ce59c87463c4d44fc5768dbc4a08
telephony: Add Qualcomm42RIL

 * Provides translation to JB_MR1 version

Change-Id: Ida0142403da6e012e9069ed0d4a19b06da97085b
SMSDispatcher: Fix determining the defaultSmsApp for proxied messages

We can't rely on the calling UID, since for re-broadcasted texts that'll
always be the telephony itself; so if called by the framework, use
the sentIntent creator to determine which app originated the message

Change-Id: I60ac02f6ae09f4260f5494659a174352f353aa2a
CdmaLte: Fix 3G reported as unknown on certain devices

Some older CDMA/LTE RILs only report VoiceRadioTechnology which
results in network Unknown. In these cases return
RilVoiceRadioTechnology for RilDataRadioTechnology.

Set ro.telephony.ril.v3=usevoicetechfordata to enable

Change-Id: Icfbc8739993beae1b0f024bf71374751aa200a01
Properly handle a null URI.

Change-Id: Ic144986f6935e9a2df0073869a6a8b4e863a6128
JIRA:CYAN-2491
CdmaLte: call setDataRegState when using RilVoiceRadioTechnology for data

When using the VoiceRadioTechnology to set the DataRadioTechnology
(by using usevoicetechfordata in ro.telephony.ril.v3), the actual
data registration state needs also to be updated with the service
state depending on the VoiceRadioTechnology. Without this, no data
connection would be established.

Change-Id: I72cd3ef2d40e62cf408cf79ee8d884da8675c1ca
SamsungCDMAv6RIL: update to latest RIL

Also add two mic state and WB AMR

Change-Id: I0a9fdbbfa7880f964c530b7aa3e46baf2fe9e6c1
Could not enable data connection

Could not enable the default type APN in below case:
1. Default apn exists, connect wifi
2. Delete default apn
3. Disconnect wifi

enableApnType won't reactivate default apn type when no
default apn exists. Add default apn criterium to avoid this.

Change-Id: Ic8699669e576e5d2140852f359e34ed6c3275633
SamsungQualcommRIL: Add more validation of Signal Strength

Change-Id: I4b166543ba6898616c9e64a86ff65693f8e33f72
SamsungQualcommRil: reversed engineered implimentation of dial() from touchwiz

derived from Ricardo Ceq. and Tony Layher work.

Change-Id: Ie17762a5bce84791f85c98dfca88f576b2f5aeb9
Merge "SamsungQualcommRIL: Add more validation of Signal Strength" into kk4.4
Merge "SamsungQualcommRil: reversed engineered implimentation of dial() from touchwiz" into kk4.4
SamsungQualcommRIL: fix my derp.

* don't code when you are tired
Change-Id: Ic02bd9cbbe96b674d7c93a2c5807563ddf46199a
telephony: do only run setCellInfoListRate for RIL version >= 8
old libraries like those from MR0 don't support this and sending this command causes endless wakelocks

Change-Id: Ia47d366f70841eb9910079e105add407f58e7555
Fix typo

Change-Id: Ia12ca4bd98c8f18a34af95b642e74196ea81fa19
Signed-off-by: Kevin Liu <airk908@gmail.com>
Return: National Data Roaming [1/3]

Credits: CM

Change-Id: Ibc20b5ed2bd8c94d8aa6fb0350caf819e82bfe98
SamsungQualcommRIL: kill off some old code

Change-Id: I9784c99e0ac82d6982f5240e2576fce6a7c1e1b6