Merge changes from topic "unencrypted-dirs-s" into sc-mainline-prod
* changes:
[automerge] StorageManagerService: don't ignore failures to prepare user storage 2p: 567e7a0476
StorageManagerService: don't ignore failures to prepare user storage
This commit is contained in:
committed by
Android (Google) Code Review
commit
ff4461ae55
@@ -3397,8 +3397,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