Skip to content

Latest commit

 

History

History
86 lines (72 loc) · 3.09 KB

File metadata and controls

86 lines (72 loc) · 3.09 KB

Initial Setup

Create git repo and pull LatinIME source

Create the Android Studio Project

Building libjni_latinime.so

sudo apt-get update
sudo apt install git
sudo apt install python2.7 python-pip
sudo apt-get install openjdk-8-jdk

sudo update-alternatives --config java
sudo update-alternatives --config javac

sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev libgl1-mesa-dev libxml2-utils xsltproc unzip
  • Install Repo and Download the Source (around 80Gb):
mkdir ~/bin
PATH=~/bin:$PATH

curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo

mkdir WORKING_DIRECTORY
cd WORKING_DIRECTORY

git config --global user.name "Your Name"
git config --global user.email "you@example.com"

repo init -u https://android.googlesource.com/platform/manifest

repo sync
  • Building:
    • choose Platform with lunch (aosp_arm-eng, aosp_arm64-eng, aosp_x86-eng, aosp_x86_64-eng)
make clobber

source build/envsetup.sh

cd packages/inputmethods/LatinIME/native/jni

lunch aosp_arm64-eng

mma
  • libjni_latinime.so now sits in out/target/product/generic_arm64/system/lib64