How to debug Android 6.0 via Wi-Fi? (netcfg problem)

I am currently having a problem with debugging Android 6.0 over Wi-Fi. I followed the steps of this, however, when I try to execute the adb shell netcfg command, I get "/ system / bin / sh: netcfg: not found". In addition, even the graphical ADB parameter across the network in the Developer Options menu has disappeared.

I also tried this post problems with Android, because netcfg seems to be outdated, and I got: WFSO failed.

It works great before I upgrade to Android 6.0.

Does anyone know another command or debugging method over Wi-Fi?

Thank you in advance


Decision

Use adb shell ifconfig <interface name> as a response from Rilwan to find out the IP address of the device. Then use adb connect <ipaddress> for final debugging over Wi-Fi. The real problem was just the missing netcfg command.

+6
source share
3 answers

From your question, if you tried this with wifi, adb shell netcfg I receive "/system/bin/sh: netcfg: not found" , adb over wifi works fine. The only problem is netcfg binary code does not exist in Android 6.0. If you have other previous versions of Android, you can pull out the netcfg binary and click on the 6.0 device.

If you just want to know ipaddress, you can use adb shell ifconfig <interface name>

+13
source

If you are looking for an IP address, your system and mobile phone are connected to the same network.

Just go to Settings → About phone → Status

Here you will find IP

+3
source

I am using the ADBWIFI plugin for Android studio ADBWIFI .

I have not tested on Android 6.0, but I will try.

+2
source

All Articles