android Encryption unsuccessful

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


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章