Skip to content

fix(android): offer Ketch in browsers' "Download file with" chooser - #652

Merged
linroid merged 1 commit into
mainfrom
fix/android-download-chooser
Oct 29, 2026
Merged

linroid merged 1 commit into
mainfrom
fix/android-download-chooser

Conversation

@linroid

@linroid linroid commented Oct 29, 2026

Copy link
Copy Markdown
Owner

Fixes #651

Why

Browsers hand a direct file link over as an ACTION_VIEW of the http(s) URL with the file's MIME type, and the "Download file with" chooser lists the apps whose manifest takes one. Ketch registered magnet: links, .torrent files and shared text, but no such filter, so it was missing from the chooser while other download managers showed.

What

  • QuickAddActivity gets an ACTION_VIEW filter for http and https links with any MIME type (*/*), DEFAULT and BROWSABLE. A tapped web link carries no type and never matches a filter that requires one, so Ketch is not offered for opening web pages.
  • The activity offers such a link to the add sheet as LinkSource.OpenUrl and shows the sheet over the browser, as it does for shared links; other ACTION_VIEW links keep going to MainActivity.
  • AGENTS.md notes the behavior.

Verified

  • :app:android:compileDirectDebugKotlin and the manifest merge pass; the merged manifest carries the filter.
  • Not tried on a device: the chooser depends on the browser sending a typed VIEW intent, which is what the reporter's screenshot shows other download managers answering.

Browsers hand a direct file link over as an ACTION_VIEW of the http(s)
URL with the file's MIME type, and list the apps whose manifest takes
one. Ketch registered magnet links, .torrent files and shared text, but
no such filter, so it was missing from the chooser.

QuickAddActivity now takes http and https links viewed with any type
and shows the add sheet over the browser, as it does for shared links.
A tapped web link carries no type, so Ketch is never offered for pages.

Fixes #651
@linroid
linroid merged commit 7749ab4 into main Oct 29, 2026
12 checks passed
@linroid
linroid deleted the fix/android-download-chooser branch October 29, 2026 10:00
@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-29T10:01:42.518375Z 782f2e2 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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.

Android: Ketch is missing from the “Download file with” app chooser

1 participant