Spotify Ad Blocker

I made a Spotify ad blocker for myself and anyone else who is sick of Spotify ads on mobile.
The app is very lightweight and automatically mutes and unmutes the phone when Spotify ads start and stop. It requires notification access as that as how it tells if an ad is playing or not. It uses very little battery life.

I would appreciate any feedback on the code or implementation. You are free to check out the source, make a pull request if you’d like to add something, or download the latest APK on Github.

Screenshots

Source Code

Available on Github

FAQ

How do I use this app?

1. Download the latest APK and install it. You may need to enable unknown sources on your device.

2. Click the button on the app and allow it notification access.

3. Open the Spotify app, start your music, then press your home button to minimize it. The Spotify notification icon in the top left corner must be visible, but you can lock your phone.

4. Enjoy your music ad free.

Does this app use a lot of battery life?

No, not at all. I have left the app running for several days in order to see if I could notice any significant impact on battery life, and I could not. The app doesn’t even appear in the battery life section of the settings page.

Why does the app need notification access?

It needs notification access to tell if an ad is playing. The app does not look at any other notifications other than that of Spotify. You can view the source to ensure this.

Can I contribute to the app?

Yes, if you would like to contribute a feature or fix a bug you found in the app, you can open a pull request on Github. Something I would like done is change the app into a more generic auto-muter that can instead be configured to block Spotify ads, so that the app might be placed on the Google Play Store. You can contact me if you’d like to help with this (camgaertner [AT] tamu.edu).