Make Convert To File Encryption work

Actually call to recovery from ConvertToFBE
Adding credential check
Gray out Convert option when converted

Change-Id: Ic98929ff49733d182b529012e58870156f40679a
This commit is contained in:
Paul Lawrence
2015-11-04 05:09:02 -08:00
parent 85b2d55d36
commit 0e1a46cf6c
6 changed files with 103 additions and 50 deletions

View File

@@ -2009,14 +2009,17 @@
<!-- Option to convert userdata to file encryption on Nexus M devices -->
<string name="convert_to_file_encryption">Convert to file encryption</string>
<string name="convert_to_file_encryption_enabled">Convert ...</string>
<string name="convert_to_file_encryption_enabled">Convert\u2026</string>
<string name="convert_to_file_encryption_done">Already file encrypted</string>
<!-- Title used on dialog with final prompt for converting to file encryption -->
<string name="title_convert_fbe">Converting to file based encryption</string>
<!-- Warning displayed on dialog with final prompt for converting to file encryption -->
<string name="convert_to_fbe_warning">
Convert data partition to file based encryption.\n
!!Warning!! This will erase all your data.\n
This feature is alpha, and may not work correctly.\n
Press \'Wipe and convert...\' to continue.</string>
<string name="button_convert_fbe">Wipe and convert...</string>
Press \'Wipe and convert\u2026\' to continue.</string>
<string name="button_convert_fbe">Wipe and convert\u2026</string>
<!-- Sound & display settings screen, setting option name to change screen timeout -->
<string name="screen_timeout">Sleep</string>