Skip to content

Commit

Permalink
Merge pull request #5827 from ddevad/rdk-49322_xumo3
Browse files Browse the repository at this point in the history
RDK-49322: use manufacturer name from serialized location instead of …
  • Loading branch information
anand-ky authored Oct 29, 2024
2 parents bfacf93 + 994f0d2 commit 02436f0
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
4 changes: 4 additions & 0 deletions SystemServices/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ All notable changes to this RDK Service will be documented in this file.
* Changes in CHANGELOG should be updated when commits are added to the main or release branches. There should be one CHANGELOG entry per JIRA Ticket. This is not enforced on sprint branches since there could be multiple changes for the same JIRA ticket during development.

* For more details, refer to [versioning](https://github.com/rdkcentral/rdkservices#versioning) section under Main README.
## [2.1.7] - 2024-10-29
### Changed
- RDK-49322: use manufacturer name from serialized location instead of hardcoded

## [2.1.6] - 2024-09-12
### Fixed
- Fixed retruing DEEPSLEEP state for getPowerState.
Expand Down
20 changes: 19 additions & 1 deletion SystemServices/SystemServices.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,25 @@ namespace WPEFramework {

// there is no /tmp/.make from /lib/rdk/getDeviceDetails.sh, but it can be taken from /etc/device.properties
if (queryParams.empty() || queryParams == "make") {
#ifdef USE_SERIALIZED_MANUFACTURER_NAME
IARM_Bus_MFRLib_GetSerializedData_Param_t param;
param.bufLen = 0;
param.type = mfrSERIALIZED_TYPE_MANUFACTURER;

IARM_Result_t result = IARM_Bus_Call(IARM_BUS_MFRLIB_NAME, IARM_BUS_MFRLIB_API_GetSerializedData, &param, sizeof(param));
param.buffer[param.bufLen] = '\0';

LOGWARN("SystemService getDeviceInfo param type %d result %s", param.type, param.buffer);

bool status = false;
if (result == IARM_RESULT_SUCCESS) {
response["make"] = string(param.buffer);
retAPIStatus = true;
} else {
populateResponseWithError(SysSrv_MissingKeyValues, response);
}

#else
if (!Utils::fileExists(DEVICE_PROPERTIES_FILE)) {
populateResponseWithError(SysSrv_FileNotPresent, response);
returnResponse(retAPIStatus);
Expand Down Expand Up @@ -1035,7 +1053,7 @@ namespace WPEFramework {
} else {
populateResponseWithError(SysSrv_MissingKeyValues, response);
}

#endif
if (!queryParams.empty()) {
returnResponse(retAPIStatus);
}
Expand Down

0 comments on commit 02436f0

Please sign in to comment.