summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorMohammad Samiul Islam <samiul@google.com>2020-08-12 15:15:48 +0100
committerMohammad Samiul Islam <samiul@google.com>2020-08-12 18:19:58 +0100
commita4cb493bdb69488a9b94aae627545aa91db55083 (patch)
tree29c15bf9c2c107264e7f19e5aea75224262bba3e /rs/java/android/renderscript/ProgramStore.java
parent501e75e878f91413f828f19a362e68d84ccc7e7e (diff)
Improve logging for why a staged session was reverted
mFailureReason gets populated with actual reason when we try to resume the staged session in checkpointing mode. But, if the device has a native crash due to which the device reboots even before we attempt to "resume" staged session, then it will never get populated. As such, during boot loops that occur earlier than "resume" of staged session, we end up logging nothing. In this CL, we improve on the scenario by falling back to using mNativeFailureReason if mFailureReason is empty. But this only works if our staged session contains APEX package in it. For apk-only staged sessions, we will still be logging blanks. Bug: 163787002 Test: atest ApexRollbackTests#testReasonForRevertIsLoggedDuringBootloop Change-Id: I5cd1733d66aa0b30855803b95eb9818dc81aa0d7
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions