Skip to content

1.6.11, 1.6.13, 1.6.15: Folder Picker for export Directory setting lost always his permission #3227

Closed

Description

@MarkyMarkDE

1.6.11, 1.6.13 + 1.6.15:
On Android 16 in a Pixel 10 the Folder Picker always lost his permission to the Export Directory on Pixel for Obatainium.
Unfortunately Google itself gives me not the selection choice, which Folder Picker i would like to use, it uses always his own.

1.6.13, 1.6.15:
On Android the Problem it now really stable, at very App update (not specal Obtainium) this happens and you must kill Obtainium, Clear Cache and restart Obtanium or you have much problems with that.

Maybe Obtainium should not rely on a specific/default folder picker at all.


On Android TV, users can use a separate Shizuku-based folder picker, which works very reliably.

Could Obtainium use the same approach on regular Android: just request folder selection and let the user choose which installed compatible folder picker handles it?

This would keep Obtainium independent from Google's default picker and allow users to install and use a different folder picker if the system one causes problems.

Activity

  1. added
    bug
    to check
    on Aug 23, 2026
  2. changed the title [-]1.6.11: Folder Picker for export Directory setting lost always his permission[/-] [+]1.6.11, 1.6.13: Folder Picker for export Directory setting lost always his permission[/+] on Aug 26, 2026
  3. WolfganP commented on Aug 31, 2026

    @WolfganP

    I suffer the same on Android TV 9 with latest releases, and the app log on v1.6.14 shows :

    Failed to open document tree: PlatformException(error, No Activity found to handle intent [act=android.intent.action.OPEN_DOCUMENT_TREE flg=0x42 ]

  4. added
    to check
    and removed
    to check
    on Sep 6, 2026
  5. removed
    to check
    on Sep 6, 2026
  6. MarkyMarkDE commented on Sep 7, 2026

    @MarkyMarkDE
    Author

    this changed nothing with SAF lose permission on Android Pixel, lost permission still beeing lost but now we have a "gracefully" log line.
    Why you don't solve this issue or replace the whole stuff on the same way, as we have no SAF detected like on Android TV, so the user can select HIS own Folder Picker e.g. with a shizuku based one, this connection seems to be stable.

    AndroidTV: the removed focus on the ADD button on the left removed now also the focus on a fresh installation, when you should accept something in an overlayed message (main page behind is scrollable but e.g. the OK cannot be reached with Remote Control) ... the more space is to the last app in list is okay but maybe little to much but okay.

  7. changed the title [-]1.6.11, 1.6.13: Folder Picker for export Directory setting lost always his permission[/-] [+]1.6.11, 1.6.13, 1.6.15: Folder Picker for export Directory setting lost always his permission[/+] on Sep 7, 2026
  8. mtalexan commented on Sep 22, 2026

    @mtalexan

    I'm on GrapheneOS and have been seeing the same problem for a few releases. On GrapheneOS you can see what storage permissions were granted, and it appears to be a bug in how Obtainium gets the path. You can see it's blank in the permissions list.

    Image
  9. MorphogeneticFields commented on Oct 15, 2026

    @MorphogeneticFields

    Same on Xiaomi 14T Pro, HyperOS 3.0 / Android 16, Obtainium 1.6.17.

    Measured via adb (dumpsys activity permissions): the persisted grant for the export dir only has write permission:
    UriPermission ... tree/primary:Documents/Sicherung/obtainium ... persistable=0x3 persisted=0x2
    For comparison, Aves (same system picker) gets persisted=0x3 for its folder.

    This matches the log above (OPEN_DOCUMENT_TREE flg=0x42 = WRITE | PERSISTABLE, no READ). getExportDir() checks canRead(), which fails once the activity no longer holds the temporary read grant, so auto-export is skipped silently after an app restart and every manual export asks for the folder again. While Obtainium is still open, auto-export works (confirmed: an -auto.json was written right after adding apps).

    Suggested fix: request FLAG_GRANT_READ_URI_PERMISSION as well when opening the document tree, and take the persistable permission with read+write.

  10. MarkyMarkDE commented on Oct 15, 2026

    @MarkyMarkDE
    Author

    13. Same on Xiaomi 14T Pro, HyperOS 3.0 / Android 16, Obtainium 1.6.17.
    Measured via adb (dumpsys activity permissions): the persisted grant for the export dir only has write permission:
    UriPermission ... tree/primary:Documents/Sicherung/obtainium ... persistable=0x3 persisted=0x2
    For comparison, Aves (same system picker) gets persisted=0x3 for its folder.
    This matches the log above (OPEN_DOCUMENT_TREE flg=0x42 = WRITE | PERSISTABLE, no READ). getExportDir() checks canRead(), which fails once the activity no longer holds the temporary read grant, so auto-export is skipped silently after an app restart and every manual export asks for the folder again. While Obtainium is still open, auto-export works (confirmed: an -auto.json was written right after adding apps).
    Suggested fix: request FLAG_GRANT_READ_URI_PERMISSION as well when opening the document tree, and take the persistable permission with read+write.

    @MorphogeneticFields Really Good Job, thank you much.
    @ImranR98 Hope this nervy Bug will be solved soon.

  11. ImranR98 commented on Oct 17, 2026

    @ImranR98
    Owner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions