Skip to content

device-settings-command

Builds the adb shell settings … argument list.

Split out of ./device-settings.ts for the same reason ./adb-device-list.ts is split out of the transport factory: the argument list is pure and worth unit-testing, while the call that runs it is integration-time code that a unit test cannot reach. Keeping them in one file would put the namespace default inside a coverage-ignored block, where nothing checks that it is what the documentation claims.

InterfaceDescription
BuildDeviceSettingsCommandArgumentsParamsParameters for buildDeviceSettingsCommandArguments.
FunctionDescription
buildDeviceSettingsCommandArgumentsBuilds the arguments for adb shell settings <verb> <namespace> <name> [value].
EnumDescription
DeviceSettingNamespaceThe settings namespaces this helper addresses.
DeviceSettingVerbThe settings sub-commands this helper issues.