Giter Site home page Giter Site logo

aghontpi / ad-silence Goto Github PK

View Code? Open in Web Editor NEW
177.0 5.0 9.0 10.22 MB

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

License: GNU General Public License v3.0

Kotlin 99.17% Python 0.83%
kotlin android kotlin-android accuradio spotify ad-block adblocker tidal music pandora

ad-silence's Introduction

Ad-silence

Remove ads in Accuradio, Spotify, Tidal & Pandora.


github release f-droid release license

Get it on Google Play Get it on Google Play

Features

  • Block ads on Accuradio, Spotify (full & lite versions), Tidal & Pandora.
  • Minimal UI
  • App size less than 150KB
  • Configure which apps to remove ads in
  • Open source
  • No inapp purchases or ads

Supported apps?

app support
Accuradio yes
Spotify yes
Spotify Lite yes
Soundcloud yes
Tidal yes
Pandora yes
  • If you want this to work on a different app/audio streaming service, open an new issue mentioning its name.
  • Since this is built with Accuradio in mind, no other apps are supported for now, but Implementing other apps should be quite easy.
  • Spotify is now supported.
  • Tidal is now supported.
  • Spotify Lite is now supported.
  • Pandora is now supported.
  • Soundcloud is now supported.
  • Easily extensible to other apps.

Motivation

  • Ad blocker for Accuradio android is not available.
  • wanted a lightweight & non bloat app with size lessthan 1mb
  • wanted a minimal ui
    • below is the Total UI of the app.

    enable configure apps about

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

ad-silence's People

Contributors

aghontpi avatar code-a1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ad-silence's Issues

Possbile Spotify Issue

I really like listen to spotify and the ads are really annoying i hope that you guys can fix it, have a great day
:)

Automatically close the app while idling

Can the application be closed automatically when Spotify/other apps are closed? I understand that this might cause other issues but it would be nice to not see the app's notification when not in use.

Support for Youtube Music?

Hello. After watching a video on YouTube I discovered your app xd and I was wondering if you plan to support YouTube Music (the app version). Have you considered it?

App crashes on Android 12

Logcat error:

                         E  Process: bluepie.ad_silence, PID: 32424
                         E  java.lang.IllegalArgumentException: bluepie.ad_silence: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE
                            or FLAG_MUTABLE be specified when creating a PendingIntent.
                         E  Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable,
                            e.g. if it needs to be used with inline replies or bubbles.
                         E      at android.app.PendingIntent.checkFlags(PendingIntent.java:375)
                         E      at android.app.PendingIntent.getActivityAsUser(PendingIntent.java:458)
                         E      at android.app.PendingIntent.getActivity(PendingIntent.java:444)
                         E      at android.app.PendingIntent.getActivity(PendingIntent.java:408)
                         E      at e.h.c(:4)
                         E      at e.h.h(Unknown Source:0)
                         E      at bluepie.ad_silence.NotificationListener.onListenerConnected(Unknown Source:18)
                         E      at android.service.notification.NotificationListenerService$MyHandler.handleMessage(NotificationListenerService.java:2319)
                         E      at android.os.Handler.dispatchMessage(Handler.java:106)
                         E      at android.os.Looper.loopOnce(Looper.java:201)
                         E      at android.os.Looper.loop(Looper.java:288)
                         E      at android.app.ActivityThread.main(ActivityThread.java:7839)
                         E      at java.lang.reflect.Method.invoke(Native Method)
                         E      at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
                         E      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)

Running on a Pixel 6; I can debug/install locally from the repo if needed, just lemme know.

Feature Request: Play LOCAL music during commercial then resume stream.

Have you considered an option to allow the user to select to have music from the local "Music" folder played during advertisements and then resume the stream? This would eliminate periods of long silence if the commercial is longer than normal. Not sure how much a straight call to play a random audio file would add to the size of the app. This is more advantageous when in the car so the driver does not take his eyes off the road to ensure the stream is still going and hasn't dropped due to loss of cell tower signal etc.

New way of `ad` detection [Spotify]

use artist name for ad detection in Spotify

Screenshot_20220701-101926_Spotify
Screenshot_20220701-101856_Finanzguru
thats not the case, it is advertisment for other podcasts The screenshot that I shared shows the advertised podcast, not the one that I listen to.
In the first picture you can see that it is labeled as "ADVERTISEMENT FROM Spotify"

