* From P onward samsung changed the socket name in libsec-ril.so from
Multiclient to VND_Multiclient.
* In order to not break compatibility with older RIL stack guard this
behind TARGET_USES_VND_SECRIL.
* This is mostly relevant when using P (or newer) prebuilt ril stack
coupled with OSS audio hal from hw/samsung, which depends on OSS
libsecril-client to provide connection to the RIL daemon.
Change-Id: Iab5d07f2301d33216bbdf3e18f844522e32fadce
LOCAL_CFLAGS += -DSAMSUNG_NEXT_GEN_MODEM
endif
+ifeq ($(TARGET_USES_VND_SECRIL), true)
+LOCAL_CFLAGS += -DUSES_VND_SECRIL
+endif
+
LOCAL_MODULE:= libsecril-client
LOCAL_PRELINK_MODULE := false
// Defines
//---------------------------------------------------------------------------
#define RILD_PORT 7777
+#ifdef USES_VND_SECRIL
+#define MULTI_CLIENT_SOCKET_NAME "VND_Multiclient"
+#define MULTI_CLIENT_SOCKET_NAME_2 "VND_Multiclient2"
+#else
#define MULTI_CLIENT_SOCKET_NAME "Multiclient"
-#define MULTI_CLIENT_Q_SOCKET_NAME "QMulticlient"
#define MULTI_CLIENT_SOCKET_NAME_2 "Multiclient2"
+#endif
+#define MULTI_CLIENT_Q_SOCKET_NAME "QMulticlient"
#define MAX_COMMAND_BYTES (8 * 1024)
#define REQ_POOL_SIZE 32