Skip to content

Commit 6534a54

Browse files
authored
Merge pull request rdkcentral#5954 from rdkcentral/revert-5918-sprint/24Q4
Revert "RDKTV-34551 - Added DeviceInfo brandname API"
2 parents 46fe14e + 9056d97 commit 6534a54

File tree

7 files changed

+3
-63
lines changed

7 files changed

+3
-63
lines changed

DeviceInfo/CHANGELOG.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ All notable changes to this RDK Service will be documented in this file.
1515
* 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.
1616

1717
* For more details, refer to [versioning](https://github.com/rdkcentral/rdkservices#versioning) section under Main README.
18-
## [1.1.0] - 2024-11-26
19-
### Added
20-
- Added API to get Device brand
21-
2218
## [1.0.15] - 2024-09-16
2319
### Changed
2420
- DELIA-65827: Return Empty SerialNumber in curl for "method": "DeviceInfo.1.systeminfo"

DeviceInfo/DeviceInfo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
#include "DeviceInfo.h"
2121

2222
#define API_VERSION_NUMBER_MAJOR 1
23-
#define API_VERSION_NUMBER_MINOR 1
24-
#define API_VERSION_NUMBER_PATCH 0
23+
#define API_VERSION_NUMBER_MINOR 0
24+
#define API_VERSION_NUMBER_PATCH 14
2525

2626
namespace WPEFramework {
2727
namespace {

DeviceInfo/DeviceInfo.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ namespace Plugin {
117117
uint32_t get_modelid(JsonData::DeviceInfo::ModelidData& response) const;
118118
uint32_t get_make(JsonData::DeviceInfo::MakeData& response) const;
119119
uint32_t get_modelname(JsonData::DeviceInfo::ModelnameData& response) const;
120-
uint32_t get_brandname(JsonData::DeviceInfo::BrandnameData& response) const;
121120
uint32_t get_devicetype(JsonData::DeviceInfo::DevicetypeData& response) const;
122121
uint32_t get_distributorid(JsonData::DeviceInfo::DistributoridData& response) const;
123122
uint32_t get_supportedaudioports(JsonData::DeviceInfo::SupportedaudioportsData& response) const;

DeviceInfo/DeviceInfo.json

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -509,28 +509,6 @@
509509
}
510510
]
511511
},
512-
"brandname": {
513-
"summary": "Device brand name",
514-
"readonly": true,
515-
"params": {
516-
"type": "object",
517-
"properties": {
518-
"brandname": {
519-
"type": "string",
520-
"example": "Comcast"
521-
}
522-
},
523-
"required": [
524-
"brand"
525-
]
526-
},
527-
"errors": [
528-
{
529-
"description": "General error",
530-
"$ref": "#/common/errors/general"
531-
}
532-
]
533-
},
534512
"make": {
535513
"summary": "Device manufacturer",
536514
"readonly": true,
@@ -889,4 +867,4 @@
889867
]
890868
}
891869
}
892-
}
870+
}

DeviceInfo/DeviceInfoJsonRpc.cpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ namespace Plugin {
3939
Property<ModelidData>(_T("modelid"), &DeviceInfo::get_modelid, nullptr, this);
4040
Property<MakeData>(_T("make"), &DeviceInfo::get_make, nullptr, this);
4141
Property<ModelnameData>(_T("modelname"), &DeviceInfo::get_modelname, nullptr, this);
42-
Property<BrandnameData>(_T("brandname"), &DeviceInfo::get_brandname, nullptr, this);
4342
Property<DevicetypeData>(_T("devicetype"), &DeviceInfo::get_devicetype, nullptr, this);
4443
Property<DistributoridData>(_T("distributorid"), &DeviceInfo::get_distributorid, nullptr, this);
4544
Property<SupportedaudioportsData>(_T("supportedaudioports"), &DeviceInfo::get_supportedaudioports, nullptr, this);
@@ -63,7 +62,6 @@ namespace Plugin {
6362
Unregister(_T("modelid"));
6463
Unregister(_T("make"));
6564
Unregister(_T("modelname"));
66-
Unregister(_T("brandname"));
6765
Unregister(_T("devicetype"));
6866
Unregister(_T("distributorid"));
6967
Unregister(_T("supportedaudioports"));
@@ -223,22 +221,6 @@ namespace Plugin {
223221
return result;
224222
}
225223

226-
// Property: brandname - device brand name
227-
// Return codes:
228-
// - ERROR_NONE: Success
229-
// - ERROR_GENERAL: General error
230-
uint32_t DeviceInfo::get_brandname(BrandnameData& response) const
231-
{
232-
string brand;
233-
234-
auto result = _deviceInfo->Brand(brand);
235-
if (result == Core::ERROR_NONE) {
236-
response.Brand = brand;
237-
}
238-
239-
return result;
240-
}
241-
242224
// Property: devicetype - Device type
243225
// Return codes:
244226
// - ERROR_NONE: Success

DeviceInfo/Implementation/DeviceInfo.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -116,20 +116,6 @@ namespace Plugin {
116116
std::regex("^FRIENDLY_ID(?:\\s*)=(?:\\s*)(?:\"{0,1})([^\"\\n]+)(?:\"{0,1})(?:\\s*)$"), model);
117117
}
118118

119-
uint32_t DeviceInfoImplementation::Brand(string& brand) const
120-
{
121-
brand = "Unknown";
122-
return
123-
#ifdef USE_SERIALIZED_MANUFACTURER_NAME
124-
((Core::ERROR_NONE == GetFileRegex(_T("/tmp/.manufacturer"), std::regex("^([^\\n]+)$"), brand)) ||
125-
(GetMFRData(mfrSERIALIZED_TYPE_MANUFACTURER, brand) == Core::ERROR_NONE))
126-
? Core::ERROR_NONE
127-
:
128-
#endif
129-
GetFileRegex(_T("/etc/device.properties"),
130-
std::regex("^BRAND_NAME(?:\\s*)=(?:\\s*)(?:\"{0,1})([^\"\\n]+)(?:\"{0,1})(?:\\s*)$"), brand);
131-
}
132-
133119
uint32_t DeviceInfoImplementation::DeviceType(string& deviceType) const
134120
{
135121
#ifndef ENABLE_COMMUNITY_DEVICE_TYPE

DeviceInfo/Implementation/DeviceInfo.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ namespace Plugin {
2929
uint32_t Model(string& model) const override;
3030
uint32_t DeviceType(string& deviceType) const override;
3131
uint32_t DistributorId(string& distributorId) const override;
32-
uint32_t Brand(string& brand) const override;
3332
};
3433
}
3534
}

0 commit comments

Comments
 (0)