ToggleWifiTool
Toggles WiFi on/off. Requires CHANGE_WIFI_STATE. On API 29+ apps cannot toggle WiFi directly, so this opens the system WiFi settings panel instead of changing state — which requires the host app to be in the foreground or hold SYSTEM_ALERT_WINDOW (background activity starts are blocked); otherwise it returns an error.
Output keys on success: success (true), opened_settings. On API 29+ also message; below 29 also enabled (the applied state).