get_shared_preferences
Retrieve and read the XML contents of a specific Shared Preferences file from an Android app's sandbox. Provide the package name and filename to access app settings data on a connected device.
Instructions
Retrieve and read the XML contents of a specific Shared Preferences file inside an app's sandbox. Requires a debuggable app or root.
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": {
"packageName": "<packageName>",
"filename": "<filename>"
},
"name": "get_shared_preferences"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | No | Specific device serial number | |
| filename | Yes | Filename of the preferences file (e.g. 'app_settings' or 'app_settings.xml') | |
| packageName | Yes | Package name of the target app (e.g. 'com.example.app') |