A cmd-line tool and related library to set or override device policies on the device.
Provides a simple API to set device policies on the device. Local policies are written as JSON files to /etc/opt/chrome/policies/recommended
. Chrome automatically reads these files and, if properly formatted, use them as local policy setting. For instance, calling PolicyWriter::SetDeviceAllowBluetooth(true)
writes the JSON string
{ "DeviceAllowBluetooth": true }
to /etc/opt/chrome/policies/recommended/device_allow_bluetooth.json
, thus allowing the user to enable bluetooth.
TODO(gwink): A convenience cmd-line to tool to set and clear local device policies.