senzhk / ADBKeyBoard

Android Virtual Keyboard Input via ADB (Useful for Test Automation)
GNU General Public License v2.0
1.22k stars 299 forks source link

use adb shell am broadcast -a ADB_INPUT_B64 --es msg `echo '你好嗎? Hello?' | base64` will generate space after string #31

Closed luisxiaomai closed 4 years ago

luisxiaomai commented 5 years ago

As title, input chinese use base64 way will generate space after sting.

senzhk commented 4 years ago

you are right, echo issue, this should fix:

adb shell am broadcast -a ADB_INPUT_B64 --es msg echo -n '你好嗎? Hello?' | base64