enableTcpIp method

Future<bool> enableTcpIp(
  1. String serial, {
  2. int port = 5555,
})

Implementation

Future<bool> enableTcpIp(String serial, {int port = 5555}) async {
  try {
    final result = await _exec.run(
      adbPath,
      arguments: ['-s', serial, 'tcpip', port.toString()],
    );
    return result.success;
  } catch (_) {
    return false;
  }
}