This Magisk Module contains wget for Android .

ASUS_I006D:/ $ wget2 --version
GNU Wget2 2.1.0 - multithreaded metalink/file/website downloader

+digest +https +ssl/openssl +ipv6 +iri +large-file -nls -ntlm -opie +psl -hsts
+iconv +idn2 +zlib +lzma +brotlidec +zstd +bzip2 +lzip +http2 -gpgme

Copyright (C) 2012-2015 Tim Ruehsen
Copyright (C) 2015-2024 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later
<http://www.gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Please send bug reports and questions to <bug-wget@gnu.org>.
ASUS_I006D:/ $ 


wget has been dynamically linked for the OS libraries only, so that the name resolution via DNS works, but no additional libraries are required to use the binary:

shell@sake / $ ldd /system/bin/tmp/wget2
    linux-vdso.so.1 => [vdso] (0x74a32ad000)
    libdl.so => /apex/com.android.runtime/lib64/bionic/libdl.so (0x749bbc7000)
    libc.so => /apex/com.android.runtime/lib64/bionic/libc.so (0x749b520000)
shell@sake / $

The certificate bundle hardcoded in the binary is /system/etc/security/ca-certificates.crt.

The customize script for the Magisk Module creates the file 

/system/etc/security/ca-certificates.crt

with all certificates currently installed on the phone in the directory

/system/etc/security/cacerts/


Use the wget parameter --ca-certificate  to select another bundle file with certificates

The module also contains the files necessary to use wget in other programs (libwget.so and libwget.a)


The configure options used to compile the binary are:

configure: Summary of build options:

  Version:            2.1.0
  Host OS:            linux-android
  Install prefix:     /data/develop/android/sysroot/usr
  Compiler:           /data/develop/android/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android28-clang
  CFlags:             -I/data/develop/android/sysroot/usr/include -DPCRE2_STATIC -I/data/develop/android/sysroot/usr/include -I/data/develop/android/sysroot/include -I/data/develop/android/sysroot/usr/include -I/data/develop/android/sysroot/usr/include -I/data/develop/android/sysroot/usr/include -I/data/develop/android/sysroot/usr/include -I/data/develop/android/sysroot/usr/include -I/data/develop/android/sysroot/usr/include -DNDEBUG --sysroot /data/develop/android/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot --sysroot /data/develop/android/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot  -O2 -fPIE -fPIC -I/data/develop/android/sysroot/usr/include   -Wno-implicit-function-declaration -Wno-int-conversion -O2 -fPIE -fPIC -I/data/develop/android/sysroot/usr/include   -Wno-implicit-function-declaration -Wno-int-conversion -UWITH_LIBHSTS  -I/data/develop/android/sysroot/usr/include 
  LDFlags:            --sysroot /data/develop/android/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot --sysroot /data/develop/android/android-ndk/toolchains/llvm/prebuilt/linux-x86_64/sysroot  -s -pie -L/data/develop/android/sysroot/usr/lib  -s -pie -L/data/develop/android/sysroot/usr/lib  
  Libs:               -L/data/develop/android/sysroot/usr/lib -lpcre2-8 -L/data/develop/android/sysroot/usr/lib -lidn2 -llz  -L/data/develop/android/sysroot/lib -lzstd -L/data/develop/android/sysroot/usr/lib -R/data/develop/android/sysroot/usr/lib -lbrotlidec -L/data/develop/android/sysroot/usr/lib -llzma -L/data/develop/android/sysroot/usr/lib -lz -lbz2  -L/data/develop/android/sysroot/usr/lib -lnghttp2 -L/data/develop/android/sysroot/usr/lib -lpsl -L/data/develop/android/sysroot/usr/lib -lssl -lcrypto 
  Library types:      shared=yes, static=yes
  Small libraries:    no
  SSL/TLS support:    openssl
  DANE support:       no
  GZIP compression:   yes
  BZIP2 compression:  yes
  LZMA compression:   yes
  Brotli compression: yes
  Zstd compression:   yes
  Lzip compression:   yes
  IDNA support:       IDNA 2008 (libidn2)
  PSL support:        yes
  HSTS support:       no
  HTTP/2.0 support:   yes
  Documentation:      no (disabled)
  Wget2 docs:         
  Libwget docs:       
  PCRE support:       yes, via libpcre2
  Tests:              Valgrind testing not enabled
  Assertions:         no
  POSIX xattr:        no
  Microhttpd support: no (CFLAGS: . LIBS: )
  Fuzzing build:      no, 
  GPGME:              no
  libproxy:           no



History
  19.11.2024 2.1.0-v1.0.0.0 /bs
    initial release of the Magisk Module
 
  10.07.2025 version=2.1.0-v1.0.0.1
    added a symbolic link /system/bin/wget -> /system/bin/wget2

