SamsungCDMAv6RIL: update to latest RIL

Also add two mic state and WB AMR

Change-Id: I0a9fdbbfa7880f964c530b7aa3e46baf2fe9e6c1
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
(cherry picked from commit 4d19143c3cf2ea1ee37fa1c05cac984ab14ce603)
(cherry picked from commit c623954a27891a0693bf2208bb095183f1d1b9d9)
(cherry picked from commit e48c977e219b4afba93eb71ac0c4e937f3376710)
(cherry picked from commit 76eab3d4d4b2e6e57048b229b132525c1fd80e3a)
cdma: Restore SVDO after merge.

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

Change-Id: If7be25edc10f21680adbe3a059370d77a82ef076
(cherry picked from commit a28dfbec287a2e546d1bfcc1f958922daa04822c)
Revert "cdma: Restore SVDO after merge."

This reverts commit 939f35d2373d2434bca369f3c28b9a53025e91cf.

Change-Id: I59a6510750a83dcfd448a3f96537a90d71d2b5b7
Merge "SamsungCDMAv6RIL: update to latest RIL" into android-4.4
Revert "Revert "cdma: Restore SVDO after merge.""

This reverts commit 169ac23c643ca01bc6bf15602af6fe9e670a0b37.

Change-Id: I82771a04ea8f08161b586ff7779e06c7bb37b853
Merge "Revert "Revert "cdma: Restore SVDO after merge.""" into android-4.4
Revert "Revert "Revert "cdma: Restore SVDO after merge."""

This reverts commit 432afb91570669968eb9b4f4a8f9d945ea7f1f7f.

Change-Id: I10486fd185d999869dcc911031cf11b065b93390
Merge "Revert "Revert "Revert "cdma: Restore SVDO after merge."""" into android-4.4
Merge "Don't assume 3GPP as active app on CDMA with LTE device" into android-4.4
DCTracker: Squashed commits to fix CDMA Data

Use dummy profiles if buildWaitingApns can't find valid APNs

Requires: https://gerrit.omnirom.org/#/c/4195/

Change-Id: I706767200fa4a061a8f2e18796c878e506527102

Fix cdma data calls based on NV

For NV data calls we need to create dummy profiles
When DcTracker switches from lte to cdma we need to bring
down existing data call and establish new one (same goes
for switching cdma->lte)

Bug: 10804691
(cherry picked from commit 4ead798ed4964952c3086b3224d775479d66d240)
(cherry picked from commit f333f0ca7b1c992ab36af83ca74a1131d3ae17b8)
(cherry picked from commit 14e5657432de2eb9ba52ebf28a8967ed62ee4a0b)
(cherry picked from commit ff99b7392eccef8a848d49fdc46a3a5f1afecd56)

Change-Id: I7ad8d0632854ea9875afb76709c1ba894bf048fd

Create cdma dummy profiles

Create cdma dummy profiles if none are found in database

(cherry picked from commit fd636d72606d9f34ffbbe0e8d7aa1e238dbb3f85)
(cherry picked from commit 4c1b138e89e200cb5a2b4e6e640f162bad2d9b36)
(cherry picked from commit 37ad63426059d621d7d6ad5c3ea5901aa937a608)
(cherry picked from commit e085e00824a570942a2f47a9b3474f5a03f37e53)

Change-Id: I2b1fcc349b0734f67c59fc7d1bca96ee7164461b

Change-Id: I7ad8d0632854ea9875afb76709c1ba894bf048fd
Revert "Revert "Revert "Revert "cdma: Restore SVDO after merge.""""

This reverts commit d5dc27d60e5770c763dee7940fa94ddec190e159.

Change-Id: I91d9b18506866a2b53482fe5efa4f80a3473ce1d
Merge "Revert "Revert "Revert "Revert "cdma: Restore SVDO after merge.""""" into android-4.4
Merge "DCTracker: Squashed commits to fix CDMA Data" into android-4.4
Fix for data and roaming icons

- Enable data connected flag based on the data state.

- Do not display data icon in data connected state
if radio type is unknown

- Display data icon independent of voice service state
i.e even if voice network is unavailable

- Show cdma roaming indicators if either voice
or data is roaming.

- Cleanup roaming indicator default values.
Set default CDMA Eri index to roaming off

- Show service if either voice/data is in
service if ro.config.combined_signal is true

- Consider eri only when in service

- Add in service check to isCdmaEri.
roaming related information
in registration state will not be valid
during out of service.

Change-Id: I915421a6f5906d80ed5b8dd9c433115ad5df1f14
CRs-Fixed: 285986, 303275, 326204, 326634, 333008, 339297
(cherry picked from commit 5e973bedadf36b08a1e2a82745d912fcfdebb020)
(cherry picked from commit fd4dcb2c518eef3e655136cbd69c94b5a3fffb1b)
(cherry picked from commit c5b8a284415d65bad41915b3e50fed853d5f5110)
STK: Handle ICC refresh and card removal, and re-work clean up

Register for ICC refresh and let CatService's clients know when
an ICC refresh occurs.

Monitor card status. When card status moves to absent/present let
clients know.

Don't dispose CatService based on the number of applications.
Instead dispose it when UiccCard goes away

This helps avoid the race condition in the following scenario:
1. Radio is on and card is present
2. Turn Radio Off
3. Turn Radio On
4. Proactive command received

If CatService was disposed when card goes away on radio off
then it is possible for the unsol proactive command to be received
before Catservice is up and running on radio on.

Change-Id: Iee4ab009a0f9708a1ee2d87460e60765e46b4229
CRs-Fixed:270755, 283523, 450167, 442985
(cherry picked from commit f1f780eb194b66ccb4b37e64dd7ff67913a68915)
(cherry picked from commit ccd36c4495fb7e8c324a39ac07ec1d1bbb288908)
(cherry picked from commit e2998b862d8adf5e0134e879ed01b751deb73823)

Conflicts:
	src/java/com/android/internal/telephony/cat/CatService.java
Add CatLog#e method

Change-Id: I269cb834d8db577a944b1d3469161550c7b79985
Handle DATA_CALL_LIST in DCC and update dataActivity properly

Update mActivity in DCC before notifyDataActivity. Without this change,
the notifyDataActivity was notifying incorrect data activity status
due to race condition between DCT when mActivity was updated and
DCC thread where notifyDataActivity was called.

Change-Id: Iffb7bf369062264dd773338c732bc69318d90b73
Bug: 11596853

Conflicts:
	src/java/com/android/internal/telephony/dataconnection/DcTracker.java
	src/java/com/android/internal/telephony/dataconnection/DcTrackerBase.java