Add support for BOARD_PROVIDES_LIBRIL

Change-Id: I2e2f3a717ce732fd6eec8b876758f38ac1a98868
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

Conflicts:
	libril/ril.cpp
	libril/ril_commands.h
	libril/ril_unsol_commands.h
Merge remote-tracking branch 'aosp/kitkat-mr1-release' into HEAD
Fix parameter mismatch between header and implementation

RIL_onUnsolicitedResponse's second parameter is
const void *data
according to include/telephony/ril.h and rild/rild.c, but
void *data
according to libril/ril.cpp

This mismatch causes a compile failure with clang (and I'm surprised
it compiles with gcc with the mismatch - probably gcc parses this as
function overloading even though it's extern "C", which wouldn't do
what is expected).

Change-Id: Ib437040aeca4be43cc2d327c3715ffa98c76878c
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
Remove an outdated hack.

This is still a waste of your main thread, though.

Change-Id: Ic904619b2e1065b2bab577070a73f8175c1a48f3
Stop the kernel complaining about rild.

Even if you're only using capabilities that reside in the bottom 32-bits,
the kernel complains unless you're on __LINUX_CAPABILITY_VERSION_3.

  warning: `rild' uses 32-bit capabilities (legacy support in use)

Change-Id: I6512cbc158971eb950e0fc2554e95fde72023cb2
Fix pthread_create error handling in ril.

Bug: https://code.google.com/p/android/issues/detail?id=64189
Change-Id: Ie6282dda582a574aaad5513c39f2d8d965f6dee3
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 4 is to old, min version is 6

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

Change-Id: I82c1cc4dab8fcaa4ccaa099132133b0f3b1d8029
Initialize the buffer

Initialize the char array to null character
as there is a possibility that it is not null
terminated.

Change-Id: If1eca2b2f3ec22bafeb303da02deb62f0655241c
CRs-Fixed: 584311
Use SimRefreshResponse struct in RIL Versions greater than 7.

Modify condition to use SimRefreshResponse struct in
all RIL Versions greater than 7.

CRs-Fixed: 597007

Change-Id: I40fb4ad96e191ae6641eb31da014515d08704382
Merge remote-tracking branch 'github/kk4.4' into slim-master

Conflicts:
	include/telephony/ril.h
	libril/ril_commands.h