Skip to content

tns device and wifi adb connection. Device gets disconnected #2816

@adisoftbn

Description

@adisoftbn

Please, provide the details below:

I'm trying to deploy app builds over wifi, to not break my phone battery by keeping my phone connected all the time to USB. I can do anything over wifi with ADB, and it stays connected hours without any problem, but when i run tns device it gets disconnected automatically and it shows no devices.

If i run tns run android it starts the emulator automatically even if i previously connected the device using tcpip(wifi). Next time when i use adb devices it shows me that no devices are connected.

Did you verify this is a real problem by searching [Stack Overflow]

Yes I checked all of them

Tell us about the problem

tns device automatically disconnects any device connected with adb over wifi

Which platform(s) does your issue occur on?

Android

Please provide the following version numbers that your issue occurs with:

  • CLI: 2.3
  • Cross-platform modules: 2.3
  • Runtime(s): 2.3

Please tell us how to recreate the issue in as much detail as possible.

connect the phone using usb.

run adb tcpip 5555

disconnect the phone from usb

run adb connect phone_ip:5555

run adb shell or anything you want like install apk and so on, and everything works perfect. No issue.

run tns device and everything gets disconnected

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions