Search code examples
androiddebuggingadbwifi

How to Debug my Android Application Over WiFi Without a USB Connection?


I have a Samsung Galaxy S10 running Android version 10, and my USB connector does not work anymore. The Android docs state that I have to connect my phone to the host computer with a USB cable first before debugging via WiFi...

Are there any ways to work around this? I read one StackOverflow post that provided a solution (not sure if it works) for phones that are rooted, but I was hoping there was a simpler way.


Solution

  • Since your device is Android 10 you cannot init a Wireless connection without connecting it via USB first.

    I don't know if the S10 is rooteable if you can root your device or it is already rooted you can follow the steps listed here:

    How can I connect to Android with ADB over TCP?

    You only need to prompt a few commands in your device to enable usb debugging via TCP.

    Or you just need to wait for the Samsung S10 Android 11 update. Planned for this month.