diff options
| author | 2016-05-04 10:47:53 +0000 | |
|---|---|---|
| committer | 2016-05-04 10:47:55 +0000 | |
| commit | 3423a513e7c0c0a0a7ae0fada1fc684c990c0aa2 (patch) | |
| tree | 1a8e5e86a3c470202c3349e5727c15908987d1dd | |
| parent | 92d0e9a4ede2c1b8132d9d980d1e51b2e5558ffb (diff) | |
| parent | de3a068af63abc0f4173d4c4b2d8530bae6dd203 (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.java | 8 |
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) { |