Simple script to create Android Studio importable latinIME fork project.
USAGE
0 Make sure you have Android NDK.
1 Configure project directory name, ndk-build excecutable file location, the AOSP branch name and new package name from the parameters on top of the script. Then run it.
2 import project directory to Android Studio.
NOTE: Only tried on jb-release branch cannot guarantee others. There may be a few tweaks needed to make it work with a specific branch.