Neo-Backup icon indicating copy to clipboard operation
Neo-Backup copied to clipboard

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

Open Handrail9 opened this issue 1 year ago • 4 comments

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 https://github.com/TeamNewPipe/NewPipe/issues/7446 https://github.com/aniyomiorg/aniyomi/issues/1271

Handrail9 avatar Jul 20 '24 08:07 Handrail9

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.

machiav3lli avatar Jul 20 '24 11:07 machiav3lli

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.

hg42 avatar Oct 08 '24 23:10 hg42

I got similar problem with syncthing-fork on Google TV Chromecast running on android12, where when selecting "directory option" to browse the folder I wanted to sync, it told me "You do not have an app that can do this". I installed many file managers, but none solved the issue. Eventually, I realized that if pressing on the gear icon next to directory with the Google TV remote, rather than the mouse, it worked, and it allowed me to browse and select a folder.

Tech33Blue avatar Jul 23 '25 06:07 Tech33Blue

And i got similar problem with No file manager was found to manage SAF running on Android 9 - Linux 4.4.146+ aarch64. Screenshot: Image Logs: 2025-08-05-20-08-35-980.log.txt 2025-08-05-20-10-33-519.log.txt Is it possible to fix this on a rooted device?

oompaloomp avatar Aug 06 '25 04:08 oompaloomp