Revert "twrp.cpp: move up gui_init in startup process"
Reason: Loading prior kernel modules, this is causing issue with split msm_drm modules
This reverts commit 34e27caaecf00b9ab741512aa24538c7dacfcce6.
Change-Id: I9cade1e1f44dafa012897aa80380f21bd185807a
Signed-off-by: Mohd Faraz <androiabledroid@gmail.com>
diff --git a/twrp.cpp b/twrp.cpp
index 5334999..02f88e9 100644
--- a/twrp.cpp
+++ b/twrp.cpp
@@ -378,11 +378,6 @@
// Load default values to set DataManager constants and handle ifdefs
DataManager::SetDefaultValues();
-
- // Show TWRP splash here
- printf("Starting the UI...\n");
- gui_init();
-
startupArgs startup;
startup.parse(&argc, &argv);
printf("=> Linking mtab\n");
@@ -409,6 +404,9 @@
KernelModuleLoader::Load_Vendor_Modules();
#endif
+ printf("Starting the UI...\n");
+ gui_init();
+
// Load up all the resources
gui_loadResources();