adb command for getting ip address assigned by operator
问题 I need to fetch the IPaddress assigned by the operator after a successful 3G or LTE data call. $adb shell netcfg >> doesnt have the assigned IP address. I tried adb shell dumpsys and grep ip address, but in vain. Any help/pointers? 回答1: Try this command, it will help you to get ipaddress $ adb shell ifconfig tiwlan0 tiwlan0 is the name of the wi-fi network interface on the device. This is generic command for getting ipaddress, “adb shell netcfg” It will output like this usb0 DOWN 0.0.0.0 0.0