Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

agent.so? #3

Open
kingty opened this issue Aug 23, 2024 · 4 comments
Open

agent.so? #3

kingty opened this issue Aug 23, 2024 · 4 comments

Comments

@kingty
Copy link

kingty commented Aug 23, 2024

hello ,agent.so 的源码可以学习下吗?

@codematrixer
Copy link
Owner

hello ,agent.so 的源码可以学习下吗?

这是鸿蒙官方自动化框架hpyium提供的,我是阅读这个代码才发现的agent.so,这个动态库提供了UI操作,元素查找,屏幕录制等功能

@kingty
Copy link
Author

kingty commented Aug 23, 2024

奥,谢谢。我还以为是你自己实现了个agent。我看test框架里公开了两个接口

// hook function names of UiTestExtension library
#define UITEST_EXTENSION_CALLBACK_ONINIT "UiTestExtension_OnInit"
#define UITEST_EXTENSION_CALLBACK_ONRUN "UiTestExtension_OnRun"
理论上可以自己实现

@kingty
Copy link
Author

kingty commented Aug 23, 2024

在哪里可以找到agent.so,有链接吗?hpyium的代码里我没看到?

@codematrixer
Copy link
Owner

在哪里可以找到agent.so,有链接吗?hpyium的代码里我没看到?

https://developer.huawei.com/consumer/cn/doc/harmonyos-guides-V5/hypium-python-guidelines-V5

pip install xdevice-5.0.3.300.tar.gz
pip install xdevice-devicetest-5.0.3.300.tar.gz
pip install xdevice-ohos-5.0.3.300.tar.gz
pip install hypium-5.0.3.300.tar.gz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants