Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to debug Android 6.0 over Wi-Fi? (netcfg issue)

Tags:

android

adb

wifi

I am currently with a problem to debug Android 6.0 over Wi-Fi. I followed the steps of this answer, however when I try the command adb shell netcfg I receive "/system/bin/sh: netcfg: not found". In addition, even the graphical option ADB over network in Developers Options Menu has disappeared.

I also, tried this post of Android's Issue because netcfg seems to be deprecated, and I got: WFSO timed out.

It works fine before I updated to Android 6.0.

Does someone knows another command or way to debug over Wi-Fi?

Thanks in advance


Solution

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

like image 971
Marlos Damasceno Avatar asked Mar 29 '16 20:03

Marlos Damasceno


3 Answers

If you are looking for IP address- your system and mobile are connected to the same network

Simply go to Settings -> About Phone -> Status

Here you will find the IP

like image 87
WISHY Avatar answered Nov 19 '22 05:11

WISHY


From your question, if you tried this over wifi means- adb shell netcfg I receive "/system/bin/sh: netcfg: not found", adb over wifi is working fine. Only problem is netcfg binary is not there in Android 6.0. If you have any other previous version android, you can pull netcfg binary and push to 6.0 device.

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

like image 43
Rilwan Avatar answered Nov 19 '22 05:11

Rilwan


I use ADBWIFI plugin for android studio ADBWIFI .

I have not tested on Android 6.0 but give it a try.

like image 2
Murli Prajapati Avatar answered Nov 19 '22 04:11

Murli Prajapati