Search code examples
androidadb

Send multiple same keyevents to the adb shell?


How can you send multiple key events to the adb shell of the same key? For example, you can issue one 'delete' key event (#67) like this:

adb shell input keyevent 67

But is there something like this (note: this won't work)?

adb shell input keyevent 67 67

Solution

  • Try to use

    adb shell "input keyevent 67 && input keyevent 67"
    

    If you need to write large scripts, you can also try this approach.