Skip to content

Tamper protection not working when using only Restriction Groups or Bedtime in the app #265

@DarkZodiAk

Description

@DarkZodiAk

Have you checked it on Project Progress ?
Yes

Describe the bug
Tamper protection doesn't work, when all of these features aren't used:

  • Shorts blocking
  • NSFW blocking
  • Websites blocking

Restriction groups and Bedtime features don't fall in this category.

To Reproduce
Steps to reproduce the behavior:

  1. Disable all "Shorts blocking" features if enabled
  2. Remove all blocked websites. If NSFW blocking enabled, clear data/reinstall the app
  3. Enable Accessibility Service and grant Device Admin privileges to the app
  4. Enable tamper protection
  5. (Optional) Create Restriction group or enable Bedtime
  6. Go to settings
  7. Check Accessibility page of Mindful app
  8. See that the app doesn't kick you out of the page
  9. Check Device admin page of Mindful app
  10. See that the app doesn't kick you out of the page

Expected behavior
When having only active restriction groups/bedtime, I expect tamper protection to be working as fine as it was with blocked websites/shorts/nsfw.

Screenshots
Proof is presented in a short video
https://github.com/user-attachments/assets/f30a4140-ab47-47b3-a50e-82354f0b1d99

Additional context
Mindful's version - v1.3.5+145 (latest release)
Android version - 14 (API 34)
Device OS/ROM - crDroid 10 (AOSP-based)

Actually, the code of the app doesn't cover this case (strangely) and MindfulAccessibilityService.shouldBlockContent() gives false, thus halting the settings check.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions