Restore access to logfiles in Android 11 to 15,...? (API level 30+) #3458
+19
−10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Several new features in Android 11 made it nigh impossible to access and use the AAPS logfiles.
The changes were introduced with Android 11 but so far seem to (only) affect devices running Android 14 since the end of August 2024.
This fix works on my Pixel 8 and 5 (both running Android 14) and I tested it with success on an emulated Pixel 3 running Android 9.
I regained access by moving the AAPS user files in the Documents folder.
Further I renamed the logs folder in aapsLogs - a bit redundant but searching for "logs" kept spamming me with "dialogs".
Background: Storage updates in Android 11
https://developer.android.com/about/versions/11/privacy/storage#file-directory-restrictions
The overview here: https://developer.android.com/training/data-storage lists what can be accessed and what can't.