Merge "Do not show exception stack trace when no child profile key" into nyc-dev
This commit is contained in:
@@ -896,16 +896,14 @@ public class LockSettingsService extends ILockSettings.Stub {
|
|||||||
// get credential from keystore when managed profile has unified lock
|
// get credential from keystore when managed profile has unified lock
|
||||||
try {
|
try {
|
||||||
savedCredential = getDecryptedPasswordForTiedProfile(userId);
|
savedCredential = getDecryptedPasswordForTiedProfile(userId);
|
||||||
|
} catch (FileNotFoundException e) {
|
||||||
|
Slog.i(TAG, "Child profile key not found");
|
||||||
} catch (UnrecoverableKeyException | InvalidKeyException | KeyStoreException
|
} catch (UnrecoverableKeyException | InvalidKeyException | KeyStoreException
|
||||||
| NoSuchAlgorithmException | NoSuchPaddingException
|
| NoSuchAlgorithmException | NoSuchPaddingException
|
||||||
| InvalidAlgorithmParameterException | IllegalBlockSizeException
|
| InvalidAlgorithmParameterException | IllegalBlockSizeException
|
||||||
| BadPaddingException | CertificateException | IOException e) {
|
| 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 {
|
} else {
|
||||||
if (currentHandle == null) {
|
if (currentHandle == null) {
|
||||||
if (savedCredential != null) {
|
if (savedCredential != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user