[Bugfix][T108][bug-view-1741]Resolve the issue of continuous wake-up after hibernation

Only Configure: No
Affected branch: GSW_V1453
Affected module: sleep
Is it affected on IC: only ASR
Self-test: yes
Doc Update: no

Change-Id: I20a09dcbcefdd6732035e1240a2f938b02ababb7
diff --git a/mbtk/libgsw_lib/gsw_gnss_interface.c b/mbtk/libgsw_lib/gsw_gnss_interface.c
index cb6b397..d6d7b01 100755
--- a/mbtk/libgsw_lib/gsw_gnss_interface.c
+++ b/mbtk/libgsw_lib/gsw_gnss_interface.c
@@ -394,9 +394,15 @@
 

 int32_t gsw_gnss_init(void)

 {

-    int ret;

+    int ret;  

     if(!inited)

     {

+        ret = system("serial_atcmd AT*IMLCONFIG=13");

+        if(ret != 0)

+        {

+            LOGE("serial_atcmd fail\n");

+            return GSW_HAL_NORMAL_FAIL;

+        }

         if(dlHandle_gnss == NULL)

             dlHandle_gnss = dlopen(lynqLib_gnss, RTLD_NOW);

         if(fun_ptr_log == NULL)

@@ -539,6 +545,12 @@
         return GSW_HAL_NORMAL_FAIL;

     if(inited)

     {

+        ret = system("serial_atcmd AT*IMLCONFIG=12");

+        if(ret != 0)

+        {

+            LOGE("serial_atcmd fail\n");

+            return GSW_HAL_NORMAL_FAIL;

+        }

         mbtk_gnss_deinit=(int(*)())dlsym(dlHandle_gnss, "mbtk_gnss_deinit");

         ret = mbtk_gnss_deinit();

         if(ret == 0)

diff --git a/mbtk/rootfs/etc/init.d/mbtk_boot_normal b/mbtk/rootfs/etc/init.d/mbtk_boot_normal
index 4a3dcda..14d1704 100755
--- a/mbtk/rootfs/etc/init.d/mbtk_boot_normal
+++ b/mbtk/rootfs/etc/init.d/mbtk_boot_normal
@@ -22,16 +22,16 @@
 	procd_set_param respawn 3600 3 0
 	procd_close_instance
 }
-PRODMODE=`uci get cmdline.PROD 2> /dev/null`
+#PRODMODE=`uci get cmdline.PROD 2> /dev/null`
 start_service() {
 	echo "--mbtk normal boot start--" > /dev/kmsg
 #	mbtk_start /bin/mbtk_test
 #	mbtk_start /bin/mbtk_test "normal" 123
-	if [ "$PRODMODE" == "0" ]; then
+#	if [ "$PRODMODE" == "0" ]; then
 		######### user mode ########
-		/sbin/usb_init &
-	fi
-	# ÆôÓÃapp dump
+#		/sbin/usb_init &
+#	fi
+	# ����app dump
 	DEBUG_ENABLE=`getprop persist.mbtk.appdump 2> /dev/null`
 	if [ "$DEBUG_ENABLE" == "1" ];then
                 grep -qxF 'ulimit -c unlimited' /etc/profile || echo 'ulimit -c unlimited' >> /etc/profile
diff --git a/package/network/services/lte-telephony/files/telinit b/package/network/services/lte-telephony/files/telinit
index 62c6cc6..fbc3c0f 100755
--- a/package/network/services/lte-telephony/files/telinit
+++ b/package/network/services/lte-telephony/files/telinit
@@ -92,7 +92,7 @@
 if [ "$PRODMODE" == "0" ]; then
 	######### user mode ########
 	/bin/rild &
-#	/sbin/usb_init &
+	/sbin/usb_init &
 
 	#Quickly start audio_if, ecall daemon & app, slic app
 	[ -e "/usr/bin/audio_if" ] && {