Merge "StorageManagerService: don't ignore failures to prepare user storage"

This commit is contained in:
Eric Biggers
2022-01-25 18:47:44 +00:00
committed by Gerrit Code Review

View File

@@ -3620,8 +3620,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);
}
}