TWRP下安卓通用锁屏幕密码清除
TWRP下安卓通用锁屏幕密码清除
miui12.5过于卡顿,降级回miui12后,尽管在twrp里清除了data分区,但是开机锁屏密码依然存在(可能是清除得不彻底?)
开机以后的结果是锁屏密码仍然是原来miui12.5的密码,输入数字密码可以进入桌面(但是指纹没有了)
进入设置想修改密码或者添加指纹密码,校验完现在的密码后,设置页直接闪退,或者报错 com.android.settings已停止运行/com.android.settings多次停止运行
错误日志如下:
java.lang.RuntimeException: An error occurred while executing doInBackground() at android.os.AsyncTask$4.done(AsyncTask.java:399) at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383) at java.util.concurrent.FutureTask.setException(FutureTask.java:252) at java.util.concurrent.FutureTask.run(FutureTask.java:271) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:919) Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int com.android.internal.widget.VerifyCredentialResponse.getResponseCode()' on a null object reference at com.android.internal.widget.LockPatternUtils.checkCredential(LockPatternUtils.java:395) at com.android.internal.widget.LockPatternUtils.checkPassword(LockPatternUtils.java:546) at com.android.internal.widget.LockPatternUtils.checkPassword(LockPatternUtils.java:504) at com.android.settings.Fd.doInBackground(Unknown Source:7) at com.android.settings.Fd.doInBackground(Unknown Source:2) at android.os.AsyncTask$3.call(AsyncTask.java:378) at java.util.concurrent.FutureTask.run(FutureTask.java:266) ... 3 more
REC里删除密码文件后得以解决,需要删除(重命名的文件列表):
/date/system/locksettings.db /date/system/locksettings.db-shm /date/system/locksettings.db-wal /date/system/gesture.key /date/system/gatekeeper.password.key /date/system/gatekeeper.gatekeeper.pattern.key /date/system/fingerprintpassword.key /date/system/personal.key /date/system/password.key
我这只存在文件1-4,重命名这些文件以后,开机直接进入系统,不提示输入密码
setting中重新设置密码,密码校验和录入指纹正常
也可root以后使用RE修改,建议不要直接删除文件,先给文件改个名字看看。
理论上安卓系统通用