想要在我的android上录制触摸并使用adb播放它们 [英] Want to record touches on my android and play them using adb

查看:335
本文介绍了想要在我的android上录制触摸并使用adb播放它们的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够记录所有触摸我的android手机屏幕并播放(无根)的时间。使用这个人的 answer ,我设法记录了使用adb触摸手机的播放时间。

I want to be able to record all of the times I touch the screen of my android phone and play it back (without root). Using this guy's answer, I managed to record a playback of times I touched my phone using adb.

但是,在回放时,我所做的所有触摸都毫不动摇地展现出来,而无需等待电话上的东西。例如,如果我想进入我的应用程序并单击它,它会启动该应用程序,但不等待该应用程序加载,只需一次输入所有触摸并关闭即可。

However, when playing it back, all the touches I made came out immidietly, without waiting for stuff on the phone. For example, if I wanted to enter my app and do some clicking on it, it starts the app, but don't wait for the app to load , just inputs all the touches at once and closes.

我尝试使用 adb shell getevent -t (使用时间戳记)记录触摸,但是当我尝试播放时,我得到了使用:sendevent设备类型代码值

I tried recording the touches with adb shell getevent -t (using timestamps) but when I tried to play it back I got use: sendevent device type code value

我尝试使用 sleep(2)每次重大接触后,就得到 /sdcard/sendevent_input.sh [17]:语法错误:'2'意外 c

I tried using sleep(2) after every major touch, and got /sdcard/sendevent_input.sh[17]: syntax error: '2' unexpected

我尝试使用 shell输入触摸屏水龙头xy 并每隔几秒钟播放一次,我设法重播了两次触摸,但是由于某种原因,触摸变得随机了(我只使用 adb shell getevent -lt 记录了ABS_MT_POSITION的记录,并认为方向是问题所在,因此尝试使用xy,yx,1080-x 1920-y和1920- y 1080 -x,但所有按钮均无效)。

I tried using shell input touchscreen tap x y and playing it back every few seconds, and I managed to replay two touches, but then for some reason the touches went random (I only recorded records with ABS_MT_POSITION using adb shell getevent -lt, and thought the orientation is the problem, so tried using x y, y x, 1080 - x 1920 - y and 1920 - y 1080 -x but all of them didn't work).

我只想记录d用adb(无root)触摸并播放它们。

All I want is to record my touches with adb (and no root) and play them.

如何?

推荐答案

我制作了一个Java应用程序相同。这将记录并插入延迟,并可以播放。还可以保存脚本以备不时之需。此工具将使用修改后的 sendevent 来克服播放缓慢的问题。
Android Record N Play

I have made a java application which does the same. This will record and insert delays, and can play back. Save script for alter use as well.This tool whill use a modified sendevent to overcome the slowness in playback. Android Record N Play

这篇关于想要在我的android上录制触摸并使用adb播放它们的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