Exactly, I think that is the problem here. We could try to add Spotify but I do not know if there are any side affects like false blocking or worse. I would test it for a while if you like to provide a test version. (:

Originally posted by @citizenserious in #5 (comment)

Doesn't work effectively

it doesn't work after 3 songs, can't really explain it much because all you do is turn on a button (Spotify)

support for antennapod

Hey I was just wondering if you could get this to work with AntennaPod. Im guessing since the ads are embedded into the podcasts and wouldnt change in the notification, it isnt possible?

App was temporarily removed from google playstore due to "policy violation"

The reasoning mentioned was that the "app Icon" was in violation of the terms. I'm contacting policy support team regarding this issue.

I'll update this thread on updates.

Solution

You can still use one of the following links to get the official apks

update 1

App was reinstated after Changing the Icon and Submitting for review.

update 2

I could not get a straight answer from the support team, (I believe the old icon was not violating terms) - not pursuing this further, closed this issue.

Streamer Request: iheartradio

One of the most popular streaming radio apps is iheartradio. I wondered if it could be added or if it worked differently than the other streamers?

Spotify bug

Since last few weeks most of the adds are not becoming silent which was exactly opposite previously. Not sure what's the reason.

ads not muted on Spotify / Android 8

using a Sony Xperia X, running Android 8.0
Spotify version currently 8.7.8.233
Ad-silence version 0.5.2

Ad-silence has notification access and is enabled to mute ads. Spotify is enabled under 'select apps', and the Ad-silence notification is always visible on the notification drawer, regardless of Spotify status. battery optimisation is disabled for Ad-silence.

when ads are playing, the Ad-silence notification displays 'listening for ads', same as when music plays, or when Spotify itself is closed.

i also use Spotify Lite, but ads are muted every time (except for the final second), though.

let me know if i can provide any more information. thank you for your time.

Ad blocking in Spotify (Podcasts) doesn't work

Info:

  • Pixel 6
  • Android 12 (Build #SD1A.210817.027, if that matters)
  • Spotify v8.6.82.1113

Tried playing a podcast on Spotify, waiting for Ads, and nothing happened. The ads play, I see "Advertisement" in the notification title, and I see the Ad Silence persistent notification (so the app was running). I had granted permission before running Spotify, and seemed to complete all the steps required to configure Ad Silence 🤔

I can try and debug locally to get some more info in logcat - are there specific log tags/messages I can search for or filter on?

iHeartRadio?

Do you think that the ads can be removed in iHeartRadio?
Thank you so much

Suggestion/question

Is it possible to mute the audio coming from the streaming service/app only?

I use a Xiaomi Redmi device and there is a setting to control the volume of media coming from multiple sources individually (refer to screenshot)
Screenshot_2022-02-22-10-15-01-929_com vanced android youtube

Sometimes I need to listen to audio from another app while an ad is running on Spotify and when I increase the volume, I have to hear the ads(I can stop the ad altogether but I'm lazy, or I will have to turn it on again)

BTW, your app is a real gem, thanks🤗

[feature request] support for android tv

The apk work fine on my tablet or my phone, but I buy a android smart tv but your apk did not work. The apk was not able to find spotify on my smart tv. If could verify it's possible to find a correction for this problem.

Thank you for your help

Blocking YouTube Ads

Since you wrote you would be open to adding more streaming services, I was wondering if you could please also block YouTube ads? I don't use the Android app but just go through the web and I use Bromite as my browser and the Puffer app to block other ads and I still get the YouTube ads. Thanks

Doesn't unmute on Android 5.x using Spotify Lite

I've tested on android 5.0.1 (x2), 5.0.2 and the ads are muted, but when the next song comes on it is still muted. I'm not able to manually unmute w/o closing the ad-silence app.

I've tested on Android 6.0 and 7.1 and there are no issues with muting and unmuting.

App not working

While using Spotify app doesn't work many times,need to fix this issue

Request to add steaming app

I am thrilled with the efficacy of your app in muting add in the current list of streaming apps

I am making a request if you can add
Livexlive

[Feature request] Chromecast

I have a Chromecast (old model) and your excellent app doesn't seem to work when Spot.. is streaming to the Chromecast. I guess the app is lowering the phone instead of the streaming volume (different settings).
Thanks

Will this work on an android tv device?

I have a xiaomi mi S android tv device and wonder if it will work there to mute the ads when played? I'm loving how this works when streaming to my echo show at home via bluetooth....just wish there was an iphone version as well since I was using it as my primary streamer as the battery life was very long. (I know it's pretty much impossible in the "walled garden" of iphone and am primarily an android user.

I know the android tv uses some different api's so wasn't sure it would work the same.

Extend app functionality to Deezer

Yes, this is coming from someone with almost no knowledge on how this might work.
But!
I do know that ads in Deezer are also signaled by a separate notification which could be detected by the app and subsequently silenced.

I use Deezer and i believe it's among the topmost used streaming apps! many other users might find this helpful 👀

(also happy holidays 🎄)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.