PRIVACY_AND_SECURITY.md
docs/features/PRIVACY_AND_SECURITY.md
1# Privacy and security23Settings are on **Settings → Security** and stored in `DbSettings.features.privacy`4(device-local: not synced, not overwritten by a restore). Defaults keep the previous behavior.56## Secure screen78Modes: Never (default), In incognito mode, Always. `SecureScreenEffect` applies it from `App.kt`.910| Platform | Behavior |11|---|---|12| Android | `FLAG_SECURE` on the activity window: no screenshots, screen recording or recents thumbnail. |13| iOS | A cover view over the key window while the app is inactive (app-switcher snapshot) and while the screen is recorded or mirrored (`UIScreen.isCaptured`). iOS has no public API to block screenshots. |14| Desktop | Not available: excluding a window from capture needs `NSWindow.sharingType` / `SetWindowDisplayAffinity`, which AWT does not expose and Yokan ships no native bridge for. |15| Web | Not available: browsers give pages no way to block screenshots, recording or tab previews. |1617## Hide notification content1819Independent of app lock. `ProfileNotificationService` replaces the title with "Yokan" and the20message with a generic per-channel text (download, library update, backup, sync) on every21platform. Channel and tag are kept, so updates and cancels still match. The Android download22foreground notification drops the title and chapter name too.2324## App lock idle timeout2526Choices: Always (default, the previous lock-on-leave), 1, 2, 5, 10 minutes, Never. With27Always the app locks on `ON_STOP` as before; otherwise the time is recorded on `ON_STOP`28and the app locks on `ON_START` when `appLockDue()` says the timeout passed. Changing the29timeout asks for authentication. App lock itself stays unavailable on desktop and web.3031## Per-source incognito3233"Incognito sources" lists installed sources. `DbSettings.isIncognitoFor(sourceId)` is true for34global incognito or a listed source. The manga reader, novel reader and anime player use it35for progress, resume position and history, and Discord shows the idle activity for those36titles. Manual "mark as read" in the title screen is unaffected. Yokan has no automatic37tracker progress writes on this branch; any added later must check `isIncognitoFor` too.38