#!/usr/bin/env bash
# * https://developer.android.com/reference/android/view/KeyEvent#constants
# * https://developer.amazon.com/appsandservices/solutions/devices/fire-tv/docs/amazon-fire-tv-remote-input
# * ----------------------------------------------------------------------------------------------------
# * | | (KEYCODE_MEDIA_RECORD) | |
# * ----------------------------------------------------------------------------------------------------
# * | |
# * ----------------------------------------------------------------------------------------------------
# * | | KEYCODE_DPAD_UP | |
# * ----------------------------------------------------------------------------------------------------
# * | KEYCODE_DPAD_LEFT | KEYCODE_DPAD_CENTER | KEYCODE_DPAD_RIGHT |
# * ----------------------------------------------------------------------------------------------------
# * | | KEYCODE_DPAD_DOWN | |
# * ----------------------------------------------------------------------------------------------------
# * | |
# * ----------------------------------------------------------------------------------------------------
# * | KEYCODE_BACK | (KEYCODE_ESCAPE) | KEYCODE_MENU |
# * ----------------------------------------------------------------------------------------------------
# * | KEYCODE_MEDIA_REWIND | KEYCODE_MEDIA_PLAY_PAUSE | KEYCODE_MEDIA_FAST_FORWARD |
# * ----------------------------------------------------------------------------------------------------
# *
# *
# *
# * Button KeyEvent Default Behavior # * () Home none Return the user to the Home screen. This is a system event and cannot be intercepted. # * (4) Back KEYCODE_BACK Return the user to the previous operation or screen (Activity). # * (82) Menu KEYCODE_MENU Invoke the Android context menu (OptionsMenu). # * (130) Microphone (Search) (Voice Remote only) KEYCODE_MEDIA_RECORD Invoke the system voice search. This is a system event and cannot be intercepted. # * (23) Select (D-Pad Center) KEYCODE_DPAD_CENTER Select the user interface item with the current focus. # * (19) Up (D-Pad) KEYCODE_DPAD_UP Move the focus upward in the user interface. # * (20) Down (D-Pad) KEYCODE_DPAD_DOWN Move the focus downward in the user interface. # * (21) Left (D-Pad) KEYCODE_DPAD_LEFT Move the focus left in the user interface. # * (22) Right (D-Pad) KEYCODE_DPAD_RIGHT Move the focus right in the user interface. # * (85) Play/Pause KEYCODE_MEDIA_PLAY_PAUSE Control media playback. Play/Pause is a toggle. # * (89) Rewind KEYCODE_MEDIA_REWIND Rewind or skip backwards in media playback contexts. # * (90) Fast Forward KEYCODE_MEDIA_FAST_FORWARD Fast Forward or skip ahead in media playback contexts. # *#adb shell input text "lorem3@ipsum.net" adb shell input keyevent 23