Skip to content

Mute Ad/promotions from Accuradio, Spotify, Soundcloud, TIDAL, Pandora, or Any App. Minimal, extensible & lightweight under 150kb.

License

Notifications You must be signed in to change notification settings

aghontpi/ad-silence

Repository files navigation

Ad-silence

Silence ads in Accuradio, Spotify, Pandora, Soundcloud or Any App.


github release f-droid release IzzyOnDroid release license

Get it on Google Play Get it on f-droid Get it on IzzyOnDroid

Features

  • Mute ads on Accuradio, Spotify (full & lite versions), Pandora, Soundcloud or Any app with custom App Option
  • Minimal UI, Lightweight & App size less than 150KB
  • Debug log directly integrated in the app to help with easier debugging
  • Supports casting (google chromecast..etc)
  • Fully Configurable: Edit preloaded apps, add new custom apps, and adjust keywords or unmute delays for precise control.
  • No inapp purchases or ads
  • Open source

Supported apps?

  • Custom Apps Support: Ability to add, edit, and delete custom apps to be silenced.

With the release of v0.7.0 and above, Ad-silence now supports custom apps with ability to add, edit, unmute delay and provide keywords specific to the app.

app support
Accuradio yes
Spotify yes
Spotify Lite yes
Soundcloud yes
Tidal yes
Pandora yes
JioSaavn yes
Any app yes

Custom Apps

You can now add any app to Ad-silence to mute its notifications.

Wiki: https://github.com/aghontpi/ad-silence/wiki/Custom_App_Wiki

  1. Open Ad-silence.
  2. Click on "Select Apps" button.
  3. Scroll down to the bottom and click on "Add Custom App" button.
  4. Enter the name, Package Name of the app (e.g., com.example.radio).
  5. Enter Keywords to trigger muting only on specific notifications.
  6. (Optional) Enter Unmute Delay to wait before unmuting (useful for some apps).
  7. Click on "Save" button.

Note:

  • The app will be muted only if the notification contains the keywords.
  • Will unmute the app if the notification does not contain the keywords.

Editing:

  • click on "select apps" to view custom apps
  • click on the edit icon to edit it.
  • Enter the new name, Package Name of the app (e.g., com.example.radio).
  • Enter Keywords to trigger muting only on specific notifications.
  • (Optional) Update Unmute Delay.
  • Click on "Save" button.

Deleting:

  • click on "select apps" to view custom apps
  • click on the delete icon to delete it.

Debug Log

You have to enable the debug log in the app to see the logs.

  • See the lifecycle events of the app in the app (incase if its not working, its easier to identify the issue).
  • See all the logs of the service (notification listener) in the app .
  • See all the notifications parsed by the service.
  • Each debug logs is timestamped, gives out the parsing decision it made (like what it matched against and whether it matched or not).
  • View Casting Information specific to the current session:
    • Endpoint: Shows the active router name and volume.
    • Session: Displays the media controller package, playback type (Remote/Local), volume control mode, and volume levels.
  • Test Mute/Unmute: A button to manually toggle mute on the active media stream (works for both local playback and casting sessions) to verify if the app can control the volume.

You can keep the debug log enabled always, it will not affect the performance of the app, only the recent 100 logs are stored in memory.

Motivation

  • Ad blocker for Accuradio android is not available.
  • wanted a lightweight & non bloat app with size lessthan 200KB
  • Runs forever in the background with absolute minimal resources
  • wanted a minimal ui
    • below is the Total UI of the app.

    enable configure apps about custom apps edit custom apps edit custom apps

How this works

This is possible because of NotificationListenerService on android. Granted, the user gave permission to this setting.

  • While music is playing, the following notification is present.

ad notification

  • I then parse the notification and stop it from playing.

Track Project Status

Donation Links

Built with

About

Mute Ad/promotions from Accuradio, Spotify, Soundcloud, TIDAL, Pandora, or Any App. Minimal, extensible & lightweight under 150kb.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published