Merge "Store native failure reason in session failure message" into rvc-dev am: 448b3603e8
Change-Id: I1c4ba0bfedab14257e67bf94200d80007673a756
This commit is contained in:
@@ -523,8 +523,12 @@ public class StagingManager {
|
|||||||
// TODO(b/146343545): Persist failure reason across checkpoint reboot
|
// TODO(b/146343545): Persist failure reason across checkpoint reboot
|
||||||
Slog.d(TAG, "Reverting back to safe state. Marking " + session.sessionId
|
Slog.d(TAG, "Reverting back to safe state. Marking " + session.sessionId
|
||||||
+ " as failed.");
|
+ " as failed.");
|
||||||
session.setStagedSessionFailed(SessionInfo.STAGED_SESSION_UNKNOWN,
|
String errorMsg = "Reverting back to safe state";
|
||||||
"Reverting back to safe state");
|
if (!TextUtils.isEmpty(mNativeFailureReason)) {
|
||||||
|
errorMsg = "Entered fs-rollback mode and reverted session due to crashing "
|
||||||
|
+ "native process: " + mNativeFailureReason;
|
||||||
|
}
|
||||||
|
session.setStagedSessionFailed(SessionInfo.STAGED_SESSION_UNKNOWN, errorMsg);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
@@ -553,6 +557,10 @@ public class StagingManager {
|
|||||||
if (isApexSessionFailed(apexSessionInfo)) {
|
if (isApexSessionFailed(apexSessionInfo)) {
|
||||||
String errorMsg = "APEX activation failed. Check logcat messages from apexd for "
|
String errorMsg = "APEX activation failed. Check logcat messages from apexd for "
|
||||||
+ "more information.";
|
+ "more information.";
|
||||||
|
if (!TextUtils.isEmpty(mNativeFailureReason)) {
|
||||||
|
errorMsg = "Session reverted due to crashing native process: "
|
||||||
|
+ mNativeFailureReason;
|
||||||
|
}
|
||||||
session.setStagedSessionFailed(SessionInfo.STAGED_SESSION_ACTIVATION_FAILED,
|
session.setStagedSessionFailed(SessionInfo.STAGED_SESSION_ACTIVATION_FAILED,
|
||||||
errorMsg);
|
errorMsg);
|
||||||
abortCheckpoint(errorMsg);
|
abortCheckpoint(errorMsg);
|
||||||
|
|||||||
Reference in New Issue
Block a user