Git Product home page Git Product logo

adb_batch_tap's Introduction

Description

The main script purpose is the batch tap on multiple Android devices via ADB. The general idea is taking photos simultaneously. Tap events are sent asynchronously. Devices wake up synchronously if such option is specified.

Can be run as bash batch_tap.sh with the next arguments:

a - a - awake option, 0 or 1, if 1 - turn on and unlock device if necessary, otherwise sent events to devices with such check

p - list of passwords, values are used when awake option is specified

v - is single password argument, 0 or 1, if 1 - the same password will be used for all devices, otherwise passwords are used sequentially for each device

c - list of relative coordinates for tap in range between 0 and 100, e.g “50 50“ means screen center for the first device

u - is single coordinate argument, 0 or 1, if 1 - first pair of coordinates will be used for all devices, otherwise pair of coordinates are used sequentially for each device

Sample usage

  • bash batch_tap.sh -a 1 -p 0000 -v 1 -c "50 50 10 10 80 80" - awakes devices using password 0000 for all devices and sends tap events for three devices on different screen position

  • bash batch_tap.sh -c "50 50" -u 1 - sends tap events to all devices on their screen centers

Sample output

Output contains device name, tap position in pixels, device screen size

Pixel 2 XL tap on (700, 1400), screen size is 1440x2880
MI 8 tap on (500, 1100), screen size is 1080x2248
T780H tap on (500, 1150), screen size is 1080x2340

Suggestions

  • Enable TCP/IP debug mode
  • Enable USB Debugging for Security settings on devices which have such developer option (e.g. Xiaomi MI8, Android 10). Otherwise tap events won’t be executed.

In progress

  • Script running from another Android device via Termux Terminal or own client side app

adb_batch_tap's People

Contributors

koflox avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.