https://bugs.documentfoundation.org/show_bug.cgi?id=164082

Michael Weghorn <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEEDINFO
                 CC|                            |[email protected]

--- Comment #4 from Michael Weghorn <[email protected]> ---
(In reply to Marina Latini (SUSE) from comment #2)
> I can't reproduce on my phone that is currently on Android 14, but somehow
> it seems not possible to remove the permissions to read files.

Current Android versions generally don't allow direct storage/file access any
more, so the permission is simply ignored/not available there.

That's fine because the app shouldn't need direct storage access since it's
using the standard Android documents provider API since

    commit a23bd42e9b2f6401c710ac95afcc3aa8f360d65c
    Author: Michael Weghorn
    Date:   Tue Apr 6 14:26:06 2021 +0200

        android: Drop custom file abstraction + UI

and (for PDF export): 

    commit 9ebcb80e2e4335fca1e137d015fe4d84631e282a
    Author: Michael Weghorn
    Date:   Thu Apr 15 11:22:46 2021 +0200

        android: Ask where to save PDF file on export

(Thinking about it, dropping the permission from the Android manifest might
therefore make sense as well.)

(In reply to Samo from comment #3)
> In Settings on my phone, I see the app has a "Storage" permission (which is
> the only permission of the app), which I can revoke, as I mentioned in the
> report.

The bug description mentions Android 7.0, where storage permission was still
handled less strictly. However, even there, my expectation would be that the
storage permission shouldn't be needed *if* file managers properly pass the
file to the app (using a content:// URL, not a file:// URI).

I just tested this in an AVD (Android Virtual Device) running Android 7.0 and
had no issue there, even with the permission not granted. I was using "Material
Files" [1] as a file manager (the first app showing up when searching for "file
manager" in F-Droid, as the AVD doesn't have a stock file manager).

What file manager are you using? Does it work with others, e.g. the
above-mentioned one?

Version: 24.2.7.2
Build ID: ee3885777aa7
Android 7.0 in an x86 AVD

[1] https://f-droid.org/en/packages/me.zhanghai.android.files/

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to