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