android_device_meizu_meilan2 icon indicating copy to clipboard operation
android_device_meizu_meilan2 copied to clipboard

[CM-12] Full device encryption is not working

Open pzlabuda opened this issue 8 years ago • 0 comments

v0.13. Trying to encrypt the phone via UI seems to trigger a reboot, but the actual encryption does not take place. Trying to run vdc cryptfs enablecrypto inplace password hex_password in terminal ends up in the same way.

Edit: On the other hand, running vdc cryptfs enablecrypto wipe password hex_password did encrypt the phone, yet the SIM card was no longer visible afterwards. Factory reset made it visible again.

An excerpt from logcat revealed the source of problem:

E/Cryptfs ( 243): Orig filesystem overlaps crypto footer region. Cannot encrypt in place.

After resizing /data partition filesystem using hints from https://vogelchr.blogspot.com/2015/08/full-disk-encryption-with-cyanogenmod.html I was able to perform successful inplace encryption.

pzlabuda avatar Oct 05 '16 00:10 pzlabuda