This Magisk module contains sqlite3 for Android

ASUS_I006D:/ $ sqlite3 --version
3.50.4 2025-07-30 19:33:53 4d8adfb30e03f9cf27f800a2c1ba3c48fb4ca1b08b0f5ed59a4d5ecbf45e20a3 (64-bit)
ASUS_I006D:/ $ 

The Magisk module contains dynamically and statically linked binaries.


The dynamically linked binary only needs the standard libraries from the Android OS:

ASUS_I006D:/ $ myldd sqlite3

# Executing ldd "/system/bin/sqlite3" 
	linux-vdso.so.1 => [vdso] (0x740fb00000)
	libm.so => /apex/com.android.runtime/lib64/bionic/libm.so (0x7407c40000)
	libz.so => /system/lib64/libz.so (0x7407c10000)
	libc.so => /apex/com.android.runtime/lib64/bionic/libc.so (0x7407cbc000)
	libdl.so => /apex/com.android.runtime/lib64/bionic/libdl.so (0x7407bef000)
ASUS_I006D:/ $ 

There are two statically linked binaries in the module, one stripped and one not stripped :

ASUS_I006D:/ $ file /system/usr/bin/sqlite3*static*
/system/usr/bin/sqlite3.static:          ELF executable, 64-bit LSB arm64, static, for Android 31, built by NDK r27b (12297006), not stripped
/system/usr/bin/sqlite3.static.stripped: ELF executable, 64-bit LSB arm64, static, for Android 31, built by NDK r27b (12297006), stripped
ASUS_I006D:/ $ 

ASUS_I006D:/ $ ls -lh /system/usr/bin/sqlite3*static*
-rwxr-xr-x 1 root root 5.3M 2025-10-09 14:24 /system/usr/bin/sqlite3.static
-rwxr-xr-x 1 root root 2.9M 2025-10-09 14:24 /system/usr/bin/sqlite3.static.stripped
ASUS_I006D:/ $ 


sqlite3 has been compiled with these configure options:

./configure \ 
  --prefix=/system/usr \ 
  --scanstatus \ 
  --load-extension \ 
  --rtree \ 
  --memsys5 \ 
  --fts3 \ 
  --fts4 \ 
  --fts5 \ 
  --update-limit \ 
  --geopoly \ 
  --rtree \ 
  --session \ 
  --with-readline-ldflags="-lncurses" \ 
  --with-readline-ldflags="-lreadline" \ 
  --with-readline-cflags=-I/data/local/tmp/develop/sysroot/usr/include \ 
  --all

The source code for the files in this module is available here:

https://github.com/sqlite/sqlite


History

05.06.2025 v1.0.0
  initial release

09.10.2025 v1.1.0
  updated sqlite3 to version 3.50.4
  added the statically linked binaries sqlite3.static and sqlite3.static.stripped

