[Android] Add exit code constants and ProcessExitInfo data model - #5453
Open
IvanBM18 wants to merge 7 commits into
Open
[Android] Add exit code constants and ProcessExitInfo data model#5453IvanBM18 wants to merge 7 commits into
IvanBM18 wants to merge 7 commits into
Conversation
IvanBM18
force-pushed
the
feature/android-exit-code-constants
branch
2 times, most recently
from
September 3, 2026 21:26
1f7ff78 to
a483ef9
Compare
IvanBM18
force-pushed
the
feature/android-exit-code-constants
branch
from
September 3, 2026 21:50
a483ef9 to
8721622
Compare
Xeicker
reviewed
Sep 3, 2026
Xeicker
approved these changes
Sep 4, 2026
dylanjew
reviewed
Sep 4, 2026
IvanBM18
force-pushed
the
feature/android-exit-code-constants
branch
from
September 4, 2026 22:30
d1dcb71 to
a6a04c2
Compare
dylanjew
reviewed
Sep 8, 2026
dylanjew
left a comment
Collaborator
There was a problem hiding this comment.
LGTM! please confirm with GOSST whether this will affect the android Clusterfuzz instance and get approval if necessary
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug: b/553141628
Overview
Since Android API level 30 (and all apps targeting Android 11+), Android introduced
ApplicationExitInfoto track process exit reasons and historical diagnostic metadata viadumpsys activity exit-info.Previously, testcase execution using
am startalmost 99% of the time returned success exit code 0 even when an application process crashed or failed silently. To accurately track process termination reasons and status metadata fromdumpsys activity exit-info, this PR defines the structured exit code constants (ExitReason,ExitStatus) and theProcessExitInfodata model.Learn more:
• https://developer.android.com/reference/android/app/ApplicationExitInfo
Changes
src/clusterfuzz/_internal/platforms/android/constants.py: AddedExitReasonandExitStatusconstant definitions.src/clusterfuzz/_internal/platforms/android/util.py: DefinedProcessExitInfodataclass fordumpsys activity exit-infoparsing.Tests performed
PR stack
masterfeature/android-exit-code-constants👈feature/android-exit-code-corefeature/android-exit-code-process-handlerfeature/android-bad-build-check