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
To use Tango to connect devices over TCP, see create TCP connection.
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