-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Device refactor for 2.0 #223
base: next
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is meant by clear text, exactly? Human readable?
### 3.1. Device Identifier | ||
The Device module **MUST** expose a read-only, clear-text unique identifier of the device via the `Device.id` method. | ||
|
||
This API will likely only be permitted to fisrt-party apps and **MUST** only be surfaced in the Manage SDK. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fisrt - typo
|
||
The `type` method **MUST** return one of: | ||
|
||
- `STB` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this match the Comcast/Sky Ontology?
|
||
### 5.3. Make | ||
The Device module **MUST** expose the read-only manufacturer of the device, e.g. "Raspberry Pi, ltd", via the `Device.make` method. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
String is implementation defined, e.g. a serialized string on EntOS devices.
### 5.5. Serial Number | ||
The Device module **MUST** expose the read-only serial number of the device via the `Device.serialNumber` method. | ||
|
||
This API will likely only be permitted to fisrt-party apps and **MUST** only be surfaced in the Manage SDK. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fisrt - typo
|
||
This API will likely only be permitted to fisrt-party apps and **MUST** only be surfaced in the Manage SDK. | ||
|
||
The value of this **MUST** be unique within a make and model, even across distributors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm... I would say that this is also implementation defined
**TODO**: Confirm RDK-M distributor name. | ||
|
||
### 6.2. Partner | ||
The Device module **MUST** expose the read-only distribution partner of the device, e.g. "RDK Demos". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The is the partner id from the ontology?
**TODO**: Confirm RDK-M distributor name. | ||
|
||
### 6.2. Partner | ||
The Device module **MUST** expose the read-only distribution partner of the device, e.g. "RDK Demos". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The partner may not be known - presumably return an empty string?
**NOTE**: we probably need a registry of Firebolt distributors to avoid collisions. | ||
|
||
### 3.2. Anonymized Device Identifier | ||
The Device module **MUST** expose a read-only, anonymized device identifier that is consistent across launches of the same app via the `Device.uid` method. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is meant by anonymized here?
## 3. Device Identifiers | ||
|
||
### 3.1. Device Identifier | ||
The Device module **MUST** expose a read-only, clear-text unique identifier of the device via the `Device.id` method. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the durability of this attribute? Does it survive device reset? Is it available even on a new device?
|
||
This API will likely only be permitted to fisrt-party apps and **MUST** only be surfaced in the Manage SDK. | ||
|
||
The value of this **MUST** be unique within a distributor. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or is the scope implementation defined?
No description provided.