Report installation failures
Change-Id: I5e11db1e6e338a510b3c1c7d16f8c085d874a9db
This commit is contained in:
@@ -141,6 +141,9 @@ class ABUpdateInstaller {
|
||||
File file = mUpdaterController.getActualUpdate(mDownloadId).getFile();
|
||||
if (!file.exists()) {
|
||||
Log.e(TAG, "The given update doesn't exist");
|
||||
mUpdaterController.getActualUpdate(downloadId)
|
||||
.setStatus(UpdateStatus.INSTALLATION_FAILED);
|
||||
mUpdaterController.notifyUpdateChange(downloadId);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -175,6 +178,9 @@ class ABUpdateInstaller {
|
||||
mUpdateEngine = new UpdateEngine();
|
||||
if (!mUpdateEngine.bind(mUpdateEngineCallback)) {
|
||||
Log.e(TAG, "Could not bind");
|
||||
mUpdaterController.getActualUpdate(downloadId)
|
||||
.setStatus(UpdateStatus.INSTALLATION_FAILED);
|
||||
mUpdaterController.notifyUpdateChange(downloadId);
|
||||
return false;
|
||||
}
|
||||
String zipFileUri = "file://" + file.getAbsolutePath();
|
||||
|
Reference in New Issue
Block a user