#!/bin/bash # https://stackoverflow.com/questions/7789826/adb-shell-input-events if [ "$1" = "Enter" ]; then /opt/android-sdk-linux/platform-tools/adb shell input keyevent 66 elif [ "$1" = "Backspace" ]; then /opt/android-sdk-linux/platform-tools/adb shell input keyevent 67 else /opt/android-sdk-linux/platform-tools/adb shell input text "'$1'" fi