adb_settings_put
Write a key/value Android settings entry to the system, secure, or global namespace via ADB to configure device behavior or preferences.
Instructions
Write an Android settings value to any namespace (system, secure, global)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"namespace": "<namespace>",
"key": "<key>",
"value": "<value>"
},
"name": "adb_settings_put"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Setting key (e.g., 'screen_brightness' for system namespace, 'wifi_on' or 'airplane_mode_on' for global, 'location_providers_allowed' for secure). Use `adb_shell` with `settings list <namespace>` to enumerate available keys for a device. | |
| value | Yes | Value to write. Type depends on the key — typically a string, integer, or 0/1 for booleans. The setting framework accepts everything as a string and parses on read. | |
| device | No | Device serial | |
| namespace | Yes | Settings namespace |