SamsungRIL: Fixes for CDMA data reconnection failures due to stale pppd

Occasionally the CDMA data connection fails to reconnect after various
radio events, which is fixed neither by toggling mobile data nor airplane
mode, but only by a reboot.  One known cause of this problem is that the
pppd_cdma service is occasionally left running after the radio event, which
causes all subsequent "setup data call" operations to fail.  These two
fixes address the stale pppd_cdma service issue:

- Move the pppd_cdma service shutdown (set ril.cdma.data_state=0) from the
  "deactivate data call" response to its request.  This avoids the issue
  where the response never comes (radio crash?), and thus, the service is
  never stopped.

- Force pppd_cdma service shutdown on a "setup data call" failure.  This
  allows subsequent setup attempts to succeed in the event that the
  "deactivate" request was never made (unexpected radio poweroff).
SemcRIL: Update for SEMC RILv6

This updates SemcRIL for v6, right now we are taking advantage
of the higher visibility on RIL.java and overloading the required
components instead of reimplementing processSolicited/unsolicited.

The same technique can be used in QualcommNoSimReadyRil, but I'd
rather do this more contained test first.

Change-Id: Ibcba60e44f8c83fd80a2f5aed88f6ea27962f2cb
Support for Virgin Mobile MMS.

Code cleaned up and reformatted to be closer to Android coding style.
Credit: progmanos CM9 port of inferiorhumanorgans CM7 VM MMS.

Change-Id: I25a7d8d21abca4318ccb901ff9755644a0e928b0
fix sms receiving for some Samsung CDMA phones

Change-Id: I4639b10e5d1c512135572807f9430e81b6b8869b
add MotoWrigley3GRIL

to fix:
- outgoing call identification dependency on Caller ID setting
- supplementary service notification issue known from gingerbread

Change-Id: Ic17b52e4abf5bf44a585e58bd6cb6e4863041a87
Telephony: Make the compat-flag verification method available everywhere

Export needsOldRilFeature() through the commands interface to make it
available to other parts of the telephony stack

Change-Id: I0e6fec083f5208795bf5067f8c73e35660e942ed

Conflicts:

	telephony/java/com/android/internal/telephony/CommandsInterface.java
	telephony/java/com/android/internal/telephony/gsm/GsmDataConnectionTracker.java
	telephony/java/com/android/internal/telephony/sip/SipCommandInterface.java
	telephony/java/com/android/internal/telephony/test/SimulatedCommands.java
Fix contact lookup with CLIR prefix

Allow phone numbers which are saved in the phonebook including a
CLIR prefix to be correctly resolved on an incoming call.

For a proper fix, all special cases detailed in calledPartyBCDToString()
should be taken into account; unfortunately that function cannot be
directly used as it currently is.

Change-Id: Ie070e1efc0921bfb0ae0802f500afced5071a652
QualcommNoSimReadyRIL: Drop the initialstatechange check

ICS doesn't have it anymore, and it actually breaks the P930's init
sequence

Change-Id: Ic9dfb5f2eddcda825a6d3fc5d380ebc4d56add90
LGEQualcommUiccRIL: New subclass to deal with the latest qcom RIL

Yet another generation of CAF RIL, this one is necessary to support
multi-RAT (GSM/LTE) radios...

Change-Id: I87b5126ffbc16f3ccc7caaf227354edf95543c35
RIL: qcom: Stop the card handler thread when radio is off

Ensure the SIM is reinitialized when the radio is turned on, to
prevent state mismatches from dirty variables.
Fixes occasional crashes while entering/leaving airplane mode.

Change-Id: Ib8ca81eee00fd4a983f63190f51f5f27fd0947b6
LGEQualcommUiccRIL: Fix LTE support

Change-Id: Ifab51550113926d6d1b6c421e805f456d95faca8
LGEQualcommUiccRIL: Fix LTE signal strength

The RSRP sign is wrong, results in always-excellent network indication. Fix
it.

Change-Id: I3ad40eabca88babf41ad89903648e76f6d8c0830
LGEQualcommUiccRIL: Fix PIN/PUK operations

PIN/PUK settings/changing/disabling was broken due to missing parcel
items, fix it;
Each set of strings must be prepended by a count of said strings.

Change-Id: I902eea6ba275b24e105f1b42f7d5d9f23e76d0c5
SamsungRIL: clean up and re-organization

Clean up some messy code in the Samsung RIL.

Change-Id: If8bc9c0e4264de5919be1b6a858896076c879708
Telephony: Add getLteOnGsmMode() method

Same functionality as the existing getLteOnCdmaMode, but for GSM
LTE devices.
Enable with the telephony.lteOnGsmDevice system property

Additionally, support GSM LTE in the SystemUI LTE power widget

Change-Id: Ibfb47ca608e51393b99d3308e0a6c66050b3f32e

Conflicts:

	packages/SystemUI/src/com/android/systemui/statusbar/powerwidget/LTEButton.java
	telephony/java/com/android/internal/telephony/BaseCommands.java
	telephony/java/com/android/internal/telephony/ITelephony.aidl
LGEQualcommUiccRIL: Adapt to new GSM+LTE support

User LTE preferences now stick, instead of resetting to LTE-on after
reboot

Change-Id: If8285af9a9eeaa70594f8a10ce5d8177b5fe030f
QualcommNoSimReadyRIL: Support radio state in new generation rils

The radio-state enums in CAF's ICS have changed from GB, radio_on is
now 10

Change-Id: I81f84a551bec0537925c4b34aa158b7c7a037f59
LGE*RIL: Skip data-call format conversions unless it's a non-ICS RIL

Use the same "datacall" feature filter as the main CM RIL

Change-Id: Id7afbe69b709774794372bf9426e6eba600df3a2
LGEQualcommRIL: Fix PIN status for e73x

The QUERY_FACILITY_LOCK call is completely broken on the e730/739
when the SIM card status (SC) is requested.
Instead of letting it go through (and fail), use the pin1 status
from the IccCard application to figure out what the lock state is,
and return it as a message to the calling handler.

Change-Id: Iaed16bcb1a3ee71d9e833e4a4ccee423de0593a4
LGEQualcommRIL: Fix dataCallState objects

Change-Id: I5f36370981737200de808922bd6772a08dc85608