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
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Highlights & Fixes
Fixed
External Storage Folder Filtering (#14): Scoped highRiskUserDirs (/Download, /DCIM, /Pictures, /Documents, /Music, /Movies) in DestructiveOrchestrator to primary internal storage only (isTopLevelUserDir and isPrimaryVolume for SAF trees). Top-level folders on USB OTG drives and external SD cards can now be shredded directly, while volume roots and /Android/* system directories remain protected.
Settings & Deletion Toggle Persistence (#15): Made ShredderEngine.init() idempotent with initLock and invoked it in MainActivity.onCreate(), added reactive currentAlgorithmFlow and allowHighRiskOverrideFlow, bound SettingsScreen algorithm selection to currentAlgorithmFlow, and switched ShredderPreferences writes to synchronous prefs.edit(commit = true) so algorithm selection, Delete files & folders after shredding, and Override high-risk path protection persist immediately across runs and cold restarts.
Added & Changed
High-Risk Path Override Controls:
Added DestructiveOrchestrator.RiskLevel (NONE, OVERRIDABLE_HIGH_RISK, CRITICAL_BLOCKED) and hasCriticalBlockedTargets().
Updated the High-Risk Paths Selected dialog in MainActivity to display flagged target names and offer a per-action override checkbox (OVERRIDE & PROCEED) when no OS-critical or volume-root path is selected.
Added Override high-risk path protection (KEY_ALLOW_HIGH_RISK_OVERRIDE, default false) in Settings to let primary top-level media folders and /Android subtrees proceed straight to shred confirmation while OS directories and volume roots remain unconditionally protected.
Version Bump & Tests: Bumped versionCode to 8 and versionName to 1.6.1, expanded ShredderUnitTest (25 passing JVM unit tests), and verified end-to-end on Android 10 (API 29).