├── .gitattributes ├── .gitignore ├── CHANGELOG.md ├── META-INF └── com │ └── google │ └── android │ ├── update-binary │ └── updater-script ├── Makefile ├── README.md ├── customize.sh ├── module.prop └── system └── bin ├── sqlite3.arm ├── sqlite3.arm64 ├── sqlite3.x64 └── sqlite3.x86 /.gitattributes: -------------------------------------------------------------------------------- 1 | # Declare files that will always have LF line endings on checkout. 2 | META-INF/** text eol=lf 3 | common/** text eol=lf 4 | module.prop text eol=lf 5 | changelog.txt text eol=lf 6 | 7 | # Denote all files that are truly binary and should not be modified. 8 | system/** binary 9 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.tar.gz 2 | *.sh 3 | *.zip 4 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## Changelog 2 | 3 | **2025-02-20**: v3.49.1 (_20250220_) 4 | 5 | - Updated to SQLite v3.49.1. 6 | 7 | **2024-12-12**: v3.47.2 (_20241212_) 8 | 9 | - Updated to SQLite v3.47.2. 10 | 11 | **2024-12-11**: v3.47.1 (_20241211_) 12 | 13 | - Updated to SQLite v3.47.1. 14 | 15 | **2024-10-23**: v3.47.0 (_20241023_) 16 | 17 | - Updated to SQLite v3.47.0. 18 | 19 | **2024-08-25**: v3.46.1 (_20240825_) 20 | 21 | - Updated to SQLite v3.46.1. 22 | 23 | **2024-06-15**: v3.46.0 (_20240615_) 24 | 25 | - Updated to SQLite v3.46.0. 26 | 27 | **2024-04-18**: v3.45.3 (_20240418_) 28 | 29 | - Updated to SQLite v3.45.3. 30 | 31 | **2024-03-14**: v3.45.2 (_20240314_) 32 | 33 | - Updated to SQLite v3.45.2. 34 | 35 | **2024-02-04**: v3.45.1 (_20240204_) 36 | 37 | - Updated to SQLite v3.45.1. 38 | 39 | **2024-01-16**: v3.45.0 (_20240116_) 40 | 41 | - Updated to SQLite v3.45.0. 42 | 43 | **2023-12-29**: v3.44.2 (_20231229_) 44 | 45 | - Multi-arch support. 46 | - Version scheme was changed. 47 | 48 | **2023-12-08**: v3.44.2 49 | 50 | - Updated to SQLite v3.44.2. 51 | 52 | **2023-10-09**: v3.43.1 53 | 54 | - Updated to SQLite 3.43.1. 55 | 56 | **2023-08-28**: v3.43.0 57 | 58 | - Updated to SQLite 3.43.0. 59 | 60 | **2023-08-24**: v3.42.0 61 | 62 | - Updated to SQLite 3.42.0. 63 | - Version scheme was changed. 64 | 65 | **2022-11-17**: v3.40.0 (_v1.6_) 66 | 67 | - Updated to SQLite 3.40.0. 68 | 69 | **2021-07-26**: v3.36.0 (_v1.5_) 70 | 71 | - Updated to SQLite 3.36.0. 72 | 73 | **2021-04-25**: v3.35.5 (_v1.4_) 74 | 75 | - Updated to SQLite 3.35.5. 76 | - Updated for Magisk v20.4 template format. 77 | 78 | **2019-03-29**: v3.27.2 (_v1.3_) 79 | 80 | - Updated to SQLite 3.27.2. 81 | 82 | **2019-03-29**: v3.24.0 (_v1.2_) 83 | 84 | - Updated for Magisk v19 template format. 85 | 86 | **2018-07-22**: v3.24.0 (_v1.1_) 87 | 88 | - Now installed in `/system/bin` if `/system/xbin` unavailable. 89 | 90 | **2018-07-03**: v3.24.0 (_v1.0_) 91 | 92 | - Initial release. 93 | - SQLite 3.24.0. 94 | -------------------------------------------------------------------------------- /META-INF/com/google/android/update-binary: -------------------------------------------------------------------------------- 1 | #!/sbin/sh 2 | 3 | ################# 4 | # Initialization 5 | ################# 6 | 7 | umask 022 8 | 9 | # echo before loading util_functions 10 | ui_print() { echo "$1"; } 11 | 12 | require_new_magisk() { 13 | ui_print "*******************************" 14 | ui_print " Please install Magisk v20.4+! " 15 | ui_print "*******************************" 16 | exit 1 17 | } 18 | 19 | ######################### 20 | # Load util_functions.sh 21 | ######################### 22 | 23 | OUTFD=$2 24 | ZIPFILE=$3 25 | 26 | mount /data 2>/dev/null 27 | 28 | [ -f /data/adb/magisk/util_functions.sh ] || require_new_magisk 29 | . /data/adb/magisk/util_functions.sh 30 | [ $MAGISK_VER_CODE -lt 20400 ] && require_new_magisk 31 | 32 | install_module 33 | exit 0 34 | -------------------------------------------------------------------------------- /META-INF/com/google/android/updater-script: -------------------------------------------------------------------------------- 1 | #MAGISK 2 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | ZIP_FILES := customize.sh META-INF module.prop system 2 | VERSION = v3.49.1 3 | VERSIONCODE = 20250220 4 | .PHONY: module.prop system/bin zip 5 | 6 | default: module.prop system/bin zip 7 | 8 | zip: 9 | rm -f SQLite-$(VERSION)-for-magisk.multi-arch.zip 10 | zip -9 -r SQLite-$(VERSION)-for-magisk.multi-arch.zip $(ZIP_FILES) 11 | 12 | module.prop: 13 | sed -i 's/version=.*$$/version=$(VERSION)/' module.prop 14 | sed -i 's/versionCode=.*$$/versionCode=$(VERSIONCODE)/' module.prop 15 | 16 | sqlite3-android: 17 | make -C ../sqlite3-android clean 18 | make -C ../sqlite3-android 19 | 20 | system/bin: 21 | mkdir -p system/bin 22 | cp ../sqlite3-android/libs/arm64-v8a/sqlite3-static system/bin/sqlite3.arm64 23 | cp ../sqlite3-android/libs/armeabi-v7a/sqlite3-static system/bin/sqlite3.arm 24 | cp ../sqlite3-android/libs/x86_64/sqlite3-static system/bin/sqlite3.x64 25 | cp ../sqlite3-android/libs/x86/sqlite3-static system/bin/sqlite3.x86 26 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # SQLite3 for arm, arm64, x86 and x64 2 | 3 | ## Description 4 | 5 | This Magisk module provides a statically linked and stripped `sqlite3` binary for **arm64-v8a**, **armeabi-v7a**, **x86** and **x86_64** devices. 6 | 7 | ## Tested Devices 8 | 9 | - arm64-v8a: 10 | - **Lenovo Tab M10 Plus Gen 3** 11 | - **Xiaomi MI 6** 12 | - **Samsung Galaxy S6 Edge** 13 | - x86_64: 14 | - **LDPlayer 9** 15 | - **Waydroid** 16 | 17 | ## Download 18 | 19 | Releases: [SQLite-vX.XX.X-for-magisk.multi-arch.zip](https://github.com/rojenzaman/sqlite3-magisk-module/releases) 20 | 21 | ## Changelog 22 | 23 | Check: [CHANGELOG.md](CHANGELOG.md) 24 | 25 | ## Credits 26 | 27 | Thanks to @jacopotediosi for the convenient SQLite [multi-arch build scripts for Android](https://github.com/jacopotediosi/sqlite3-android). 28 | 29 | ## Links 30 | [SQLite](https://www.sqlite.org/) 31 | -------------------------------------------------------------------------------- /customize.sh: -------------------------------------------------------------------------------- 1 | bindir=/system/bin 2 | 3 | ui_print "[0/3] Keeping necessary binary file: $MODPATH$xbindir/sqlite3.$ARCH" 4 | cp $MODPATH$bindir/sqlite3.$ARCH $MODPATH$bindir/sqlite3.keep 5 | 6 | ui_print "[1/3] Deleting unnecessary binary files" 7 | rm -f $MODPATH$bindir/sqlite3.arm $MODPATH$bindir/sqlite3.arm64 $MODPATH$bindir/sqlite3.x64 $MODPATH$bindir/sqlite3.x86 8 | 9 | ui_print "[2/3] Restoring necessary binary file to $MODPATH$xbindir/sqlite3" 10 | mv $MODPATH$bindir/sqlite3.keep $MODPATH$bindir/sqlite3 11 | 12 | ui_print "[3/3] Installed to $bindir" 13 | 14 | set_perm_recursive $MODPATH 0 0 0755 0755 15 | -------------------------------------------------------------------------------- /module.prop: -------------------------------------------------------------------------------- 1 | id=sqlite3 2 | name=SQLite for arm, arm64, x86 and x64 devices 3 | version=v3.49.1 4 | versionCode=20250220 5 | author=Rojen Zaman 6 | description=Provides a statically linked sqlite3 binary for arm, arm64, x86 and x64 devices 7 | -------------------------------------------------------------------------------- /system/bin/sqlite3.arm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Magisk-Modules-Alt-Repo/sqlite3/6a806b236593864f3d238ef944d13543422fa3ff/system/bin/sqlite3.arm -------------------------------------------------------------------------------- /system/bin/sqlite3.arm64: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Magisk-Modules-Alt-Repo/sqlite3/6a806b236593864f3d238ef944d13543422fa3ff/system/bin/sqlite3.arm64 -------------------------------------------------------------------------------- /system/bin/sqlite3.x64: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Magisk-Modules-Alt-Repo/sqlite3/6a806b236593864f3d238ef944d13543422fa3ff/system/bin/sqlite3.x64 -------------------------------------------------------------------------------- /system/bin/sqlite3.x86: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Magisk-Modules-Alt-Repo/sqlite3/6a806b236593864f3d238ef944d13543422fa3ff/system/bin/sqlite3.x86 --------------------------------------------------------------------------------