android_device_meizu_meilan2
android_device_meizu_meilan2 copied to clipboard
[CM-12] Full device encryption is not working
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.