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 <???> 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 !.
adb shell input text !seems to work fine for me: just to be clear, that's not working for you? Or have I misunderstood?!character viaadb shell input text !@echo off adb wait-for-device adb shell input text xyzabc!