summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Ricky Wai <rickywai@google.com> 2016-05-04 10:47:53 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2016-05-04 10:47:55 +0000
commit3423a513e7c0c0a0a7ae0fada1fc684c990c0aa2 (patch)
tree1a8e5e86a3c470202c3349e5727c15908987d1dd
parent92d0e9a4ede2c1b8132d9d980d1e51b2e5558ffb (diff)
parentde3a068af63abc0f4173d4c4b2d8530bae6dd203 (diff)
Merge "Do not show exception stack trace when no child profile key" into nyc-dev
-rw-r--r--services/core/java/com/android/server/LockSettingsService.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/services/core/java/com/android/server/LockSettingsService.java b/services/core/java/com/android/server/LockSettingsService.java
index cbf7e8038b5b..434464c90a09 100644
--- a/services/core/java/com/android/server/LockSettingsService.java
+++ b/services/core/java/com/android/server/LockSettingsService.java
@@ -896,15 +896,13 @@ public class LockSettingsService extends ILockSettings.Stub {
// get credential from keystore when managed profile has unified lock
try {
savedCredential = getDecryptedPasswordForTiedProfile(userId);
+ } catch (FileNotFoundException e) {
+ Slog.i(TAG, "Child profile key not found");
} catch (UnrecoverableKeyException | InvalidKeyException | KeyStoreException
| NoSuchAlgorithmException | NoSuchPaddingException
| InvalidAlgorithmParameterException | IllegalBlockSizeException
| BadPaddingException | CertificateException | IOException e) {
- if (e instanceof FileNotFoundException) {
- Slog.i(TAG, "Child profile key not found");
- } else {
- Slog.e(TAG, "Failed to decrypt child profile key", e);
- }
+ Slog.e(TAG, "Failed to decrypt child profile key", e);
}
} else {
if (currentHandle == null) {