Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Send multiple same keyevents to the adb shell?

Tags:

android

adb

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
like image 813
Micro Avatar asked Dec 19 '22 14:12

Micro


1 Answers

Try to use

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

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

like image 97
olegr Avatar answered Feb 13 '23 05:02

olegr