Project

General

Profile

Actions

Feature #717

open

Make downloading with an external app fallback to using Android's download manager

Added by Soren Stoutner over 1 year ago. Updated 3 months ago.

Status:
New
Priority:
3.x
Start date:
05/22/2021
Due date:
% Done:

0%

Estimated time:

Description

This way, if no custom external app is installed, most devices will still download the file.

Actions #1

Updated by Soren Stoutner over 1 year ago

  • Priority changed from 3.x to Next Release
Actions #2

Updated by Soren Stoutner about 1 year ago

Note that if it uses Android's download manager it will be possible to pass in the cookies (to handle downloads from websites that require logins) but it will still not be possible to pass in proxy information.

See https://www.stoutner.com/privacy-browser-3-8/.

Actions #3

Updated by Soren Stoutner about 1 year ago

At the same time this is implemented, it would probably be a good idea to update the description in the settings to explain the limitation.

Actions #4

Updated by Soren Stoutner 3 months ago

  • Priority changed from Next Release to 3.x

It turns out that almost every device has at least one other system app installed that can offer to download the file. My Pixel 5 has Google Chrome and Google Drive. My Samsung Galaxy Tab A7 has Google Chrome, Google Drive, and Samsung Internet. If these apps are completely disabled then Privacy Browser could detect that nothing is available and instead use the system download manager. However, I would consider this to be a very rare occurrence. For this feature to get much real-life use it would probably require an additional entry in the settings. I am inclined not to go that direction unless there are a significant number of users who request it.

Actions #5

Updated by Soren Stoutner 3 months ago

This feature could be implemented by including a modified version of the code that was removed in https://gitweb.stoutner.com/?p=PrivacyBrowserAndroid.git;a=commitdiff;h=8f7e9b7db429568e26f00bc2eef88402d722bec7.

It would need to use the SAF (Storage Access Framework) and the `setDestinationUri` method from https://developer.android.com/reference/android/app/DownloadManager.Request.

Actions #6

Updated by Soren Stoutner 3 months ago

The settings description has already been somewhat updated. It might not need any further modification.

Actions

Also available in: Atom PDF