From 0e1a46cf6cbecc2bd6fb6cf6661e61859b243e76 Mon Sep 17 00:00:00 2001 From: Paul Lawrence Date: Wed, 4 Nov 2015 05:09:02 -0800 Subject: [PATCH] Make Convert To File Encryption work Actually call to recovery from ConvertToFBE Adding credential check Gray out Convert option when converted Change-Id: Ic98929ff49733d182b529012e58870156f40679a --- res/values/strings.xml | 9 +- res/xml/development_prefs.xml | 2 +- .../settings/ChooseLockSettingsHelper.java | 2 +- .../android/settings/DevelopmentSettings.java | 7 ++ .../settings/applications/ConvertToFBE.java | 45 ---------- .../settings/applications/ConvertToFbe.java | 88 +++++++++++++++++++ 6 files changed, 103 insertions(+), 50 deletions(-) delete mode 100644 src/com/android/settings/applications/ConvertToFBE.java create mode 100644 src/com/android/settings/applications/ConvertToFbe.java diff --git a/res/values/strings.xml b/res/values/strings.xml index df4d7a4dda6..9dcff21767b 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -2009,14 +2009,17 @@ Convert to file encryption - Convert ... + Convert\u2026 Already file encrypted + + Converting to file based encryption + 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. - Wipe and convert... + Press \'Wipe and convert\u2026\' to continue. + Wipe and convert\u2026 Sleep diff --git a/res/xml/development_prefs.xml b/res/xml/development_prefs.xml index 1770f13c452..84c3cbfaaae 100644 --- a/res/xml/development_prefs.xml +++ b/res/xml/development_prefs.xml @@ -71,7 +71,7 @@ android:key="convert_to_file_encryption" android:title="@string/convert_to_file_encryption" android:summary="@string/convert_to_file_encryption_enabled" - android:fragment="com.android.settings.applications.ConvertToFBE" /> + android:fragment="com.android.settings.applications.ConvertToFbe" />