halcyon27
halcyon27

Reputation: 169

keycode for exclamation mark with adb shell input

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

Answers (1)

Jon Goodwin
Jon Goodwin

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

Related Questions