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: Fix build with ISO C++11 compilers after ABI fix

Fix implicit signed-to-unsigned cast after restoring
the old ABI for android::os::Parcel::writeString16

Change-Id: I6732fe2e4f2b45d636bf59278ed98efa979c4393
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>