-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ChromeOS Flex] Add device policy for sending hw data
This adds a new device policy for managed ChromeOS Flex devices to control whether detailed hardware component data can collected for product improvement purposes. We'd like the administrator to be very clear on what the data will be used for, and not piggy-back on other policies that allow data collection intended for customer use. This is Flex-only, sending hardware data, for product improvement. Device policies should start with "Device", according to a comment in src/chromium/src/components/policy/tools/syntax_check_policy_template_json.py Boolean policies end with "Enabled" by convention? So our policy name: `DeviceFlexHwDataForProductImprovementEnabled`. Although docs/enterprise/add_new_policy.md says we need to add a preference and register it in Local State, etc. that doesn't appear to be necessary for Device policies. Tested by copying the chrome_device_policy.proto to a cros_sdk, and building libbrillo (with added accessors) against it, then using the new accessors to check value. Change-Id: I49282724a216cf36a09b784f174d0f4c9d589c43 Bug: b:299148409 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4908296 Reviewed-by: Roland Bock <rbock@google.com> Reviewed-by: Maksim Ivanov <emaxx@chromium.org> Commit-Queue: Ted Brandston <tbrandston@google.com> Auto-Submit: Ted Brandston <tbrandston@google.com> Cr-Commit-Position: refs/heads/main@{#1211486}
- Loading branch information
1 parent
3fe2752
commit 18cd84f
Showing
8 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
...licy_definitions/UserAndDeviceReporting/DeviceFlexHwDataForProductImprovementEnabled.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
owners: | ||
- tbrandston@google.com | ||
- chromeos-flex-eng@google.com | ||
caption: Send hardware data to Google to support improvements to ChromeOS Flex | ||
desc: |- | ||
Allows some services on <ph name="PRODUCT_OS_FLEX_NAME">Google ChromeOS Flex</ph> to send additional hardware data. | ||
This hardware data is used for overall improvements to <ph name="PRODUCT_OS_FLEX_NAME">Google ChromeOS Flex</ph>. | ||
For example, we might analyze the impact of a crash based on CPU, | ||
or prioritize a bugfix based on how many devices share a component. | ||
If the policy is Enabled or left unset, additional hardware details | ||
will be sent from <ph name="PRODUCT_OS_FLEX_NAME">Google ChromeOS Flex</ph> | ||
devices. | ||
If Disabled, only standard hardware data will be sent. | ||
supported_on: | ||
- chrome_os:120- | ||
device_only: true | ||
features: | ||
dynamic_refresh: true | ||
per_profile: false | ||
type: main | ||
schema: | ||
type: boolean | ||
items: | ||
- caption: Send additional hardware data on ChromeOS Flex | ||
value: true | ||
- caption: Do not send additional hardware data on ChromeOS Flex | ||
value: false | ||
default: true | ||
example_value: true | ||
tags: ['google-sharing'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters