Add basic change for v1453

Change-Id: I9497a61bbc3717f66413794a4e7dee0347c0bc33
diff --git a/mbtk/liblynq_lib_rilv2/lynq_chip_id.c b/mbtk/liblynq_lib_rilv2/lynq_chip_id.c
new file mode 100755
index 0000000..34e60c1
--- /dev/null
+++ b/mbtk/liblynq_lib_rilv2/lynq_chip_id.c
@@ -0,0 +1,69 @@
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <sys/time.h>
+
+#include <time.h>
+#include "mbtk_ril_api.h"
+static mbtk_ril_handle* info_handle = NULL;
+
+int lynq_get_time_sec(char *time_t)
+{
+    struct timeval tv;
+    gettimeofday(&tv,NULL);
+    sprintf(time_t, "%lld", tv.tv_sec);
+    return 0;
+}
+
+int lynq_imet_get(char *imei_t)
+{
+    info_handle = mbtk_ril_open(MBTK_AT_PORT_DEF);
+    if(info_handle == NULL)
+    {
+        return -1;
+    }
+
+    int err;
+    err = mbtk_imei_get(info_handle, imei_t);
+    if(err) {
+    //    printf("Error : %d\n", err);
+        return -1;
+    } else {
+   //     printf("IMEI : %s\n", imei_t);
+    }
+    return 0;
+}
+
+
+int lynq_get_chip_id(char *chip_id)
+{
+    char time[50]={0};
+    char imei[50]={0};
+    int ret = 0;
+
+    lynq_get_time_sec(time);
+    ret = lynq_imet_get(imei);
+
+    if(info_handle != NULL)
+    {
+        int ret_ril = mbtk_ril_close(MBTK_AT_PORT_DEF);
+        if (ret_ril == MBTK_RIL_ERR_SUCCESS)
+            LOGI("deinit info_handle is succuess");
+        else
+            LOGE("deinit info_handle is error(%d)",ret_ril);
+    }
+
+    if(!ret)
+    {
+        sprintf(chip_id,"%s%s",imei, time);
+//        printf("%s\n",chip_id );
+    }
+    else{
+        return -1;
+    }
+
+    return 0;
+}
+
+
+