summaryrefslogtreecommitdiffstats
path: root/libril/Android.mk
diff options
context:
space:
mode:
authorfaust93 <monumentum@gmail.com>2018-09-19 14:26:54 +0800
committerdianlujitao <dianlujitao@lineageos.org>2019-01-26 20:40:45 +0800
commite3d006fa722c02fc26acdfcaa43a3f3a1378eba9 (patch)
tree9ae181d63abddb8e9b067d48ffac8d84167dce66 /libril/Android.mk
parent47624191a40610c4f49c6f68643c0e345648f836 (diff)
downloadandroid_hardware_ril-e3d006fa722c02fc26acdfcaa43a3f3a1378eba9.tar.gz
android_hardware_ril-e3d006fa722c02fc26acdfcaa43a3f3a1378eba9.tar.bz2
android_hardware_ril-e3d006fa722c02fc26acdfcaa43a3f3a1378eba9.zip
libril: Fix manual network selection with old modem
* Old modem sends and applies mccmnc+network type, but new aosp telephony uses only digits. * Manually cut or append the "+" and strings after that to work around. Change-Id: I1015e6c0d6afdc0c03d70e9491d49331703eddcc
Diffstat (limited to 'libril/Android.mk')
-rw-r--r--libril/Android.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/libril/Android.mk b/libril/Android.mk
index d1e8ee3..cde192f 100644
--- a/libril/Android.mk
+++ b/libril/Android.mk
@@ -41,6 +41,10 @@ ifneq ($(DISABLE_RILD_OEM_HOOK),)
LOCAL_CFLAGS += -DOEM_HOOK_DISABLED
endif
+ifneq ($(TARGET_USES_OLD_MNC_FORMAT),)
+ LOCAL_CFLAGS += -DOLD_MNC_FORMAT
+endif
+
LOCAL_C_INCLUDES += external/nanopb-c
LOCAL_C_INCLUDES += $(LOCAL_PATH)/../include
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/../include