Don't show a pattern-specific prompt at encryption time.

Bug: 18054895
Change-Id: I8a029142085b9e7f59efc8e313b6438734d5a1bb
This commit is contained in:
Paul Crowley
2014-11-04 22:51:36 +00:00
parent 508a693c9a
commit 01fbd9fd3c
5 changed files with 5 additions and 17 deletions

View File

@@ -2466,8 +2466,6 @@
<string name="master_clear_final_desc">Erase all your personal information and downloaded apps? You can\'t reverse this action!</string> <string name="master_clear_final_desc">Erase all your personal information and downloaded apps? You can\'t reverse this action!</string>
<!-- SD card & phone storage settings screen, button on screen after user selects Reset phone button --> <!-- SD card & phone storage settings screen, button on screen after user selects Reset phone button -->
<string name="master_clear_final_button_text">Erase everything</string> <string name="master_clear_final_button_text">Erase everything</string>
<!-- Message to draw an unlock pattern before clearing the device -->
<string name="master_clear_gesture_prompt">Draw your unlock pattern</string>
<!-- Explanation of drawing unlock pattern to reset phone --> <!-- Explanation of drawing unlock pattern to reset phone -->
<string name="master_clear_gesture_explanation">You need to draw your unlock pattern to confirm a factory data reset.</string> <string name="master_clear_gesture_explanation">You need to draw your unlock pattern to confirm a factory data reset.</string>
<!-- Master clear failed message --> <!-- Master clear failed message -->
@@ -2504,8 +2502,6 @@
<string name="media_format_final_desc" product="default">Erase the SD card, deleting all files stored there? You can\'t reverse this action!</string> <string name="media_format_final_desc" product="default">Erase the SD card, deleting all files stored there? You can\'t reverse this action!</string>
<!-- SD card & phone storage settings screen, button on screen after user selects Format media button --> <!-- SD card & phone storage settings screen, button on screen after user selects Format media button -->
<string name="media_format_final_button_text">Erase everything</string> <string name="media_format_final_button_text">Erase everything</string>
<!-- Message to draw an unlock pattern before clearing the device -->
<string name="media_format_gesture_prompt">Draw your unlock pattern</string>
<!-- Explanation of drawing unlock pattern to format card [CHAR LIMIT=NONE] --> <!-- Explanation of drawing unlock pattern to format card [CHAR LIMIT=NONE] -->
<string name="media_format_gesture_explanation" product="nosdcard">You need to draw your unlock pattern to confirm that you want to erase the USB storage.</string> <string name="media_format_gesture_explanation" product="nosdcard">You need to draw your unlock pattern to confirm that you want to erase the USB storage.</string>
<!-- Explanation of drawing unlock pattern to format card [CHAR LIMIT=NONE] --> <!-- Explanation of drawing unlock pattern to format card [CHAR LIMIT=NONE] -->
@@ -4326,8 +4322,6 @@
<!-- Error message for users that aren't allowed to see or modify credentials [CHAR LIMIT=none] --> <!-- Error message for users that aren't allowed to see or modify credentials [CHAR LIMIT=none] -->
<string name="credentials_settings_not_available">Credentials are not available for this user</string> <string name="credentials_settings_not_available">Credentials are not available for this user</string>
<!-- Message to draw an unlock pattern when installing credentials -->
<string name="credentials_install_gesture_prompt">Draw your unlock pattern</string>
<!-- Explanation of drawing unlock pattern to install credentials --> <!-- Explanation of drawing unlock pattern to install credentials -->
<string name="credentials_install_gesture_explanation">You need to draw your unlock pattern to confirm credential installation.</string> <string name="credentials_install_gesture_explanation">You need to draw your unlock pattern to confirm credential installation.</string>

View File

@@ -376,8 +376,7 @@ public final class CredentialStorage extends Activity {
private boolean confirmKeyGuard() { private boolean confirmKeyGuard() {
Resources res = getResources(); Resources res = getResources();
boolean launched = new ChooseLockSettingsHelper(this) boolean launched = new ChooseLockSettingsHelper(this)
.launchConfirmationActivity(CONFIRM_KEY_GUARD_REQUEST, .launchConfirmationActivity(CONFIRM_KEY_GUARD_REQUEST, null,
res.getText(R.string.credentials_install_gesture_prompt),
res.getText(R.string.credentials_install_gesture_explanation), res.getText(R.string.credentials_install_gesture_explanation),
true); true);
return launched; return launched;

View File

@@ -16,8 +16,6 @@
package com.android.settings; package com.android.settings;
import com.android.internal.widget.LockPatternUtils;
import android.app.Activity; import android.app.Activity;
import android.app.AlertDialog; import android.app.AlertDialog;
import android.app.Fragment; import android.app.Fragment;
@@ -81,7 +79,7 @@ public class CryptKeeperSettings extends Fragment {
* is no keyguard available, we prompt the user to set a password. * is no keyguard available, we prompt the user to set a password.
*/ */
private Button.OnClickListener mInitiateListener = new Button.OnClickListener() { private Button.OnClickListener mInitiateListener = new Button.OnClickListener() {
@Override
public void onClick(View v) { public void onClick(View v) {
if (!runKeyguardConfirmation(KEYGUARD_REQUEST)) { if (!runKeyguardConfirmation(KEYGUARD_REQUEST)) {
// TODO replace (or follow) this dialog with an explicit launch into password UI // TODO replace (or follow) this dialog with an explicit launch into password UI
@@ -162,8 +160,7 @@ public class CryptKeeperSettings extends Fragment {
return true; return true;
} }
return helper.launchConfirmationActivity(request, return helper.launchConfirmationActivity(request, null,
res.getText(R.string.master_clear_gesture_prompt),
res.getText(R.string.crypt_keeper_confirm_encrypt), res.getText(R.string.crypt_keeper_confirm_encrypt),
true); true);
} }

View File

@@ -72,8 +72,7 @@ public class MasterClear extends Fragment {
private boolean runKeyguardConfirmation(int request) { private boolean runKeyguardConfirmation(int request) {
Resources res = getActivity().getResources(); Resources res = getActivity().getResources();
return new ChooseLockSettingsHelper(getActivity(), this) return new ChooseLockSettingsHelper(getActivity(), this)
.launchConfirmationActivity(request, .launchConfirmationActivity(request, null,
res.getText(R.string.master_clear_gesture_prompt),
res.getText(R.string.master_clear_gesture_explanation)); res.getText(R.string.master_clear_gesture_explanation));
} }

View File

@@ -73,8 +73,7 @@ public class MediaFormat extends Activity {
*/ */
private boolean runKeyguardConfirmation(int request) { private boolean runKeyguardConfirmation(int request) {
return new ChooseLockSettingsHelper(this) return new ChooseLockSettingsHelper(this)
.launchConfirmationActivity(request, .launchConfirmationActivity(request, null,
getText(R.string.media_format_gesture_prompt),
getText(R.string.media_format_gesture_explanation)); getText(R.string.media_format_gesture_explanation));
} }