Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] SAF File picker does not exist on Android TV, Needs ability to use 3rd party file manager #881

Open
Handrail9 opened this issue Jul 20, 2024 · 2 comments

Comments

@Handrail9
Copy link

Handrail9 commented Jul 20, 2024

Description
A clear and concise description of what the bug is.
The setup can not be completed as you can not pick a directory to save backups. This is due to Android/Google TV lacking com.android.documentsui and/or com.google.android.documentsui.
Steps To Reproduce

  1. Install
  2. Grant permissions
  3. Can not select backup directory due to "You do not have an app that can do this"
  4. Can not procede

Expected behavior
Prompts to open third party file manager (Material Files, Fossify File Manager, Little File manager etc)

Screenshots
image

System Information(please complete the following information):

  • Device: Onn. YOC
  • Android Version: 12
  • ROM: Stock Rooted
  • App's Version: 8.3.6

Additional Notes

Installed from F-Droid
It appears other apps have implemented some sort of alternative picker
TeamNewPipe/NewPipe#7446
aniyomiorg/aniyomi#1271

@machiav3lli
Copy link
Member

Yeah, seems like Google/Android and the OEMs (also LineageOS) are not interested in providing such access. So the only maintainable way is the one that NP took.

@hg42
Copy link
Collaborator

hg42 commented Oct 8, 2024

with SAF DocumentsUI is required to grant access to a directory.

The only other possibility would be to use RootFile directly.

Michael suggested to add a simple input field for an alternate directory that is directly used with shadowRoot without using SAF at all. This could be done with a file:///... url as a value.
Either in a second pref that overrides the backupDir pref or by allowing editing of the url in backupDir.
May be I'll add this to devsettings and the appropriate code in shadowRoot to detect a file url.
The motivation was to use a backupDir on external storage from workprofile.

In the long run, I could also add a simple file picker, that can use StorageFile machinery together with shadowRoot.
It's just a list entering and leaving directories and an ok button.

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

No branches or pull requests

3 participants