You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
1.6.11, 1.6.13, 1.6.15: Folder Picker for export Directory setting lost always his permission #3227
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.
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
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.
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
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.
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.
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.
Activity
[-]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[/+]WolfganP commentedon Aug 31, 2026
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 ]Handle missing document picker and revoked export-dir grants graceful…
Merge pull request #3283 from ImranR98/dev
MarkyMarkDE commentedon Sep 7, 2026
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.
[-]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[/+]mtalexan commentedon Sep 22, 2026
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.
MorphogeneticFields commentedon Oct 15, 2026
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.
MarkyMarkDE commentedon Oct 15, 2026
@MorphogeneticFields Really Good Job, thank you much.
@ImranR98 Hope this nervy Bug will be solved soon.
Keep read access on the export directory after restarts (#3227)
Remove the shared_storage fallback from export directory picking (#3227)
ImranR98 commentedon Oct 17, 2026
Thanks for the tip @MorphogeneticFields. Implemented: https://github.com/ImranR98/Obtainium/releases/tag/v1.7.0