abertschi / ad-free Goto Github PK
View Code? Open in Web Editor NEWA modularized audio ad blocker for Android
Home Page: https://abertschi.ch/blog/2022/building-adfree/
License: Apache License 2.0
A modularized audio ad blocker for Android
Home Page: https://abertschi.ch/blog/2022/building-adfree/
License: Apache License 2.0
It's not been working for quite a while now and I'm not sure if it's only me.
I can't seem to mute the audio when ads are playing. Any chance of an update of this wonderful app since there's no official version of Lineage for this device yet?
I'm running Android 6.0.1. I have tried it with Spotify 8.5.36.747 and the beta 8.5.39.234. It activates as soon as I start playing music on Spotify and will not stop. I tried upgrading to 1.2.1 to see if it worked, as I have been downgrading back to 1.0 each time. I did not keep a copy of the apk, and now it is removed from F-Droid. Is there a way to remedy this or downgrade back to 1.0, so I can use the app? Edit: I have found a copy of the apk from F-Droid's website on the Wayback Machine, which again, does function as expected. Is there any reason why 1.0 works but newer versions do not?
I'm on an A501DL running Android 8.1.0 and I have no indication the app is doing anything, even on logcat. Spotify plays all the ads, showing a distinctive notification for them too. I tried the music note button in the app, and it will silence the playback when I ask, it just doesn't do it on its own.
I've seen this app on F-Droid, but it lacks screenshots, changelog and a translatable description there. It's pretty easy for you to add these information. Please have a look at this example or at the F-Droid docs or fastlane docs.
After you have commited these files to your repo and tagged a new version, you need to remove the Description
and Summary
from the metadata file in the F-Droid Data repo.
-One Plus 7 Pro
-Oxygen OS 9.5.11 (Android 9.x port)
-Phone is connected to bluetooth speaker/headset.
-Interdimensinal cabel setting
On changing volume it also changes the mute setting for ads:
--->I can hear spotify ads as well as interdimensional cable
to reproduce:
turn on interdimensional cable
listen to spotify and wait for ads
turn volume louder -->ads and interdimensional cable plays simultaneously
Note; This setting is also saved, so next time ads show up it still plays simultaneously
Temporary fix:
When there is an add just play a radio choose by the user. It is just a proposal, I haven't think about the technical part or the use by the many.
The current version of ad-free does detect ads while music is streamed to a Chromecast, but it doesn't mute the Chromecast.
Using Essential phone PH-1, using latest version of Spotify and Ad-Free. Most of the time, the phone would unmute before the ad finishes so a few seconds of ads would be played. Is there any way to unmute at the right time? Even just extend a few more seconds to mute the music would be less distracting.
Hey,
when I am listening on desktop, and there is an ad, ad-free starts playing 'anti-ad'
OnePlus One
Lineage 15
Spotify started recently to push multiple ads back to back, Most often than not the exact same ad is played twice, that's what motivated me to look for a fix.
While ad-free does a great job, only one clip of Interdimentional Cable (IC) is played and then mute. Is there a way you could loop the IC while the ads finish playing?
Regardless thanks a lot for your work
Very nice app. Do you plan to support muting SoundCloud ads? Their notifications have the same title and text for different ads.
Phone: Samsung S8, latest vendor firmware (Android 9).
When listening to Spotify with headphones (wired, jack), the interdimensional cable is played on the phone's loudspeaker.
Thanks for the awesome software! ;-)
The app works fine with Spotify full version but doesn't support Spotify Lite
I tried to use the app (F-Droid Version 2.2/36 )on my OnePlus5 (Android 9) with JBL Bluetooth headphones but when the app detected advertise it muted everything instead of playing local music. But with wired headphones all worked well.
I was able to get things work when disabling the last option in following screenshot (sorry only in German)
Perhaps it would be great for other users to add this into the troubleshooting site.
The app is very great, I enjoy listening music, thank you very much!
the app is currently mostly distributed via fdroid store. however there is an option to download it manually via github. fdroid builds and signs this app themselves in order to deploy it to their store.
Possibly out of scope, obviously.
Fire OS is the customized version of Android used on Amazon "Fire" devices (most notably tablets). The current version is based on Android 5.1.1 Lollipop. Broadly, standard Android app compatibility is good on Fire OS. It's possible to sideload F-Droid and install other apps than those explicitly intended for Fire OS.
However, Ad-Free doesn't seem to work at all on this setup. There's no notification to ensure activity is maintained and Spotify ads are not in any way affected by the app running. The mechanism by which similar apps function seems to do the job on Fire OS: the app "Spotify Admodify" similarly triggers its own notification then monitors Spotify notifications and is able to mute its ads without issue.
How is it done. By notification bar right?. If so, how is it detected, what is used. How can I do this myself.
Thanks in advance
I find 0 seconds delay too little and 1 second delay too much
On android 9 (pie) every new audio track played by Spotify 5.5.0.653 is muted. Sometimes it even mutes somewhere in an audio track. It's sad to see, that ad-free became useless after summer 2019.
What does Ad-Free need full network access for? I guess it has been added in order to download the music file of Interdimensional Cable but this feature has been discontinued.
Since As-Free has full access to notifications, it could technically (!) upload user notifications somewhere (yes, it's open source and in F-Droid). I truly believe that it doesn't, but if this permission is not necessarily needed, it should be removed.
Also, for what does the app need "view network connections" and "read the contents of your shared storage" permissions?
I use this app with both Spotify and Spotify Stations. It works on both.
HOWEVER, sometimes, on Bluetooth, it doesn't unmute. I think that the Bluetooth device is lagging the volume up rocker.
A potential fix is to make an option for slowly fading the music track in. Maybe a 'FX' option list would work, where I could set how fast the fade happened. Right now, I have my phone set to maximum volume, and my speaker is adjusted accordingly. I'm going to mess with the developer options and see if changing the absolute volume function fixes it.
Hi,
great app! I wonder if ad-free would work on Android TV Oreo since it displays notifications while playing music.
Thank you excellent app, but didn't work in my new cell phone from xiaomi.
Good work.
If you are good at design and want to contribute to ad-free, shout out here and create a new logo
Setup:
reproduction:
expected result:
actual results:
Thanks for your answer
Spotify disguises these ads as songs, but they are only 30 seconds and begin with the artist telling listeners to check out their music/album on Spotify.
related to the file chooser view for selection of audio tracks.
Android version: 28
Device: samsung SM-G960U
App version: 33
Time: 2019-11-25-22:09:20
Root cause:
android.view.WindowManager$BadTokenException: Unable to add window -- token android.os.BinderProxy@99507bb is not valid; is your activity running?
at android.view.ViewRootImpl.setView(ViewRootImpl.java:1056)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:381)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:93)
at android.app.Dialog.show(Dialog.java:470)
at com.github.angads25.filepicker.view.FilePickerDialog.show(FilePickerDialog.java:417)
at ch.abertschi.adfree.plugin.localmusic.LocalMusicView.showFolderSelectionDialog(LocalMusicView.kt:98)
at ch.abertschi.adfree.plugin.localmusic.LocalMusicPlugin.chooseDirectory(LocalMusicPlugin.kt:141)
at ch.abertschi.adfree.plugin.localmusic.LocalMusicView$onCreate$4.onClick(LocalMusicView.kt:71)
at android.view.View.performClick(View.java:7333)
at android.widget.TextView.performClick(TextView.java:14160)
at android.view.View.performClickInternal(View.java:7299)
at android.view.View.access$3200(View.java:846)
at android.view.View$PerformClick.run(View.java:27773)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:6986)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1445)
Whenever I click to choose a music directory.
It always say "Whoops, error with chosen directory. Choose a different one"
A cool option would be to have the app download up to a certain amount of songs from Spotify to play later instead of the ads. You could have it replace already used songs with another song from Spotify.
Would it be possible to support opus and ogg and perhaps some other open source formats/codecs?
This was an issue already and currently ".mp3", ".wav", ".m4a"
are supported. Could you document the current formats somewhere (maybe in the readme behind "arbitrary audio")?
Thanks for the app <3 have a โ
I really like that some developers try to put some funny features into their apps. Really appreciate them making me smiling. But I don't understand "Play until end" option...
There should be two options only: "play local music file until spotify ad ends" or "play until end of music file, regardless if spotify ad already ended before".
Problem:
On Redmi Note 7, Global 10.3.6, Android 9, the notification service is sometimes randomly killed. Only reenabling it in settings or reboot fixes issue, app is removed from battery saving list.
Solution:
Look into options how to automatically or manually restart the service within the app.
https://stackoverflow.com/questions/35434171/workaround-for-keeping-notificationlistenerservice-alive
Ad blocking works on Oreo 8.0, but no notification is shown
provide option to send stacktrace on crash
-- https://stackoverflow.com/questions/19897628/need-to-handle-uncaught-exception-and-send-log-file
local-music plugin:
some devices mount storage to /storage which is not listed when mounting with / which defaults to /mnt
Please add an option to play full Interdimensional Cable Ads. It sounds weird when they're getting cut. I'm sure real Rick & Morty Fans won't mind.
Currently, when clicking on the security tab in GitHub, "No security policy detected" is displayed.
To remediate, set up a SECURITY.md file.
I am using a OnePlus 7T, ad-free detects that an ad is being played but it does nothing about it, the ad continues to play.
PS: I'm using the mute plug-in.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.