PinyinIME is a buildable version of Google's Android Pinyin input method, packaged from AOSP sources so it can be compiled into an installable APK for study and customization.
- 1.0.0
- Published at
- Feb 23, 2020
- 56
- Stars
- 460
- Download
- Synced at
- 3d ago
Latest release
1.0.0Feb 23, 2020, 09:50 AMDownloads slow? Switch the source anytime above
README
Project Overview
PinyinIME descends from the Pinyin input method bundled with early Android. This repository turns that AOSP code into a project that compiles in modern Android Studio and produces an installable IME APK. It keeps the original dictionary, candidate and keyboard logic, making it a readable sample for how input methods work.
Build and Output
| Item | Value |
|---|---|
| Output | IME APK |
| Languages | C++ and Java |
| Build tool | Gradle |
| Reference IDE | Android Studio 3.5.x |
| JRE | 1.8.x |
A piece of old code that actually runs teaches more about an IME's trade-offs than any document.
Key Features
- Pinyin input: full-spelling candidates, phrase prediction and user frequency learning
- Candidate bar: paging, selection and deletion of self-made words
- Soft keyboard: built-in English and symbol layouts with state switching
- Local dictionary: dictionary and user frequency stay on device, no network
- Complete IME service: registers and switches through the system InputMethodService flow
Target Audience
- Developers learning the Android input method framework
- Students studying pinyin candidate algorithms
- Developers who want to customize the IME UI
- Enthusiasts collecting classic AOSP modules
Quick Start
- Open the root project in Android Studio and let Gradle sync
- Point
local.propertiesat your SDK and use JDK 1.8 - Connect a device or start an emulator and run
./gradlew assembleDebug - Install the APK, then enable and select it in system language and input settings
- Long-press an input field to switch IMEs and verify candidates
System Requirements
| Item | Requirement |
|---|---|
| OS | Windows / macOS / Linux |
| JDK | 1.8.x |
| Build environment | Android Studio 3.5.x or later |
| Target device | Android device or emulator |
Notes
- Dated codebase: the code comes from early Android and Android 8.0 support is still a TODO
- Hidden APIs: the project references hidden interfaces in
android.jar, placed per the repo notes - Not officially maintained: this is a source cleanup, not a store-distributed app
- Study use: the dictionary and interactions remain in their early form and are not ideal for daily typing
Release history
Sort