Skip to main content
The Switch Proxy command (Command Type: 3) switches proxy settings on the Android device using ADB.

Command Type

Command Type ID: 3

Parameters

ParameterTypeDescriptionRequired
hoststringHostname or IP address of the proxy serverYes
portstringPort number for the proxy serverYes
protocolstringProtocol to use for the proxy (e.g., http, https)Yes
authobjectAuthentication credentials for the proxy serverNo
linkLinkOptional link for further proxy configurationNo
FieldTypeDescriptionRequired
targetIdstringThe identifier for the target of the linkYes
isValidationbooleanWhether the LINK target uses validationYes
countriesArray of stringThe countries for the LINK target (ISO codes)Yes

Usage Examples

Set HTTP Proxy

{
  "command": "switch-proxy",
  "params": {
    "host": "proxy.example.com",
    "port": "8080",
    "protocol": "http"
  }
}

Set Proxy with Authentication

{
  "command": "switch-proxy",
  "params": {
    "host": "proxy.example.com",
    "port": "8080",
    "protocol": "http",
    "auth": {
      "username": "user",
      "password": "%{PROXY_PASSWORD}"
    }
  }
}