Highlights & Fixes
Fixed
- External Storage Folder Filtering (#14): Scoped
highRiskUserDirs(/Download,/DCIM,/Pictures,/Documents,/Music,/Movies) inDestructiveOrchestratorto primary internal storage only (isTopLevelUserDirandisPrimaryVolumefor 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 withinitLockand invoked it inMainActivity.onCreate(), added reactivecurrentAlgorithmFlowandallowHighRiskOverrideFlow, boundSettingsScreenalgorithm selection tocurrentAlgorithmFlow, and switchedShredderPreferenceswrites to synchronousprefs.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) andhasCriticalBlockedTargets(). - Updated the High-Risk Paths Selected dialog in
MainActivityto 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, defaultfalse) in Settings to let primary top-level media folders and/Androidsubtrees proceed straight to shred confirmation while OS directories and volume roots remain unconditionally protected.
- Added
- Version Bump & Tests: Bumped
versionCodeto8andversionNameto1.6.1, expandedShredderUnitTest(25 passing JVM unit tests), and verified end-to-end on Android 10 (API 29).
Pull Request & Changelog
- Merged in #16
- Full Changelog: v1.6...v1.6.1