-
Notifications
You must be signed in to change notification settings - Fork 197
Sending UTF‐8 Keys in Android
Gil Megidish edited this page Jun 23, 2025
·
1 revision
Android's adb shell input text
command does not support characters outside of the ASCII range.
This means that you cannot prompt the LLM to:
Click on Search, type 日本 and submit
A solution for this is to use the clipboard. mobile-mcp can detect if com.mobilenext.devicekit is available on the device, and if so, it will:
- Copy the text to type into Android's clipboard
- Submit a KEYCODE_PASTE, to paste clipboard onto the focused input field
- Clear the clipboard on the Android device
Simply install com.mobilenext.devicekit apk on your device. You can copy-paste these commands to download and install:
curl -s -O -J -L https://github.com/mobile-next/devicekit-android/releases/download/0.0.10/mobilenext-devicekit.apk
adb install -r mobilenext-devicekit.apk
From this point onwards, mobile-mcp will attempt to use devicekit every time you try to input a text that is not fully ascii.
From Mobile Next: We are building the future of mobile development 📱 🚀