Log at debug level when things are OK

StorageManagerService: android.os.ServiceSpecificException is expected if the user has not unlocked the device.

Bug: 151077642
Change-Id: I027250bcae132d9be9c16690478adb41467bfec4
Test: No
This commit is contained in:
Corina Grigoras
2020-11-26 17:32:43 +00:00
parent 902fa1c0b9
commit ee5408b38d

View File

@@ -3213,6 +3213,9 @@ class StorageManagerService extends IStorageManager.Stub
try {
mVold.unlockUserKey(userId, serialNumber, encodeBytes(token),
encodeBytes(secret));
} catch (ServiceSpecificException sse) {
Slog.d(TAG, "Expected if the user has not unlocked the device.", sse);
return;
} catch (Exception e) {
Slog.wtf(TAG, e);
return;