Skip to content

Commit

Permalink
RDK-41544: Startup service configuration changes to support Flex 2.0 …
Browse files Browse the repository at this point in the history
…activation workflow

Signed-off-by: Pavithra Pandian <[email protected]>
  • Loading branch information
PaviP98 committed Jun 1, 2023
1 parent e226c98 commit 8147488
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions MaintenanceManager/MaintenanceManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ namespace WPEFramework {
/* WhoAmI check*/
bool whoAmIStatus = knowWhoAmI();
if (whoAmIStatus) {
LOGINFO("knowWhoAmI() returned true");
LOGINFO("knowWhoAmI() returned successfully");
}
}
#endif
Expand Down Expand Up @@ -422,8 +422,8 @@ namespace WPEFramework {
if (joGetResult.HasLabel("partnerProvisioningContext")) {
JsonObject getProvisioningContext = joGetResult["partnerProvisioningContext"].Object();
int size = (int)(sizeof(deviceInitializationContext)/sizeof(deviceInitializationContext[0]));
for (int i=0; i < size; i++) {
const char* key = deviceInitializationContext[i].c_str();
for (int idx=0; idx < size; idx++) {
const char* key = deviceInitializationContext[idx].c_str();

// Retrive partnerProvisioningContext Value
string paramValue = getProvisioningContext[key].String();
Expand All @@ -432,7 +432,7 @@ namespace WPEFramework {
if (strcmp(key, "regionalConfigService") == 0) {
paramValue = "https://" + paramValue;
}
LOGINFO("%s : %s", key, paramValue.c_str());
LOGINFO("[partnerProvisioningContext] %s : %s", key, paramValue.c_str());

// Retrieve tr181 parameter from m_param_map
string rfc_parameter = m_param_map[key];
Expand Down Expand Up @@ -465,6 +465,7 @@ namespace WPEFramework {
retryCount++;
if (retryCount == 4 && !success) {
if (checkActivatedStatus() == "activated") {
LOGINFO("Device is already activated. Exiting from knowWhoAmI()");
success = true;
}
}
Expand Down

0 comments on commit 8147488

Please sign in to comment.