A dynamic plugin for the LeanType Keyboard enabling real-time on-device handwriting recognition powered by Google ML Kit Digital Ink Recognition.
- ✍️ 100% On-Device Recognition: Fast, private character and word recognition directly on your device.
- 🌍 300+ Languages Supported: Recognize Latin, Cyrillic, CJK, Indic, Arabic, and hundreds of regional scripts.
- 📦 In-App & Offline Model Manager: Download language models directly in online builds, or use the browser download popup and multi-file/batch
.zipimporter on offline builds. - 🔄 Universal Compatibility: Supported across all 4 LeanType flavors (
Standard,Standard Full,Offline, andOffline Lite). - 🔌 Dynamic Isolated Loading: Loaded dynamically via
DexClassLoaderwith isolated native libraries and zero runtime footprint when inactive.
Important
- Do NOT Install Directly: Do not install this APK as a standalone application into Android OS. It must only be loaded internally through LeanType settings.
- Zero-Network Recognition: Recognition runs 100% offline on your device. Internet connectivity is only used during initial model downloads on online builds.
To maintain a lean, pure FOSS core keyboard while giving users access to advanced handwriting capabilities, this plugin isolates the ML Kit SDK and native libraries (libdigitalink_native.so) into a separate dynamic package.
At runtime, LeanType loads this plugin dynamically via PluginClassLoader when handwriting input is invoked.
- Open LeanType Settings → Handwriting (or Settings → Plugins).
- Tap Download Plugin to automatically fetch and activate the latest release APK.
- Tap Offline Handwriting Models to download your desired language recognition packs.
- Download
handwriting_plugin.apkfrom the Latest Releases. - In LeanType, navigate to Settings → Handwriting (or Settings → Plugins).
- Tap Load handwriting plugin and select the downloaded
.apkfile. - Tap Offline Handwriting Models to download models via browser or import downloaded
.zipmodel archives.
To compile the release APK from source:
./gradlew assembleReleaseThe compiled APK will be generated at:
app/build/outputs/apk/release/handwriting_plugin.apk
Licensed under the Apache License 2.0.