Skip to content

aosp: Turn QUIC off by default - #13354

Merged
andrewsavage1 merged 1 commit into
youtube:mainfrom
ogarai:yts/fix_aosp_disable_quic_by_default
Oct 17, 2026
Merged

andrewsavage1 merged 1 commit into
youtube:mainfrom
ogarai:yts/fix_aosp_disable_quic_by_default

Conversation

@ogarai

@ogarai ogarai commented Oct 14, 2026

Copy link
Copy Markdown
Collaborator

Android TV turns QUIC off by default, and AOSP didn't. With QUIC on,
downloads that pause mid-transfer get dropped, and the Playback
Analysis yts tests fail with a network error.

Test: With --disable-quic, the 12 Playback Analysis yts tests that
failed with a network error pass.

Bug: 532158865

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates MainActivity.java to prepend default command-line arguments, specifically disabling QUIC via JavaSwitches.DEFAULT_DISABLE_QUIC, to the arguments list during a cold start. This is implemented by introducing a new helper method getArgsWithDefaults that wraps the existing arguments. There are no review comments, and the changes look correct, so I have no feedback to provide.

@github-actions

github-actions Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor
Context State Description
CI / All Pass ✅ PASS All checks passed
CI / android ✅ PASS Passed
CI / evergreen ✅ PASS Passed
CI / linux ✅ PASS Passed
CI / tvos ✅ PASS Passed
@github-actions

Copy link
Copy Markdown
Contributor

🤖 Gemini Suggested Commit Message


android: Disable QUIC by default for AOSP

Android TV turns QUIC off by default, but the AOSP target did not.
With QUIC enabled, downloads that pause mid-transfer are dropped,
causing Playback Analysis YTS tests to fail with network errors.
Disabling QUIC by default aligns AOSP with Android TV and resolves
these failures.

Bug: 532158865

💡 Pro Tips for a Better Commit Message:

  1. Influence the Result: Want to change the output? You can write custom prompts or instructions directly in the Pull Request description. The model uses that text to generate the message.
  2. Re-run the Generator: Post a comment with: /generate-commit-message
@ogarai ogarai added the runtest Trigger presubmit workflows label Oct 15, 2026
@github-actions github-actions Bot removed the runtest Trigger presubmit workflows label Oct 15, 2026
Android TV turns QUIC off by default, and AOSP didn't. With QUIC on,
downloads that pause mid-transfer get dropped, and the Playback
Analysis yts tests fail with a network error.

Test: With --disable-quic, the 12 Playback Analysis yts tests that
failed with a network error pass.

Bug: 532158865
@ogarai
ogarai force-pushed the yts/fix_aosp_disable_quic_by_default branch from 1c06680 to 39a97ae Compare October 15, 2026 17:50
@ogarai
ogarai requested a review from andrewsavage1 October 15, 2026 18:51
@andrewsavage1
andrewsavage1 enabled auto-merge (squash) October 15, 2026 20:03
@andrewsavage1
andrewsavage1 merged commit 18fef33 into youtube:main Oct 17, 2026
1213 of 1235 checks passed
kjyoun added a commit that referenced this pull request Oct 19, 2026
#13227 moved Android's default command-line switches from Java
(`CommandLineOverrideHelper`) into C++
(`cobalt_switch_defaults_android.cc`).
This PR does the same for AOSP: #13354 added the `--disable-quic`
default in
the AOSP `MainActivity` (Java), and this PR moves it into
`cobalt_switch_defaults_starboard.cc`.

- Guarded by `BUILDFLAG(IS_ANDROID)`, so among Starboard platforms it
only
  applies to AOSP. Linux and RDK are unchanged.
- No behavior change on AOSP: QUIC stays off by default.
- Removes the AOSP dependency on `JavaSwitches.DEFAULT_DISABLE_QUIC`,
which
lets Android TV move its `--disable-quic` default into C++ as well
(#13330).

Bug: 532158865
Bug: 571217515
briantting pushed a commit that referenced this pull request Oct 20, 2026
Refer to original PR: #13354

Android TV turns QUIC off by default, and AOSP didn't. With QUIC on,
downloads that pause mid-transfer get dropped, and the Playback
Analysis yts tests fail with a network error.

Test: With --disable-quic, the 12 Playback Analysis yts tests that
failed with a network error pass.

Bug: 532158865

(cherry picked from commit 18fef33)
briantting pushed a commit that referenced this pull request Oct 20, 2026
… C++ layer

Refer to original PR: #13468

#13227 moved Android's default command-line switches from Java
(`CommandLineOverrideHelper`) into C++
(`cobalt_switch_defaults_android.cc`).
This PR does the same for AOSP: #13354 added the `--disable-quic`
default in
the AOSP `MainActivity` (Java), and this PR moves it into
`cobalt_switch_defaults_starboard.cc`.

- Guarded by `BUILDFLAG(IS_ANDROID)`, so among Starboard platforms it
only
  applies to AOSP. Linux and RDK are unchanged.
- No behavior change on AOSP: QUIC stays off by default.
- Removes the AOSP dependency on `JavaSwitches.DEFAULT_DISABLE_QUIC`,
which
lets Android TV move its `--disable-quic` default into C++ as well
(#13330).

Bug: 532158865
Bug: 571217515

(cherry picked from commit ae8f0c2)
briantting pushed a commit that referenced this pull request Oct 20, 2026
Refer to original PR: #13354

Android TV turns QUIC off by default, and AOSP didn't. With QUIC on,
downloads that pause mid-transfer get dropped, and the Playback
Analysis yts tests fail with a network error.

Test: With --disable-quic, the 12 Playback Analysis yts tests that
failed with a network error pass.

Bug: 532158865

(cherry picked from commit 18fef33)
briantting pushed a commit that referenced this pull request Oct 20, 2026
… C++ layer

Refer to original PR: #13468

#13227 moved Android's default command-line switches from Java
(`CommandLineOverrideHelper`) into C++
(`cobalt_switch_defaults_android.cc`).
This PR does the same for AOSP: #13354 added the `--disable-quic`
default in
the AOSP `MainActivity` (Java), and this PR moves it into
`cobalt_switch_defaults_starboard.cc`.

- Guarded by `BUILDFLAG(IS_ANDROID)`, so among Starboard platforms it
only
  applies to AOSP. Linux and RDK are unchanged.
- No behavior change on AOSP: QUIC stays off by default.
- Removes the AOSP dependency on `JavaSwitches.DEFAULT_DISABLE_QUIC`,
which
lets Android TV move its `--disable-quic` default into C++ as well
(#13330).

Bug: 532158865
Bug: 571217515

(cherry picked from commit ae8f0c2)
@ogarai
ogarai deleted the yts/fix_aosp_disable_quic_by_default branch November 4, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants