NovaFusion / android_device_samsung_golden

Android 4.4+ device tree for i8190
37 stars 31 forks source link

Device encryption not working #18

Open Rosendoktor opened 10 years ago

Rosendoktor commented 10 years ago

Device encryption does not work with CM11 on Galaxy S3 Mini. Battery is charged > 80%, PIN/Password is set. After starting device encryption a green android appears, but nothing else happens. Hitting the "back" button leads back to to settings menu.

Rosendoktor commented 10 years ago

This may help:

Encryption can be triggered on the terminal with the command

vdc cryptfs enablecrypto <inplace|wipe>

If option "inplace" is used to preserve existing data in /data, encryption fails. This is also what happens if encryption is triggered via UI.

If option "wipe" is used, /data gets partitioned as a new dm-crypt volume. After reboot, device encryption is present.

Rosendoktor commented 10 years ago

This interface does not like braces...

The command is

vdc cryptfs enablecrypto inplace|wipe newpasswordhere

m-chojnacki commented 10 years ago

It's probably related to F2FS filesystem. Try to reformat your /data to ext4 However, I'll check this issue later. Thanks for very detailed report.

Rosendoktor commented 10 years ago

Hi Marcin, i think you're right. I remember I've seen some f2fs partition in the output of the "mount" command right after flashing, now after applying device encryption, /data is mounted as ext4. Maybe this should be documented somehow to not confuse people.

Thanks for the great work, I really enjoy kitkat on the S3 mini. ;)

uberspot commented 10 years ago

Just fyi i tried enabling encryption will all partitions being ext4 and it still doesn't work just like described above. Great rom btw :)

Rosendoktor commented 10 years ago

Hi Paul,

did you try the root shell commands I've posted?

This might work if you use ext4 on your /data partition (never tried):

vdc cryptfs enablecrypto inplace

This works like a charm for me, but wipes /data:

vdc cryptfs enablecrypto wipe

Cheers,

Robert

Am Dienstag, den 09.09.2014, 09:00 -0700 schrieb Paul Sarbinowski:

Just fyi i tried encryption will all partitions being ext4 and it still doesn't work just like described above. Great rom btw :)


Reply to this email directly or view it on GitHub: https://github.com/NovaFusion/android_device_samsung_golden/issues/18#issuecomment-54992484

Robert Senger robert.senger@microscopium.de PGP/GPG Public Key ID: 24E78B5E