diff --git a/RDKShell/RDKShell.cpp b/RDKShell/RDKShell.cpp index 4a4fa3c22c..c4c196b5c4 100755 --- a/RDKShell/RDKShell.cpp +++ b/RDKShell/RDKShell.cpp @@ -1735,7 +1735,24 @@ namespace WPEFramework { { waitForPersistentStore = false; } - + if(!factoryMacMatched){ + int32_t status = 0; + std::string callsign("ResidentApp"); + JsonObject activateParams,response; + activateParams.Set("callsign",callsign.c_str()); + JsonObject activateResult; + auto thunderController = getThunderControllerClient(); + status = thunderController->Invoke(RDKSHELL_THUNDER_TIMEOUT, "activate", activateParams, activateResult); + std::cout << "Activating ResidentApp from RDKShell during bootup with Status:" << status << std::endl; + if (status > 0){ + response["message"] = "resident app launch failed"; + std::cout << "resident app launch failed from rdkshell" << std::endl; + } + else { + response["message"] = "resident app launch success"; + std::cout << "resident app launch success from rdkshell" << std::endl; + } + } char* blockResidentApp = getenv("RDKSHELL_BLOCK_RESIDENTAPP_FACTORYMODE"); if (NULL != blockResidentApp) {