██████╗ ██████╗ ███╗ ██╗███████╗███████╗███╗ ██╗████████╗
██╔════╝██╔═══██╗████╗ ██║██╔════╝██╔════╝████╗ ██║╚══██╔══╝
██║ ██║ ██║██╔██╗ ██║███████╗█████╗ ██╔██╗ ██║ ██║
██║ ██║ ██║██║╚██╗██║╚════██║██╔══╝ ██║╚██╗██║ ██║
╚██████╗╚██████╔╝██║ ╚████║███████║███████╗██║ ╚████║ ██║
╚═════╝ ╚═════╝ ╚═╝ ╚═══╝╚══════╝╚══════╝╚═╝ ╚═══╝ ╚═╝
██████╗ ██╗ ██╗ █████╗ ██████╗ ██████╗
██╔════╝ ██║ ██║██╔══██╗██╔══██╗██╔══██╗
██║ ███╗██║ ██║███████║██████╔╝██║ ██║
██║ ██║██║ ██║██╔══██║██╔══██╗██║ ██║
╚██████╔╝╚██████╔╝██║ ██║██║ ██║██████╔╝
╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═════╝
ConsentGuard is an Android accessibility service that watches the screen for cookie and tracking consent prompts and automatically rejects them.
- It works in Chrome, embedded WebViews, and some native consent dialogues. What it can see varies between apps and websites.
- On a simple banner it taps the reject option, or the necessary only option.
- On a banner with a long list of individual switches, it switches off the optional ones one by one, then saves if the site asks for that. Switches marked as required or essential are left on.
- It requires no internet permission and collects no data. It keeps only a short list of recent results on your phone.
I created ConsentGuard to spare myself the tedious ritual of hunting through the endless settings so generously provided by loving and caring advertising and analytics providers, such as the one below:
ConsentGuard works on a best effort basis and can miss some prompts. See the best effort statement.
- Download
ConsentGuard.apkfrom the Releases page. - Tap Install. Google Play Protect may warn you because the app is not from Google Play. Choose More details, then Install anyway, if you trust the source.
- Open ConsentGuard. It shows whether the service is switched on.
Android can block accessibility services in apps installed from outside Google Play. This is called a restricted setting. If ConsentGuard is greyed out in the accessibility list, or Android shows a "Restricted setting" message when you try to switch it on, allow it like this:
- Open the Settings app.
- Tap Apps.
- Tap ConsentGuard. If you cannot find it, tap See all apps or App info first.
- Tap the three dot menu (More) and choose Allow restricted settings.
- Follow the on screen instructions.
- Go back to Settings > Accessibility > Installed apps > ConsentGuard and turn it on.
If the Allow restricted settings option is not there, first try turning the service on once. Android then shows the restricted setting message, and the option appears in the app's menu afterwards.
The exact wording and location can vary between Android versions and device makers. Google describes the steps here: Restricted settings on Android.
Once the service is on, there is nothing more to do. Browse as usual and ConsentGuard handles prompts as they appear.
- The main screen shows the service status and the most recent results. If a visit says INCOMPLETE and "not saved", ConsentGuard stopped on purpose without pressing Save or Confirm, because it was not sure every optional switch was off. The panel is left as it is, so you can finish it yourself.
- Choose what to reject lets you decide which groups are switched off: ad tracking, tracking for stats, and everything else that is optional. All are on by default.
- To update, install the newer
ConsentGuard.apkover the old one, then check that the service is still switched on. - To stop it, switch it off under Settings > Accessibility > Installed apps > ConsentGuard, or uninstall the app.
ConsentGuard works on a best effort basis. It can miss some banners and switches, and it cannot promise that a site stops tracking you or that any law is met. Read the full best effort statement.
Distributed under the MIT License. See LICENSE.
