Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6984719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T18:35:09+00:00 2026-05-27T18:35:09+00:00

I am trying to send touch events using batch files (.bat) and the adb

  • 0

I am trying to send touch events using batch files (.bat) and the adb shell.

I tried to re-send events I get from the adb shell getevents, and it doesn’t work even though the command passes without errors.
Any ideas?

How do I simulate a touch-event and release-event on a given (x,y) coordinate using the ADB shell?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T18:35:10+00:00Added an answer on May 27, 2026 at 6:35 pm

    Since it seems to change depending on the Android version, I suggest you to follow these instructions :

    1. Start dump motion event you need to reproduce:

      ~$ adb shell getevent | grep event2
      

      grep is very useful to filter output.

    2. Do motion event you want to reproduce;

    3. Then just convert all values from hex in dump to decimal values! 🙂


    To find what eventX is working for you do following:

    1. Start terminal and type:

      ~$ adb shell getevent
      

    You will see quickly moving traces with for example /dev/input/event4 ……

    1. Touch screen once

    You must see between event4 few eventX and these eventX right in the moment of the touch

    will be yours input interface for reproducing motion events! 🙂

    Source.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to send touch events to a device using AndroidDebugBridge, so that
I am trying to send an email from a site I am building, but
I am trying to send some data from a LINQ query in C# to
Trying to send POST request on click event using jQuery with no luck. Here
I am trying to send a mail from my web2py app hosted on GoogleAppEngine.
I am trying to send an email via GMail's SMTP server from a PHP
I am trying to send email using mail() in php. I need the message
I'm trying to send a single image from my iPhone app to my Google
I'm trying to send an email async so it doesn't slow down my front
I am trying to send a pdf as an attachment from Android. Here is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.