element-hq / element-hq/element-android

File chooser lacks access to app data

Open
#3,504 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
3.7k
Forks
917
PR merge metrics
No merged PRs in 30d

Description

#### Describe the bug
I need to access certain files created by another app, in this case GPS tracks,
which I intend to send with Element. This used to be possible but after a recent
update (both of Element and LineageOS, can’t isolate which) the file choose
will no longer display the ``data`` directory.

The files are there without a doubt and the directory is accessible:

$ adb ls /sdcard/Android/data |wc -l
31
$ adb shell stat /sdcard/Android/data
File: /sdcard/Android/data
Size: 4096 Blocks: 16 IO Blocks: 512 directory
Device: 4bh/75d Inode: 245775 Links: 30 Device type: 0,0
Access: (0771/drwxrwx--x) Uid: ( 0/ root) Gid: ( 1015/sdcard_rw)
Access: 2021-01-05 23:23:26.480707969 +0100
Modify: 2021-06-14 01:23:19.044236329 +0200
Change: 2021-06-14 01:23:19.044236329 +0200

However in the file dialog all I see is this: https://i.imgur.com/wD39OYw.png
(“hidden files” are supposed to be shown).

#### To Reproduce

1. Open the send file dialog.
2. Navigate to ``/sdcard/Android/``.
3. The ``data`` subdirectory is not listed.

#### Expected behavior
The ``data`` dir should be shown and possible to enter, same for its
subdirectories. This used to work, I’ve been sending these files regularly in
the past.

#### Screenshots
https://i.imgur.com/wD39OYw.png

#### Smartphone (please complete the following information):
- Device: [e.g. Samsung S6]
- OS: [e.g. Android 6.0]

#### Additional context
- Element v1.1.9 from F-Droid.
- LineageOS 18 with MicroG.
- Homeserver: ``matrix.org``.

Could this be a permissions error? Element has the “Allow access to media only”
perms set but not “Allowed to manage all files” like most other apps. I can’t
seem to find a way of fixing the permissions manually but then I’m not overly
familiar with Android.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.