libril: allow board to provide libril

Change-Id: If0033865ab179854c27c56eaaf078fcc30ea102a
ril: Added support for use of Honeycomb Radio (Modem).

Change-Id: I841a8b532380bd097c1ae3ed2ba3cb1d920123df
Handle newer libhtc_ril.so releases

Querying available networks returns five strings per network instead of
four which breaks that functionality in RILJ. This fix most likely
appiles to every library since Hero.

Disabled per default, define BOARD_USE_NEW_LIBRIL_HTC if you are
building with libhtc_ril.so libraries version 2 and above.

Change-Id: If14c6d9253a50b35461fcc8aed587cc89af18ee2

Conflicts:

	libril/ril.cpp
libril: Provide support for legacy ril

With change Icc620fd191f8542f61bd38e365813753bfedefdf, RIL_VERSION_MIN was
increased from 2 to 6, but this causes problems for a number of devices
using ril blobs older than that.

  E/RILC    (  140): RIL_register: version 3 is to old, min version is 6

Consequently causing the ril system unable to connect to the rild socket.

Change-Id: I82c1cc4dab8fcaa4ccaa099132133b0f3b1d8029
Merge branch 'jb-mr1-release' of https://android.googlesource.com/platform/hardware/ril into HEAD
Merge tag 'android-4.2.2_r1' of https://android.googlesource.com/platform/hardware/ril into 1.1

Android 4.2.2 release 1
ril.h: sync RIL_RadioTechnology with framework

Change-Id: I8e7d4f153aec7b008d465df61a4030549e25de95
Fixes typo in logging string.

Pointed out by bodhisatwa in
https://code.google.com/p/android/issues/detail?id=54098

Change-Id: I4cb42627bb0858360d6f88dedf9412720e4b5cca
Rild: Ril should try to write again to the socket EAGAIN error

In case of  EAGAIN error, the RIL should write to socket again after some
time.

Change-Id: Ia4c8d17b7c16040a49a4c607a1d1350ebbe7847c
CRs-Fixed: 285312
Merge "Rild: Ril should try to write again to the socket EAGAIN error" into cm-10.1
Merge tag 'android-4.3_r2.1' into cm-10.2

Android 4.3 release 2.1

Conflicts:
	include/telephony/ril.h

Change-Id: If610d33671d53c43256106e01d14450e4bd5b3bf
Fix libril.so crash issue caused by wrong switch logic of onRequest in reference-ril.c

If the tech is not CDMA, it will fall-through to the default case.
But the new added RIL_REQUEST_GET_CELL_INFO_LIST and RIL_REQUEST_SET_UNSOL_CELL_INFO_LIST_RATE
cases will intercept it and cause the request call into wrong request functions.
Move these two new requests before the CDMA cases to fix the logic issue.

Bug: 9193696
Change-Id: I2cb03cbdb6be8eb1afd92c01c764e87b6aa62796

Signed-off-by: Jun Tian <jun.j.tian@intel.com>
Signed-off-by: Panfeng Chang <panfengx.chang@intel.com>
Signed-off-by: Yanglin Zhu <yanglinx.zhu@intel.com>
Signed-off-by: Jackie Wu <jackie.wu@intel.com>
libril: some blobs don't support CELL_INFO_LIST commands

RIL blobs that don't support CELL_INFO_LIST needs this ifndefs,
or rild keeps crashing with segfaults.

Change-Id: Ifcd717740db812ce9a2371fcb20ed61d07efffe1
Merge tag 'android-4.3_r3.1' of https://android.googlesource.com/platform/hardware/ril into cm-10.2

Android 4.3 Release 3.1
rild: Send extended information records as ByteBuffer

Send information records to java as a ByteBuffer to prevent
UTF-8 parsing from mangling bytes.

Change-Id: I558a41565b3e5e20aa40b5d0c5e748b204993e26
CRs-Fixed: 338368
(cherry picked from commit 74ec9e48d6515865384cdf8607fb265d096d4f12)
(cherry picked from commit fd77b4fab982575dd35f89ce071004d55edd365e)
(cherry picked from commit c7c939156c3f1e5110001b8ac45b82b64f04f655)
Support reading data profiles from OMH cards

Change-Id: I371a15428cd296cd02a2f82d5904dea483058c26
(cherry picked from commit e2d39f6cf77d29ad57243649dc54d96a60db922c)
(cherry picked from commit 54866893124465af843a16148ff53534e725eb54)
(cherry picked from commit 494ba62c5119b0002bfedb51d4ed51514c76aa0e)
STK Call Control feature implementation.

Change-Id: I1164df9ddbf70fb42e760c1f3ab7f3df4b3b5339
(cherry picked from commit 3ad8ca2d4c4fa62192d27edfca110db316001c6f)
(cherry picked from commit a08b126d1c9bcd967be6fcae681f911d57b4f929)
(cherry picked from commit ee940a0adcb8d8915979e47dc3eabc92e5a555fb)
Reference-ril: Send sms using RIL_REQUEST_SEND_SMS_EXPECT_MORE

Add support for RIL_REQUEST_SEND_SMS_EXPECT_MORE in reference-ril.

Change-Id: I60bba3a7970d92f59d762e5e2ba93d3b58bbee3b
CRs-Fixed: 498301
(cherry picked from commit d003ef18c421f5f8304970b4345105baa8110599)
(cherry picked from commit 4c57d40efb733e947a95e58e76bf1d6b4c0fd2c8)
(cherry picked from commit b69c2d2d68aaf583afeafb98fbbe30f17f3c4b1b)
Add WRITE_SMS_TO_SIM and UNSOL_SUPP_SVC_NOTIFICATION.

Add WRITE_SMS_TO_SIM and UNSOL_SUPP_SVC_NOTIFICATION in
requestToString method.

Change-Id: I323f276d4048b168b27669a0aebb58cd9decf9bd
(cherry picked from commit 5eb546bf114ecf44b3fe003ce13a2c395f45d0f9)
(cherry picked from commit 138bbe329306994e33f07febb2bb974932798c55)
Add Multi RILD support.

Support Multiple instances of RILD identified by the arguments
passed to RILD

Change-Id: I3ac00242aed7fd40e3b7a71d00f906e7c9805c7c

Conflicts:
	reference-ril/reference-ril.c
(cherry picked from commit 424e8db95c9d483dcefcbd8d861364f1589e8dd1)