Skip to content

Commit

Permalink
Merge pull request rdkcentral#5300 from fzahir786/sprint/24Q2
Browse files Browse the repository at this point in the history
RDKTV-28742: Activation of RA in RDKShell
  • Loading branch information
binuinbaraj authored May 17, 2024
2 parents 4be5557 + b095d73 commit 55394aa
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion RDKShell/RDKShell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<JsonObject, JsonObject>(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)
{
Expand Down

0 comments on commit 55394aa

Please sign in to comment.