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

功能建议: MIUI11无法解锁问题优化以及功能建议 #265

Closed
withsalt opened this issue Mar 2, 2020 · 7 comments
Closed

功能建议: MIUI11无法解锁问题优化以及功能建议 #265

withsalt opened this issue Mar 2, 2020 · 7 comments
Labels
Apperception 🎯 统觉 Issue closed by the creater on his or her own Enhancement 🛠️ 建议 New feature or request Proposal 💡 方案 Issue creater's own proposal which may be really helpful

Comments

@withsalt
Copy link

withsalt commented Mar 2, 2020

=====================================================
优化建议:
作者你好,我的手机是MI6X MIUI11。之前一直存在唤醒屏幕后无法解锁的问题,在进行测试之后发现,将匹配屏幕解锁控件次数调大之后可以有效解决MIUI11唤醒后无法解锁的问题。个人猜测可能是MIUI动画的原因,检测时间又太短,导致无法识别控件。

function _lmtRch() {
    if ($_und(_unlock._ctr)) {
        _unlock._ctr = 0;
    }
    if ($_und(_unlock._max)) {
        _unlock._max = 20;
    }

    let _max = _unlock._max;
    let _ctr = _unlock._ctr++;
    if (_ctr > _max) {
        return _err("解锁尝试次数已达上限");
    }
    if (_ctr) {
        let _s = " (" + _ctr + "/" + _max + ")";
        debugInfo("重试解锁" + _s);
    }
}

将上锁代码中_unlock._max次数修改为20后目前没有遇到过无法解锁的情况。
日志:
3RmztO.jpg

=====================================================
功能建议:
希望作者可以添加一个只在指定时段运行的设置。比如只在每天早上7-9点收取能量,其它时间脚本不会运行。因为在日常使用当中,森林能量产生最多的时间就在这个时段,其它时候在使用手机时,时不时会跳出来自动运行,需要手动去关闭,很麻烦。
感谢,作者辛苦了。

@withsalt withsalt added the Enhancement 🛠️ 建议 New feature or request label Mar 2, 2020
@wyfang
Copy link

wyfang commented Mar 2, 2020

我也是,小米9默认主题就无法解锁。但是使用一些其他主题就可以。

我也强烈建议添加固定时间。

@dengqinzhi
Copy link

米8试了一楼的方法,确实完美解锁运行,高手在民间啊!

@liujiayi771
Copy link

我的小米10按这个方法还是不行

@wyfang
Copy link

wyfang commented Mar 17, 2020

我的小米10按这个方法还是不行

小米9也不行

@SuperMonster003
Copy link
Owner

上一版重构解锁模块的时候
把200ms左右的小缓冲遗漏了
将在下一版v1.9.16修复此问题

非常感谢提供建议与解决方案
😃

@SuperMonster003 SuperMonster003 added Accepted 🌱 受理 Maintainer may be busy resolving or fixing the labeled issues Proposal 💡 方案 Issue creater's own proposal which may be really helpful labels Apr 20, 2020
@SuperMonster003
Copy link
Owner

@withsalt
今晚将发布v1.9.16解决上述解锁问题并增加上述时段配置功能
另外如果可以的话 欢迎联系我加入内测群 😃

@SuperMonster003 SuperMonster003 added Feedback Awaited 🕒 等待反馈 Waiting for the feedback from issue creater and issue will be closed if duration is over one month and removed Accepted 🌱 受理 Maintainer may be busy resolving or fixing the labeled issues labels Apr 21, 2020
@withsalt
Copy link
Author

已经测试,小米6X MIUI11 不能解锁问题已经修复。

@SuperMonster003 SuperMonster003 added Apperception 🎯 统觉 Issue closed by the creater on his or her own and removed Feedback Awaited 🕒 等待反馈 Waiting for the feedback from issue creater and issue will be closed if duration is over one month labels Apr 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Apperception 🎯 统觉 Issue closed by the creater on his or her own Enhancement 🛠️ 建议 New feature or request Proposal 💡 方案 Issue creater's own proposal which may be really helpful
Projects
None yet
Development

No branches or pull requests

5 participants