-
-
Notifications
You must be signed in to change notification settings - Fork 41
Description
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:
- Disable all "Shorts blocking" features if enabled
- Remove all blocked websites. If NSFW blocking enabled, clear data/reinstall the app
- Enable Accessibility Service and grant Device Admin privileges to the app
- Enable tamper protection
- (Optional) Create Restriction group or enable Bedtime
- Go to settings
- Check Accessibility page of Mindful app
- See that the app doesn't kick you out of the page
- Check Device admin page of Mindful app
- 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.