Reputation: 169
How can I enter a "!" via adb? I can't find the keycode anywhere and it isn't coming across with I use adb shell input text !
adb shell input keycode <???>
Upvotes: 1
Views: 1775
Reputation: 9153
you need to escape the following characters:
( ) < > | ; & * \ ~ " ' 'escaping' means putting a backslash ( \ ) before the offending character.
space is escaped by using %s
adb shell input text \!
There is no keycode for !.
Upvotes: 4