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

adb shell am broadcast -a ADB_INPUT_TEXT --es msg for hebrew chars #23

Closed michaazran closed 4 years ago

michaazran commented 5 years ago

hi

i am trying to use the keyboard to send hebrew characters to my mobile adb shell am broadcast -a ADB_INPUT_TEXT --es msg 'HEBREW WORD'

but it is not running, when i use am broadcast -a ADB_INPUT_CHARS --eia chars '1502,1497,1499,1488,1500' it is working successfully

any idea ?

senzhk commented 5 years ago

Latest Android doesn't allow sending these via command line,

1.1 Sending text input (base64) if (1) is not working. adb shell am broadcast -a ADB_INPUT_B64 --es msg echo '你好嗎? Hello?' | base64

On Mon, Jan 21, 2019, 7:18 AM michaazran <notifications@github.com wrote:

hi

i am trying to use the keyboard to send hebrew characters to my mobile adb shell am broadcast -a ADB_INPUT_TEXT --es msg 'HEBREW WORD'

but it is not running, when i use am broadcast -a ADB_INPUT_CHARS --eia chars '1502,1497,1499,1488,1500' it is working successfully

any idea ?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/senzhk/ADBKeyBoard/issues/23, or mute the thread https://github.com/notifications/unsubscribe-auth/ABoh9ASKZ7qcygL7lO3qkXZrSJKWo9lSks5vFPlJgaJpZM4aJ57P .

michaazran commented 5 years ago

so ADB_INPUT_CHARS is the only way to use it ?

senzhk commented 5 years ago

No, you can use the "base64" tool :

adb shell am broadcast -a ADB_INPUT_B64 --es msg echo 'HEBREW WORD' | base64

michaazran commented 5 years ago

not working it send other characters and not my Hebrew characters

michaazran commented 5 years ago

by the way, when i send English characters using the base64 the keyboard crush, i am getting a message "unfortunately ADBKeyboard has stopped"