Created
March 19, 2019 08:15
-
-
Save kibotu/76be44aaa1174bdd252a49a1cd7a02f9 to your computer and use it in GitHub Desktop.
amazon-fire-tv-remote-input using adb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | | |
# * ---------------------------------------------------------------------------------------------------- | |
# * </pre> | |
# * <img src="https://developer.amazon.com/public/binaries/content/gallery/remote-callouts.png" /> | |
# * <pre> | |
# * 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. | |
# * </pre> | |
#adb shell input text "[email protected]" | |
adb shell input keyevent 23 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment