[automerge] StorageManagerService: don't ignore failures to prepare user storage 2p: 567e7a0476

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17416116

Bug: 164488924
Bug: 224585613
Change-Id: I98b32ecd54ad4e2c9dcf7ddba2c836726e5c9995
Merged-In: I9a38ab5cca1ae9c9ebff81fca04615fd83ebe4b2
This commit is contained in:
Eric Biggers
2022-04-12 02:52:06 +00:00
committed by Presubmit Automerger Backend

View File

@@ -3400,8 +3400,12 @@ class StorageManagerService extends IStorageManager.Stub
mInstaller.tryMountDataMirror(volumeUuid);
}
}
} catch (Exception e) {
} catch (RemoteException | Installer.InstallerException e) {
Slog.wtf(TAG, e);
// Make sure to re-throw this exception; we must not ignore failure
// to prepare the user storage as it could indicate that encryption
// wasn't successfully set up.
throw new RuntimeException(e);
}
}