[Feature]add MT2731_MP2_MR2_SVN388 baseline version
Change-Id: Ief04314834b31e27effab435d3ca8ba33b499059
diff --git a/src/lynq/lib/liblynq-tele-ril/lynq-riltel/stk.h b/src/lynq/lib/liblynq-tele-ril/lynq-riltel/stk.h
new file mode 100644
index 0000000..122f459
--- /dev/null
+++ b/src/lynq/lib/liblynq-tele-ril/lynq-riltel/stk.h
@@ -0,0 +1,91 @@
+ /*****************************************************************************
+* Copyright Statement:
+* --------------------
+* This software is protected by Copyright and the information contained
+* herein is confidential. The software may not be copied and the information
+* contained herein may not be used or disclosed except with the written
+* permission of MediaTek Inc. (C) 2005
+*
+* BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
+* THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
+* RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
+* AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
+* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
+* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
+* NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
+* SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
+* SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
+* THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
+* NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
+* SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
+*
+* BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
+* LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
+* AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
+* OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
+* MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE.
+*
+* THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
+* WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
+* LAWS PRINCIPLES. ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
+* RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
+* THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
+*
+*****************************************************************************/
+#ifndef __RIL_STK__
+#define __RIL_STK__
+
+#include <vendor-ril/telephony/ril.h>
+#include "common.h"
+/*****************************************************************************
+ * Enum
+ *****************************************************************************/
+// Proactive Command Type
+typedef enum {
+ CMD_REFRESH = 0x01,
+ CMD_MORE_TIME = 0x02,
+ CMD_POLL_INTERVAL = 0x03,
+ CMD_POLLING_OFF = 0x04,
+ CMD_SETUP_EVENT_LIST = 0x05,
+ CMD_SETUP_CALL = 0x10,
+ CMD_SEND_SS = 0x11,
+ CMD_SEND_USSD = 0x12,
+ CMD_SEND_SMS = 0x13,
+ CMD_DTMF = 0x14,
+ CMD_LAUNCH_BROWSER = 0x15,
+ CMD_PLAY_TONE = 0x20,
+ CMD_DSPL_TXT = 0x21,
+ CMD_GET_INKEY = 0x22,
+ CMD_GET_INPUT = 0x23,
+ CMD_SELECT_ITEM = 0x24,
+ CMD_SETUP_MENU = 0x25,
+ CMD_PROVIDE_LOCAL_INFO = 0x26,
+ CMD_TIMER_MANAGER = 0x27,
+ CMD_IDLE_MODEL_TXT = 0x28,
+ CMD_PERFORM_CARD_APDU = 0x30,
+ CMD_POWER_ON_CARD = 0x31,
+ CMD_POWER_OFF_CARD = 0x32,
+ CMD_GET_READER_STATUS = 0x33,
+ CMD_RUN_AT = 0x34,
+ CMD_LANGUAGE_NOTIFY = 0x35,
+ CMD_OPEN_CHAN = 0x40,
+ CMD_CLOSE_CHAN = 0x41,
+ CMD_RECEIVE_DATA = 0x42,
+ CMD_SEND_DATA = 0x43,
+ CMD_GET_CHAN_STATUS = 0x44,
+ CMD_RFU = 0x60,
+ CMD_END_PROACTIVE_SESSION = 0x81,
+ CMD_DETAIL = 0xFF
+} CatProactiveCmdEnum;
+typedef enum {
+ CMD_TYPE_PROACTIVE = 0x00,
+ CMD_TYPE_NOTIFY = 0x01,
+ CMD_YPE_SESSIONEND = 0x02
+} sat_cmd_type_num;
+int sendEnvelope(int argc, char **argv, RIL_SOCKET_ID socket_id, RequestInfo *pRI);
+int sendTerminalResponse(int argc, char **argv, RIL_SOCKET_ID socket_id, RequestInfo *pRI);
+int sendEnvelopeWithStatus(int argc, char **argv, RIL_SOCKET_ID socket_id, RequestInfo *pRI);
+int handleCallSetupRequestFromSim(int argc, char **argv, RIL_SOCKET_ID socket_id, RequestInfo *pRI);
+int reportStkServiceIsRunning(int argc, char **argv, RIL_SOCKET_ID socket_id, RequestInfo *pRI);
+void handleStkCommand(char* response, int responselen, int slot_id);
+#endif