Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wget from adb shell

Tags:

android

adb

wget

I am trying to run wget command from adb shell but it is giving me wget: bad address everytime. And if i run wget from normal terminal it works. So there is no problem with the network connection as I am able to ping severs. I even tried wget IP address but no use. Please share your answers

like image 510
therealprashant Avatar asked Nov 17 '14 08:11

therealprashant


1 Answers

It seems that your copy of the busybox is not fully Android compatible. Most likely it's just statically linked with GNU libc instead of the bionic (Android alternative). Most functions work fine but some things like DNS resolving do not. You need to get a proper Android version of busybox for wget to be able to resolve host names.

like image 116
Alex P. Avatar answered Nov 09 '22 13:11

Alex P.