Merge "StorageManagerService: don't ignore failures to prepare user storage" am: 362f5eaf81 am: e4b491a38a am: 9bb654855f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1959519 Change-Id: I09fbe029289f6523ec665ee5e55ec3642d551a8c
This commit is contained in:
@@ -3620,8 +3620,12 @@ class StorageManagerService extends IStorageManager.Stub
|
|||||||
mInstaller.tryMountDataMirror(volumeUuid);
|
mInstaller.tryMountDataMirror(volumeUuid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (RemoteException | Installer.InstallerException e) {
|
||||||
Slog.wtf(TAG, 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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user