Log at debug level when things are OK

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

Bug: 151077642
Bug: 174442693
Change-Id: I07b06cd6f7cff4529cba46aa4e3dcf7b0ee8dfa5
Test: No
Merged-In: I027250bcae132d9be9c16690478adb41467bfec4
This commit is contained in:
Corina Grigoras
2020-12-31 11:17:15 +00:00
parent 9f2c15890c
commit bf2043a138

View File

@@ -3298,6 +3298,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;