GithubHelp home page GithubHelp logo

crackercat / android-event-recorder Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tusson/android-event-recorder

0.0 0.0 0.0 974 KB

android input event record/replay tool

License: GNU General Public License v3.0

Makefile 7.10% C 91.61% Batchfile 1.29%

android-event-recorder's Introduction

android-event-recorder

What it is ?

a tool to record/replay input event for android platform, automated testing will be easier.

Installation

  • Install from binary

    Downalod ZIP and run bin/install.bat

  • Install from source

$ git clone https://github.com/TUSSON/android-event-recorder.git
$ cd android-event-recorder
$ mm
$ croot && adb push out/target/product/$(TARGET_PRODUCT)/system/bin/eventrec system/bin/
$ adb shell chmod u+x system/bin/eventrec

Problems

  1. adbd cannot run as root in production builds

Push eventrec to tmp directory, run cmd with full path.

adb push eventrec /data/local/tmp/
adb chmod u+x /data/local/tmp/eventrec
adb shell /data/local/tmp/eventrec

Usage

  • record input event
$ adb shell eventrec /data/local/tmp/record_test.txt

ctrl-c to stop it.

  • replay input event
$ adb shell eventrec /data/local/tmp/record_test.txt -p

Help

$ adb shell eventrec
Android event record/palyback utility - $Revision: 1.1 $

Usage:./eventrec -r|p [-c count] [-d second] <event_record.txt>

-r|p                 Record or replay events  (default record)

-c count             Repeat count for replay

-d min_sec[,max_sec] Delay for everytime replay start (default 1.0)
                     If the minimum and maximum values of the delay
                     are provided, the delay is random.

Example of event_record.txt:
[   20897.702414] /dev/input/event1: 0003 0035 000000b1
[   20897.702414] /dev/input/event1: 0000 0000 00000000

android-event-recorder's People

Contributors

tusson 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.