Skip to content

Instantly share code, notes, and snippets.

@zbicin
Created February 21, 2018 20:28
Show Gist options
  • Select an option

  • Save zbicin/7ec5139c64ae1da5f816002a198efe78 to your computer and use it in GitHub Desktop.

Select an option

Save zbicin/7ec5139c64ae1da5f816002a198efe78 to your computer and use it in GitHub Desktop.
#!/bin/bash
tap ()
{
adb shell sendevent /dev/input/event1 3 57 9148
adb shell sendevent /dev/input/event1 3 53 $1
adb shell sendevent /dev/input/event1 3 54 $2
adb shell sendevent /dev/input/event1 3 58 54
adb shell sendevent /dev/input/event1 0 0 0
adb shell sendevent /dev/input/event1 3 57 -1
adb shell sendevent /dev/input/event1 0 0 0
}
while true; do
tap 500 600
tap 500 900
tap 500 1200
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment