【讨论】录制回放改进讨论帖
- Dominant language
- Java
- Stars
- 367
- Forks
- 209
- PR merge metrics
- No merged PRs in 30d
Description
有同学想写一个不需要keystore的录制回放工具,http://weibo.com/1907875417/AnpfUmmTB
我想了一下,应该可以实现(没实现过)
在有uiautomator的android版本上:
1.可以通过uiautomator获得当前所有可见UI的(x,y,w,h)
2.通过adb shell getevent获得当前操作的(x,y)
3.根据1、2的信息判断操作落在哪个控件上,这样就能做到控件级的录制回放了
但是如果是ListView类的操作不太好准确记录滑动的停止位置
在没有有uiautomator的android版本上:
可以利用android的签名检查漏洞将Cafe的录制回放的代码注入到dex中而不改变签名,详见http://blog.sina.com.cn/s/blog_be6dacae0101bmq3.html
Contributor guide
No contributing guide indexed for this repository
Research direction
This is an old discussion rather than an implementation task, and it names no files or tests. Start by reviewing Cafe's existing recording and replay code, then investigate the mentioned Android UIAutomator and adb shell getevent approaches. A complete outcome would need a defined design and confirmed handling for visible controls, older Android versions, and ListView scroll positions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile-dev, testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 15/100