Skip to content

android/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.

Interface Description
BuildDeviceSettingsCommandArgumentsParams Parameters for buildDeviceSettingsCommandArguments.
Function Description
buildDeviceSettingsCommandArguments Builds the arguments for adb shell settings <verb> <namespace> <name> [value].
Enum Description
DeviceSettingNamespace The settings namespaces this helper addresses.
DeviceSettingVerb The settings sub-commands this helper issues.