From 6655e1b6f594af7e3d12e8dfdd976f7249abea75 Mon Sep 17 00:00:00 2001 From: Daniel U Date: Thu, 7 Apr 2016 19:18:26 +0100 Subject: [PATCH] Hint user that fingerprint cannot unlock FBE keys Show a hint text to user noting that pattern/PIN/password is required when decrypting the credential based storage when file based encryption is turned on. The hint text is the same as that of the device unlock screen after device reboot. Bug: 27964055 Change-Id: I0d5a493bab69eae5ce4742bd07d4851387863cac --- res/layout/confirm_lock_password_base.xml | 10 ++++++++-- res/layout/confirm_lock_pattern_base.xml | 10 ++++++++-- res/values/strings.xml | 7 +++++++ res/values/styles.xml | 5 +++++ .../ConfirmDeviceCredentialBaseFragment.java | 15 ++++++++++++++- src/com/android/settings/ConfirmLockPassword.java | 12 ++++++++++++ src/com/android/settings/ConfirmLockPattern.java | 7 +++++++ 7 files changed, 61 insertions(+), 5 deletions(-) diff --git a/res/layout/confirm_lock_password_base.xml b/res/layout/confirm_lock_password_base.xml index b104f0728d4..536617d2f95 100644 --- a/res/layout/confirm_lock_password_base.xml +++ b/res/layout/confirm_lock_password_base.xml @@ -59,9 +59,15 @@ android:layout_marginEnd="16dp" android:layout_marginTop="16dp"/> - + android:layout_weight="1" + android:singleLine="true" + android:ellipsize="marquee" + android:gravity="center"/> - + android:layout_weight="0.5" + android:singleLine="true" + android:ellipsize="marquee" + android:gravity="center"/> Enter your work password to continue + + Pattern required after device restarts + + PIN required after device restarts + + + Password required after device restarts diff --git a/res/values/styles.xml b/res/values/styles.xml index 45d2c1178a6..0eb566ce180 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -357,6 +357,11 @@ @color/warning + +