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

adb广播使用讨论 #36

Open
yaming116 opened this issue Oct 4, 2019 · 7 comments
Open

adb广播使用讨论 #36

yaming116 opened this issue Oct 4, 2019 · 7 comments

Comments

@yaming116
Copy link
Contributor

目前项目中有一个adb静态注册的广播,目前安卓在8.0及之后的版本已经禁止了静态注册的行为,也就是说静态注册是没用的 ,所以这块需要一个调整,但是我不是很清楚这个具体在哪里使用了.

如果改为动态注册,这样才atx app不在运行的时候是没办法接收到相关的广播信息的

@codeskyblue @mingyuan-xia

@mingyuan-xia
Copy link
Member

可以grep下 uiautomator2 python库是否引用这个broadcast. 如果没有可安全去除。保活uiautomator jsonrpc server目前是atxagent的职责

@yaming116
Copy link
Contributor Author

目前提供了location mock功能,因为还有一个pr是禁止熄屏的,如果这个功能是需要但是对保活要求不是很高,我就直接全部改成动态注册,顺便把熄屏的那个pr接手添加一个配置,这样这边的问题基本都是处理完了

@mingyuan-xia
Copy link
Member

嗯 改吧 那个没并的暂时不会考虑 常拉活手机受不了

@yaming116
Copy link
Contributor Author

我仔细想了一下问题也不是很大,如果u2那边🈶️调用最多后期逻辑修改语言增加一个判断app是否再运行中
动态广播的这个我这两天修改一下

@codeskyblue
Copy link
Member

广播目前只有在gps mock和输入法的时候才有使用

Sent with GitHawk

@yaming116
Copy link
Contributor Author

输入法的没啥问题,因为已经是动态注册的了,目前有的就是gps mock

@yaming116
Copy link
Contributor Author

https://www.jianshu.com/p/5283ebc225d5 这里介绍了可以在Android8.0上突破隐式广播的限制

dolfly pushed a commit to atxbot/android-uiautomator-server that referenced this issue Sep 20, 2023
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

3 participants