Skip to content

Releases

v4.3.4-contextlm — Signed Release (ContextLM + Interactive AI Dictionary Cleaner)

Choose a tag to compare

@VexingVertigo VexingVertigo released this 17 Nov 19:03

🚀 First Signed Stable Release (com.leanbitlab.leantype.offline)

This is the first full, production-signed release build of LeanType ContextLM (no longer a debug build).

Note for existing debug users: Because this release uses a permanent release signing key and the com.leanbitlab.leantype.offline package ID, it will install cleanly as a production app rather than updating the old .debug build. Export your settings/dictionary backup first if migrating from the debug build.

✨ What's Included

  • 🧠 FUTO ContextLM Transformer (ml4_q6_k.gguf): On-device C++ Transformer integration for sentence-aware next-word prediction and context-based autocorrect.
  • 🧹 Interactive AI Dictionary Cleaner: Batch-audits your Personal Dictionary using a local instruct GGUF model (such as Llama-3.2-3B-Instruct). Automatically protects proper names, emails, contractions, and acronyms while letting you review and toggle individual DELETE, LOWERCASE, and CAPITALIZE checkboxes before applying.
  • ✍️ Strict In-Place AI Rewriting: Custom toolbar AI keys edit selected text directly in-place without conversational chatbot filler.
  • 📋 Clipboard, Selection & Media Fixes:
    • Automatically prompts for Android media/photo access when enabling Clipboard History so screenshots capture without manual permission steps.
    • Fixed One UI 9 / Android 17 MediaStore pending screenshot ingestion.
    • Fixed toolbar Copy collapsing highlighted text on Chromium and One UI text fields.

📥 Installation & Setup

  1. Download 2-LeanType_4.3.4-offline-release.apk below and install it (or track this repository in Obtainium for automatic updates).
  2. Install and load the LeanType Offline AI Plugin under Settings → Plugins & Capabilities → Offline AI.
  3. Load an instruct .gguf model for the AI Dictionary Cleaner / Rewriter, and ml4_q6_k.gguf for ContextLM predictions.

LeanType Custom AI (v4.3.4) - Beta 1

Pre-release

Choose a tag to compare

@VexingVertigo VexingVertigo released this 16 Nov 21:32

🚀 LeanType Custom AI Fork (ContextLM + Smart Cleaner)

Support me on Ko-fi

If you find this fork useful, consider buying me a coffee! It helps fund the time spent on C++ debugging and prompt engineering.

This is a custom fork of LeanType featuring on-device AI additions. It is built on top of the official v4.3.4 release.

✨ Custom Features Added:

  • 🧠 FUTO ContextLM Integration: Ported FUTO's C++ Transformer (ml4_q6_k.gguf) for sentence-aware next-word predictions and context-based autocorrect.
  • 🧹 Smart AI Dictionary Cleaner: Added an "AI Clean Dictionary" action to your Personal Dictionary. It uses an offline LLM (like Llama-3.2-3B) to intelligently find typos and fix weird capitalizations without relying on hardcoded word lists.

📥 Which APK should I download?

  • LeanType-ContextLM-v4.3.4-debug.apk (Recommended for testing): This installs alongside your official LeanType app (package name .debug) so you can compare them safely.
  • 2-LeanType_4.3.4-offline-release.apk: The official offline app (package name .offline), but compiled with our ContextLM C++ engine.
    (Note: You must download the official Offline AI Plugin and a GGUF model in Settings to use the AI features).

⚠️ Testing Notes:

This build has currently only been tested on a Samsung Galaxy S26 Ultra.

  • AI Cleaner Model tested: Llama-3.2-3B-Instruct-Q4_K_M.gguf
  • ContextLM Model tested: FUTO's ml4_q6_k.gguf
  • Performance may vary depending on your device's RAM and processor.

(The official LeanType 4.3.4 release notes continue below)

💖 Support LeanType

Keep LeanType fast and independent. As a community-funded, open-source project, we rely on users like you to stay alive. If LeanType saves you time every day, consider backing them on GitHub Sponsors or Open Collective or simply share it with a friend!

🐛 Fixed & Hardened

  • Handwriting Stops After Reopening the Keyboard (#851, #854): Handwriting worked only until the keyboard was closed, and then needed a forced restart (Settings → About → Restart keyboard) every time. Closing the keyboard released the recognizer, and loading it again failed because Android allows the plugin's native library to be loaded only once. The plugin loader is now kept, so handwriting keeps working across keyboard closes and reopens.
  • Handwriting Panel Closes After the First Word (#854): The first handwritten word after opening the keyboard switched back to the normal keyboard, because auto-capitalization turning off reloaded the letter layout under the panel. The panel now stays open, and the correct capitalization is applied when you leave handwriting.
  • "Tap to Download Model" With the Model Installed (#854): Right after the keyboard started, the check whether the handwriting model is downloaded could time out and report it as missing. The check is now retried before the download prompt is shown.
  • Japanese Input Falling Back to Chinese (#842, #844, #855, #857): With the CJK plugin, Japanese input could switch to Chinese after switching to another app, until the keyboard was restarted. Two things caused it: the keyboard did not send the language to the engine again after an input session ended or the plugin reloaded, and when Android freed the keyboard's memory the engine reloaded without its Pinyin library, so the keyboard fell back to a Chinese placeholder engine. Both are fixed, and the engine is now kept when only Japanese is available on a device.
  • Split Keyboard on Regular Phones (#850): Since 4.3.2, a regular phone with a small display size setting (500 dp or more in width and height) was treated as a large screen, which turns the split keyboard on by default. Such phones now stay on the compact layout, while unfolded foldables (for example 588x706 dp) still get the large layout.
  • Extra Space Below the Keys (#856): The space reserved for the navigation bar is now measured on the screen instead of inside the keyboard window, so a keyboard window that already ends above the navigation bar (seen on Samsung) no longer gets it twice.
  • Network Hardening (#840): The app's own hosts (Groq, Gemini, OpenAI, Hugging Face, GitHub, Codeberg) now accept only HTTPS with the system certificate store, so a user-installed CA is not trusted for API keys, model downloads or update checks.

✨ Added

  • Clearer Incognito Indicator (#846): The incognito icon on the space bar is larger and drawn at full strength, and sits next to the language name instead of overlapping it.
  • Text Edit Key Icon (#847): The text edit toolbar key icon was redrawn with larger arrows and a clear gap around the cursor, so it is no longer crowded.

🧹 Maintenance & Testing

  • Lint Cleanup (#833 to #841): Android lint warnings dropped from 1252 to 170 with no errors.
  • Device and Layout Info in the Exported Log (#850, #856): The startup lines of the exported log now include the device model, screen size in dp and density.
  • Documentation (#830, #831, #832): The voice typing section, the Whisper models repository entry and the Setup Guide link in the README were updated.