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
On iOS, the library stores SQLite databases in the app's Documents directory by default. With file sharing enabled (UIFileSharingEnabled / LSSupportsOpeningDocumentsInPlace), that directory is exposed to users through the Files app and Finder, making the Onyx database (OnyxDB.sqlite3 and its -wal/-shm journal files) visible, shareable, and deletable by users.
Changes Made
Databases are stored in Library/Application Support instead of Documents (persistent, backed up, never user-visible), creating the directory if it doesn't exist.
On startup, database files created by older app versions (prefix OnyxDB) are migrated out of Documents into Library/Application Support.
The patch as written isn't directly upstreamable because the migration hardcodes the OnyxDB filename prefix. The upstream issue proposes a generalized fix (Application Support by default with a generic migration, or a configurable base directory). If upstream adopts either, this patch can be removed — the app-specific migration would only need to remain until all installs have migrated off Documents.
Checklist
Patch file is correctly named and placed in the appropriate directory
Patch is documented in the corresponding details.md file
This issue is linked in the details.md file
Upstream PR/issue has been created (if applicable)
Activity