github viruchith/AndroidShredder v1.6.1
v1.6.1 — External Storage Folder Fix, Settings Persistence & High-Risk Override

44 minutes ago

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).

Pull Request & Changelog

Don't miss a new AndroidShredder release

NewReleases is sending notifications on new releases.