Skip to content

Fix SecurityException when opening downloaded files in other app#13391

Merged
TobiGr merged 1 commit intoTeamNewPipe:devfrom
TobiGr:fix/downloaderPermission
Apr 14, 2026
Merged

Fix SecurityException when opening downloaded files in other app#13391
TobiGr merged 1 commit intoTeamNewPipe:devfrom
TobiGr:fix/downloaderPermission

Conversation

@TobiGr
Copy link
Copy Markdown
Contributor

@TobiGr TobiGr commented Apr 1, 2026

What is it?

  • Bugfix (user facing)

Description of the changes in your PR

FLAG_GRANT_PREFIX_URI_PERMISSION was only added to viewIntent. The flag was not passed to the intent that wraps the actual view intent for the app chooser. Some app chooser crashed because of this. This has been fixed.

Fixes the following issue(s)

APK testing

The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR. You can find more info and a video demonstration on this wiki page.

Due diligence

The flag was not passed to the intent that wraps the actual view intent for the app chooser.
@TobiGr TobiGr added bug Issue is related to a bug downloader Issue is related to the downloader labels Apr 1, 2026
@github-actions github-actions Bot added the size/small PRs with less than 50 changed lines label Apr 1, 2026
Copy link
Copy Markdown
Member

@theimpulson theimpulson left a comment

Choose a reason for hiding this comment

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

LGTM

@TobiGr TobiGr merged commit 3e297fd into TeamNewPipe:dev Apr 14, 2026
7 checks passed
@TobiGr TobiGr deleted the fix/downloaderPermission branch April 20, 2026 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Issue is related to a bug downloader Issue is related to the downloader size/small PRs with less than 50 changed lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Downloader] Cannot open downloaded file - SecurityException: does not have permission to content

2 participants