display driver porting in LK

Root cause:

How to fix:

Feature:
Issue:
Depends-On:

Change-Id: I5f174937eeb647c86f4a309f3cac917c43853308
RiskArea:
diff --git a/platform/msm_shared/display_menu.c b/platform/msm_shared/display_menu.c
old mode 100644
new mode 100755
index 9d85e9f..52d7c1e
--- a/platform/msm_shared/display_menu.c
+++ b/platform/msm_shared/display_menu.c
@@ -45,6 +45,9 @@
 
 #define TITLE_MSG "<!>\n\n"
 
+//[Arima][8901][JialongJhan] Command mode update screen 20190516 Start
+extern int msm_display_flush();
+//[Arima][8901][JialongJhan] Command mode update screen 20190516 End
 static const char *unlock_menu_common_msg = "By unlocking the bootloader, you will be able to install "\
 				"custom operating system on this phone. "\
 				"A custom OS is not subject to the same level of testing "\
@@ -160,6 +163,9 @@
 	is_thread_start = false;
 	fbcon_clear();
 	display_image_on_screen();
+    //[Arima][8901][JialongJhan] Command mode update screen 20190618 Start 
+    msm_display_flush();
+    //[Arima][8901][JialongJhan] Command mode update screen 20190618 End 
 }
 
 void wait_for_users_action()
@@ -568,6 +574,9 @@
 		unlock_menu_msg_info->info.msg_type;
 
 	display_unlock_menu_renew(unlock_menu_msg_info, type, status);
+    //[Arima][8901][JialongJhan] Command mode update screen 20190618 Start 
+    msm_display_flush();
+    //[Arima][8901][JialongJhan] Command mode update screen 20190618 End
 	mutex_release(&unlock_menu_msg_info->msg_lock);
 
 	dprintf(INFO, "creating %s keys detect thread\n",
@@ -598,6 +607,9 @@
 		fastboot_menu_msg_info->info.msg_type;
 
 	display_fastboot_menu_renew(fastboot_menu_msg_info);
+    //[Arima][8901][JialongJhan] Command mode update screen 20190618 Start
+    msm_display_flush();
+    //[Arima][8901][JialongJhan] Command mode update screen 20190618 End
 	mutex_release(&fastboot_menu_msg_info->msg_lock);
 
 	dprintf(INFO, "creating fastboot menu keys detect thread\n");
@@ -623,6 +635,9 @@
 		bootverify_menu_msg_info->info.msg_type;
 
 	display_bootverify_menu_renew(bootverify_menu_msg_info, type);
+    //[Arima][8901][JialongJhan] Command mode update screen 201906118 Start
+    msm_display_flush();
+    //[Arima][8901][JialongJhan] Command mode update screen 20190618 End
 	mutex_release(&bootverify_menu_msg_info->msg_lock);
 
 	dprintf(INFO, "creating boot verify keys detect thread\n");