Coder Social home page Coder Social logo

android_tap_record's Introduction

#Android触屏事件录制与回放

通常使用于Android手机终端的自动化测试过程;

它能模拟 input 不能完成的一些事件,如 长按操作;

它能自动化操作你的Android屏幕,一次录制,重复利用;

事件录制

手机通过USB线连接到PC,执行命令

./recorder.sh

事件回放

依赖于录制输出的文件,最终输出一个C语言文件 send.c;

因为 sendevent 命令行执行效率较低,因此建议使用C语言来操作;

经过测试,使用C语言编译输出的二进制文件模拟触屏事件,效果 prefect;

./playback.sh
arm-linux-androideabi-gcc send.c -o send
adb push send /data/local/tmp/send
adb shell su -c busybox chmod 755 /data/local/tmp/send
adb shell su -c /data/local/tmp/send

android_tap_record's People

Contributors

scue avatar

Watchers

James Cloos avatar aresiiishuang 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.