分享

android Encryption unsuccessful

 brightknight 2020-03-26

android 在进行开发的时候,可能在LCD上会显示如下信息,而不能进入主界面

Encryption unsuccessful
encryption was interrupted and can't complete. as a result, the data on your phone is no longer accessible.
To resume using your phone, you need to perform a factory reset, when you set up your phone after the reset, you'll have an opportunity to restore any data that was backed up to your Google Account.

网的方法一般为在/system/core/init/buildin.c 中添加如下代码

- property_set("ro.crypto.state","encrypted");
+ property_set("ro.crypto.state","unencrypted");
- property_set("vold.decrypt",1); 

修改后发下确实可以进入主界面,并且能够正确操作,但是之后发现重启后userdata的分区每次都会复位,每次系统都会回到初始模式,其实简单注释掉加密不能解决问题,可能android系统对分区的处理还是加密的,因为其要存储一些密码等文件,这个修改不能从本质上解决问题。

解决的办法,尝试在fastboot下 增加对userdata分区的格式化。

fastboot format userdata

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多