diff options
author | Arne Coucheron <arco68@gmail.com> | 2012-07-25 08:23:05 +0200 |
---|---|---|
committer | Gerrit Code Review <gerrit@review.cyanogenmod.com> | 2012-08-15 00:50:49 +0400 |
commit | 97b0eef36c848293c2f680377abd6988cac56a84 (patch) | |
tree | 9e1c86aabaa1845520dbf6510ea24cbb87b1cd0a | |
parent | e20b1a875c15037a268b9513576479da806daec0 (diff) | |
download | android_hardware_ril-jellybean.tar.gz android_hardware_ril-jellybean.tar.bz2 android_hardware_ril-jellybean.zip |
libril: Provide support for legacy riljellybean-stablejellybean
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
-rw-r--r-- | include/telephony/ril.h | 4 | ||||
-rw-r--r-- | libril/Android.mk | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/telephony/ril.h b/include/telephony/ril.h index 64952ca..990bc64 100644 --- a/include/telephony/ril.h +++ b/include/telephony/ril.h @@ -27,7 +27,11 @@ extern "C" { #endif #define RIL_VERSION 7 /* Current version */ +#ifdef LEGACY_RIL +#define RIL_VERSION_MIN 2 /* Minimum RIL_VERSION supported */ +#else #define RIL_VERSION_MIN 6 /* Minimum RIL_VERSION supported */ +#endif #define CDMA_ALPHA_INFO_BUFFER_LENGTH 64 #define CDMA_NUMBER_INFO_BUFFER_LENGTH 81 diff --git a/libril/Android.mk b/libril/Android.mk index fed7534..1f71cb5 100644 --- a/libril/Android.mk +++ b/libril/Android.mk @@ -29,6 +29,10 @@ ifeq ($(BOARD_USES_HC_RADIO),true) LOCAL_CFLAGS += -DHCRADIO endif +ifeq ($(BOARD_USES_LEGACY_RIL),true) +LOCAL_CFLAGS += -DLEGACY_RIL +endif + include $(BUILD_SHARED_LIBRARY) |