Skip to content

Adds support for --no-streaming flag in Android ASan jobs#5332

Merged
IvanBM18 merged 4 commits into
masterfrom
feature/android-asan-fix
Jun 18, 2026
Merged

Adds support for --no-streaming flag in Android ASan jobs#5332
IvanBM18 merged 4 commits into
masterfrom
feature/android-asan-fix

Conversation

@IvanBM18

@IvanBM18 IvanBM18 commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

Overview:

This PR ensures that Android APKs are installed using the --no-streaming flag during ASan fuzzing jobs. Modern Android versions default to streaming installation, which prevents the bundled wrap.sh script (responsible for setting up the ASan library environment) from triggering correctly. This change dynamically detects ASan environments and applies the --no-streaming workaround. We still left intact the legacy asan_device_setup.sh logic in case any other haiku fuzzer job depends on it

For more details for the wrap.sh script see the NDK doc and the ASan docs

Changes:

  • app.py: Updated the install method signature to accept and forward additional flags trough **kwargs.
  • device.py: Added a private helper to identify ASan jobs or device environments options, and to then pass the --no-streaming flag during installation.
  • Added new unit tests for this

@IvanBM18 IvanBM18 requested a review from a team as a code owner June 18, 2026 18:33
@IvanBM18 IvanBM18 force-pushed the feature/android-asan-fix branch from 56ff10f to 2935808 Compare June 18, 2026 18:37
@IvanBM18 IvanBM18 self-assigned this Jun 18, 2026

@Xeicker Xeicker left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than the nit LGTM

Comment thread src/clusterfuzz/_internal/platforms/android/device.py Outdated
@IvanBM18 IvanBM18 requested a review from javanlacerda June 18, 2026 19:50
@IvanBM18 IvanBM18 merged commit ebbec03 into master Jun 18, 2026
14 checks passed
@IvanBM18 IvanBM18 deleted the feature/android-asan-fix branch June 18, 2026 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants