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

自动上传验证码无法运行 #63

Closed
Goojoe opened this issue Apr 23, 2024 · 15 comments
Closed

自动上传验证码无法运行 #63

Goojoe opened this issue Apr 23, 2024 · 15 comments

Comments

@Goojoe
Copy link

Goojoe commented Apr 23, 2024

Screenshot_2024-04-23-23-04-43-448_org autojs autoxjs v6

@Goojoe Goojoe changed the title 自动上传验证码无效 自动上传验证码无法运行 Apr 23, 2024
@Jeric-X
Copy link
Owner

Jeric-X commented Apr 23, 2024

确认通知读取权限有没有开启(见附件图),如果已经开启则手动关闭并重新开启(在手机自身的系统设置界面中操作,点击autoxjs中的开关会跳转到设置界面),还是报错的话,新建一个脚本只包含以下代码

events.observeNotification()
events.onNotification(notification => {
    toast(notification.getText())
})

如果这两行都报错的话可能需要麻烦你到Autox.js提出issue

附件

Screenshot_2024-04-24-00-20-29-102_org autojs autoxjs v6

@Goojoe
Copy link
Author

Goojoe commented Apr 23, 2024

IMG_20240424_004834
确实没打开通知权限,打开通知权限后为上面的图片日志,仍然无法运行

新建脚本的代码稳定运行

@Jeric-X
Copy link
Owner

Jeric-X commented Apr 23, 2024

看起来第49行没做null检查,我之后会提交到github,你可以自己先加上确认还有没有别的问题

@Goojoe
Copy link
Author

Goojoe commented Apr 23, 2024

要加上什么代码?

@Jeric-X
Copy link
Owner

Jeric-X commented Apr 23, 2024 via email

@Jeric-X
Copy link
Owner

Jeric-X commented Apr 24, 2024

改好了

@Goojoe
Copy link
Author

Goojoe commented Apr 25, 2024

可以运行,但是并没有上传验证码(没有toast),得我手动复制验证码才行
HyperOS 1.0.24.8.DEV
Android 14

@Jeric-X
Copy link
Owner

Jeric-X commented Apr 25, 2024

#63 (comment)
运行这条评论里的代码,观察收到信息和其他推送时有没有toast

@Goojoe
Copy link
Author

Goojoe commented Apr 25, 2024

完全没有,这个toast是网速吧?

@Goojoe
Copy link
Author

Goojoe commented Apr 25, 2024

不能准确识别短信应用的通知,会识别到其他隐藏通知

@Jeric-X
Copy link
Owner

Jeric-X commented Apr 25, 2024

查看手机是否有针对短信的隐私权限控制,并打开

@Goojoe
Copy link
Author

Goojoe commented Apr 25, 2024

并没有,我认为这个不太好用,我的手机ROOT后完全可以使用xposedsms复制验证码。或者使用shortx
能否针对shortx开发上传验证码的工具,或者shell脚本

@Jeric-X
Copy link
Owner

Jeric-X commented Apr 25, 2024

不如由你来写一下,不管是自用还是分享出来给其他人使用,参考我的js代码逻辑应该是很简答的
我没有root的安卓设备,在我能力之外或适用范围过于小众的方案我很难适配

@Jeric-X
Copy link
Owner

Jeric-X commented Apr 25, 2024

不能准确识别短信应用的通知,会识别到其他隐藏通知

回到本来的问题,不需要的话可以关闭issue
其他APP的通知能识别到吗
另外可以仔细找找,也不是我怀疑你,我的MIUI10设备都有短信读取权限控制

@Goojoe
Copy link
Author

Goojoe commented Apr 25, 2024

算了我有root还考虑这个干嘛,你关吧

@Jeric-X Jeric-X closed this as completed Apr 25, 2024
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