Skip to content

Feature Request: Lower minSdkVersion to support older Android versions (Android 10 / 12) #2

Description

@atharmshaikh

Currently, the app requires Android 14+ to monitor and detect screenshots. Expanding compatibility down to at least Android 10 (API 29) or Android 12 (API 31) would significantly broaden the app's user base, as many active devices still run these versions.

Proposed Solution / Changes:

  1. Update build.gradle Configuration:
    Lower the minSdkVersion in the app-level build.gradle file:
android {
    defaultConfig {
        // Change from current target down to 29 (Android 10) or 31 (Android 12)
        minSdkVersion 29 
    }
}
  1. Handle MediaStore & ContentObserver Backward Compatibility:
  • Android 14 introduced specific enhancements for detecting screenshots, but for Android 10–13, the app can fall back on a broader ContentObserver tracking the MediaStore.Images.Media.EXTERNAL_CONTENT_URI.
  • Implement a check to parse the file path or display name containing the word "Screenshot" for older API levels where explicit screenshot detection flags are unavailable.
  1. Manage Runtime Permissions:
  • Ensure storage access works seamlessly across different versions (e.g., handling scoped storage variations introduced in Android 10/11 vs the granular media permissions in Android 13+).

Additional Context:

Many users who rely on open-source digital decluttering utilities run custom ROMs or older hardware still stuck on Android 10, 11, or 12. Providing a backward-compatible fallback for the screenshot detection mechanism would make this excellent utility accessible to a much larger community.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions