FBE 加密手机修改密码最后点确定时,马上拔电池掉电出现开机进入recovery

进入recovery log :

01-01 08:02:46.165   362   362 D TrustyGateKeeper: TrustyGateKeeper  Verify =========<<<<<<<<<<<<
01-01 08:02:46.165   455   455 D keystore: AddAuthenticationToken: timestamp = 51230, time_received = 47
01-01 08:02:46.168   455   455 E keystore: unlock called on uninitialized keystore.
01-01 08:02:46.168   744   998 I LockSettingsService: Unlocking user 0 with secret only, length 64
01-01 08:02:46.170   320   324 D vold    : e4crypt_unlock_user_key 0 serial=0 token_present=0
01-01 08:02:46.171   320   324 D vold    : Skipping non-key .
01-01 08:02:46.171   320   324 D vold    : Skipping non-key ..
01-01 08:02:46.172   320   324 D vold    : Trying user CE key /data/misc/vold/user_keys/ce/0/current
01-01 08:02:46.176   320   324 W vold    : Password present but stretching is nopassword
01-01 08:02:46.178   320   324 E vold    : Openssl error: 0
01-01 08:02:46.178   320   324 E vold    : Failed to find working ce key for user 0
01-01 08:02:46.178   320   324 E vold    : Couldn't read key for 0
01-01 08:02:46.178   320   324 E vold    : Rebooting into recovery
[   47.758234] c2     1 init: Received sys.powerctl='reboot,recovery' from pid: 320 (/system/bin/vold)
01-01 08:02:46.181   320   324 W libc    : [SPRD_DBG]__system_property_set(sys.powerctl,reboot,recovery),pid = 320,proc = /system/bin/vold
[   47.761176] c2     1 init: Clear action queue and start shutdown trigger

01-01 08:02:46.186   744   998 D ActivityManager: Started unlocking user 0
01-01 08:02:46.186   744   998 D LockSettingsService: unlockUser[   47.763189] c2     1 init: processing action (shutdown_done) from (<Builtin Action>:0)

 

1、

06-13 11:03:14.180   268  2086 D vold    : e4crypt_add_user_key_auth 0 serial=0 token_present=0
06-13 11:03:14.187   268  2086 D vold    : Skipping non-key .
06-13 11:03:14.187   268  2086 D vold    : Skipping non-key ..
06-13 11:03:14.187   268  2086 E vold    : key_path = /data/misc/vold/user_keys/ce/0/cx0000000000
06-13 11:03:14.187   268  2086 E vold    : tmp_path  = /data/misc/vold/user_keys/temp
06-13 11:03:14.188   268  2086 E vold    : writeStringToFileA /data/misc/vold/user_keys/temp/version: No such file or directory
06-13 11:03:14.189   268  2086 E vold    :

修改密码时,将密码文件写入临时目录 /data/misc/vold/user_keys/temp/   ,相关文件encrypted_key secdiscardable stretching  keymaster_key_blobversion version ,并创建密码文件 /data/misc/vold/user_keys/ce/0/cx0000000000

并将/data/misc/vold/user_keys/temp 重命名为 /data/misc/vold/user_keys/ce/0/cx0000000000

storeKeyAtomically  重命名

2、

06-13 11:03:14.312   268  2086 V vold    : /system/bin/secdiscard
06-13 11:03:14.312   268  2086 V vold    :     --
06-13 11:03:14.312   268  2086 V vold    :     /data/misc/vold/user_keys/ce/0/current/encrypted_key
06-13 11:03:14.312   268  2086 V vold    :     /data/misc/vold/user_keys/ce/0/current/secdiscardable
06-13 11:03:14.312   268  2086 V vold    :     /data/misc/vold/user_keys/ce/0/current/keymaster_key_blob
06-13 11:03:14.379   268  2086 V vold    : /system/bin/rm
06-13 11:03:14.379   268  2086 V vold    :     -rf
06-13 11:03:14.379   268  2086 V vold    :     /data/misc/vold/user_keys/ce/0/current

06-13 11:03:15.056   268  2086 D vold    : Renaming /data/misc/vold/user_keys/ce/0/cx0000000000 to /data/misc/vold/user_keys/ce/0/current

删除之前的密码文件信息目录 /data/misc/vold/user_keys/ce/0/current

将新的密码文件  /data/misc/vold/user_keys/ce/0/cx0000000000 重命名为 /data/misc/vold/user_keys/ce/0/current

fixate_user_ce_key 重命名

 

 

 

 

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值