Skip to main content
Version: next

tcpip

Enable/disable ADB over Wi-Fi.

info

Toggling ADB over Wi-Fi will restart ADB daemon, causing all existing connections to be closed.

info

Tango requires another daemon connection to connect devices over TCP. See create TCP connection for more information.

declare class AdbTcpIpCommand extends AdbCommandBase {
setPort(port: number): Promise<string>;
disable(): Promise<string>;
}

declare class Adb {
readonly tcpip: AdbTcpIpCommand;
}

Enable ADB over Wi-Fi

await adb.tcpip.setPort(5555);
Equivalent ADB Command
adb tcpip 5555

Disable ADB over Wi-Fi

await adb.tcpip.disable();
Equivalent ADB Command
adb usb