Log RemoteExceptions from RollbackManager.

It is entirely possible to get a RemoteException from RollbackManager,
even if it is in the same process. Remove the comments that suggest
otherwise and log the failures instead.

Bug: 136461171
Test: atest CtsRollbackManagerHostTestCases:com.android.cts.rollback.host.RollbackManagerHostTest#testApexAndApkStagedRollback
Change-Id: I8e7936ada5c19b53be4e3e8dc5ad7165d216d8ac
This commit is contained in:
Richard Uhler
2019-09-11 10:43:24 +01:00
parent b2de76fecb
commit 7c81c3aa93

View File

@@ -443,7 +443,8 @@ public class StagingManager {
try {
rm.notifyStagedApkSession(originalSession.sessionId, apkSession.sessionId);
} catch (RemoteException re) {
// Cannot happen, the rollback manager is in the same process.
Slog.e(TAG, "Failed to notifyStagedApkSession for session: "
+ originalSession.sessionId, re);
}
}
@@ -856,7 +857,8 @@ public class StagingManager {
+ session.sessionId);
}
} catch (RemoteException re) {
// Cannot happen, the rollback manager is in the same process.
Slog.e(TAG, "Failed to notifyStagedSession for session: "
+ session.sessionId, re);
}
}