Skip to content

Commit

Permalink
修复魅族PIN解锁
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyJiangWJ committed Aug 25, 2023
1 parent 95a9ba4 commit 88dde1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Unlock.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* @Author: TonyJiangWJ
* @Date: 2019-11-05 09:12:00
* @Last Modified by: TonyJiangWJ
* @Last Modified time: 2023-08-23 15:42:56
* @Last Modified time: 2023-08-25 09:33:08
* @Description:
*/
let { config: _config, storageName: _storageName } = require('../config.js')(runtime, global)
Expand Down Expand Up @@ -452,7 +452,7 @@ extendPinUnlocker(ColorOsPinUnlocker, function () {

extendPinUnlocker(MeizuPinUnlocker, function () {
debugInfo('使用魅族的PIN密码解锁')
let lockRegion = id('com.android.systemui:id/lockPattern').exists()
let lockRegion = id('com.android.systemui:id/lockPattern').findOne(_config.timeout_unlock)
if (!lockRegion) {
errorInfo('未找到flyme专有的lockPattern无法执行解锁,请确认设置的是PIN密码')
return false
Expand Down

0 comments on commit 88dde1e

Please sign in to comment.