Skip to content

Instantly share code, notes, and snippets.

@EmberHeartshine
Last active October 6, 2020 11:02
Show Gist options
  • Save EmberHeartshine/0109248c8f76c67f742f67e7e78ded4a to your computer and use it in GitHub Desktop.
Save EmberHeartshine/0109248c8f76c67f742f67e7e78ded4a to your computer and use it in GitHub Desktop.
Enable Gesture Typing/Swype on AOSP Keyboard

This guide assumes you DO NOT have any Google apps installed, esp. Google Services Framework. If you already do, you may as well just install OpenGApps. I wrote this guide for MicroG LineageOS 17.1 (Android Q), but it should work on earlier editions of Android and other AOSP-based ROMs. Root is required. This guide assumes the user will be performing all of these tasks on the phone without the use of a desktop computer. This process will not survive a system update, so be sure to keep libjni_latinimegoogle.so around.

The idea behind this guide is for people who are more concerned about privacy and security than the complete, 100% use of FOSS. libjni_latinimegoogle.so is not FOSS.

  1. Disable AOSP keyboard (install something else like OpenBoard)
  2. Download OpenGApps Stock (or larger) for your device
  3. Extract /Options/swypelibs-lib-<arch>.tar.lz from the OpenGApps package
  4. Extract libjni_latinimegoogle.so from swypelibs-lib-<arch>.tar.lz (You can use something like Convertio if you don't have a utility to extract lzip files)
  5. Place libjni_latinimegoogle.so into /system/lib (arm) or /system/lib64 (arm64).
  6. Re-enable AOSP keyboard
  7. ????
  8. Profit!!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment