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

最新版本captureScreen方法失败 #1092

Open
NOWorEVER opened this issue Jul 29, 2024 · 2 comments
Open

最新版本captureScreen方法失败 #1092

NOWorEVER opened this issue Jul 29, 2024 · 2 comments

Comments

@NOWorEVER
Copy link

  1. Autox.js 版本:6.6.6
  2. Autox.js 下载渠道:https://github.com/kkevsekk1/AutoX/releases

6.6.5版本是没问题的
6.6.5
代码:cc= captureScreen("/storage/emulated/0/Pictures/Gallery/owner/year+"-"+date.getTime()+".jpg");
报错
No screen capture permission
Wrapped java.lang.IllegalStateException: java.lang.SecurityException: No screen capture permission

@NOWorEVER
Copy link
Author

emmmm,重新启动后没复现了。
requestScreenCapture()这个权限是给了的。
先关闭吧

@NOWorEVER NOWorEVER reopened this Jul 29, 2024
@NOWorEVER
Copy link
Author

发现是用root提供无障碍模式权限,但是在上一个版本打开,这个版本安装的时候默认关闭,导致无障碍模式处于薛定谔的打开,需要在软件设置里面重启把通过root权限打开无障碍模式再打开

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

1 participant