[APP][2.1+] AdFree for Android

Search This thread

delta_foxtrot2

Senior Member
Feb 11, 2009
711
616
This is the new AdFree for Android thread, the old thread was getting hidden because it was in a legacy devices thread.

Google removed AdFree from their app market but you can get the latest version from the adfree website

As of Android 6+ some ROMs lock the /system partition while running which makes it difficult to block ads and tracking, you can get around this limitation by making a symlink while running a custom bootrom, svbarbosa has made a flashable zip file to automate the creation of a symlink.

Please Note! If sites aren't being blocked when browsing/using the internet over mobile network, but works fine over wifi check your apn proxy settings

Change Log
=========

0.8.0 Added background image
0.8.2 Added Mongoose, mini web server, and tcpdump to sniff DNS requests
0.8.7 Added code to silently update the host file
0.8.14 Start TCP dump if enabled when network connection is established
0.8.20+ Fixed support for low dpi devices (< 160 dpi)
0.8.36+ Added option to wipe TCPdump log
0.8.38+ Added prompt to boot normally, or immediately switch to the TCPdump screen
0.8.40+ restart TCPdump if needed after wiping the log
0.8.42+ fixed webserver listening mistake
0.8.50+ fixed permissions on tcpdump file so the app can now read output on android 4+
0.8.52+ fixed text size on tcpdump screen for high res phones
0.8.54+ Updated app to point to new thread on xda
0.8.56+ Updated Russian translation
0.8.58+ Added option to skip boot screen prompt, tweaked UI, in-app update checks
0.8.60+ Fixed IP entry, tweaked the UI to use default device theme
0.8.62+ Fixed authentication issue
0.8.64+ Background app update check, fixed de spelling mistake and one small display mistake.
0.8.66+ Updated expiry time-out.
0.8.68+ Removed 'too old' expiry time out

0.9.0 Swapped webservers so hostnames "blocked" can be logged and shown in Adfree.
0.9.1 updated webserver config
0.9.2 the path to the web server config file wasn't right and so nothing was logging correctly
0.9.3 allows people to view duplicates in the block list, and displays time stamps, and fixes the webserver restart after wiping the log file.
0.9.4 reverses the order of the block list, and shows the latest log entries first, regardless if you show all entries or just the unique ones.
0.9.5 applied the same reverse log ordering to the tcpdump screen
0.9.6 the app can now auto upgrade itself, and menu items were added to switch between the block list and the tcpdump screens
added ACCESS_SUPERUSER permission to hide a warning in SU, which shows a device warning on Android 4.x+
0.9.7 The auto upgrade of the app will only happen if the auto update checkbox is ticked
0.9.8 updated French translation thanks to Micks29, and fixes symlink support for android 4.4 thanks to Davis.
0.9.9 Updated links to http://adfree.odiousapps.com
0.9.12 Updated tcpdump to work on current android versions. See this post if you want details on using tcpdump with adfree and how to blacklist hostnames.
0.9.13 Enabled SSL on the website and updated the app to connect over SSL using Let's Encrypt free certificate.
0.9.15 Fixed tcpdump, which was broken on recent android versions. Since most websites now enable ssl, there was little point including a web server any more.
0.9.16 Fixed self-update mechanism, as well as the manual update method so it does it itself, and not via a browser.
0.9.18 Made a landscape layout for the main screen
0.9.19 Disabled the code that added a symlink when booted, this is no longer possible when booted into Android
0.9.21 Updated app to target Android 10
0.9.23 Moved tcpdump output to external files folder instead of it's own folder on external memory.
 
Last edited:

Listy2021

Senior Member
Jan 28, 2012
556
326
is it really working to blocking or losing an add? i think no

6wlx.jpg
 

jdh10475

Senior Member
Aug 16, 2010
796
81
Austin
I have the HTC One not sure if that matters but the ads in the espn app are not blocked. What can I do to correct this? Thanks in advance.

EDIT: I was having a problem with the ads not being blocked so I uninstalled reinstalled and all amazing ad blocking seems to be working now!
 
Last edited:

captain.johnshepard

New member
May 5, 2012
3
1
I love this app but if I can do a few very minor suggestions.

1. Can you have a setting for it to boot normally every time?
2. When the app does an update check, would it be possible to have the buttons update and cancel right from the box that pops up for an update to the host file?

Again, I love this app and it is the first thing I install on a clean rom.
 

elbonnor

Senior Member
Aug 6, 2012
50
19
I love this app but if I can do a few very minor suggestions.

1. Can you have a setting for it to boot normally every time?
2. When the app does an update check, would it be possible to have the buttons update and cancel right from the box that pops up for an update to the host file?

Again, I love this app and it is the first thing I install on a clean rom.

+1

Sent from my SGH-I897 using XDA
 

Top Liked Posts

  • There are no posts matching your filters.
  • 287
    This is the new AdFree for Android thread, the old thread was getting hidden because it was in a legacy devices thread.

    Google removed AdFree from their app market but you can get the latest version from the adfree website

    As of Android 6+ some ROMs lock the /system partition while running which makes it difficult to block ads and tracking, you can get around this limitation by making a symlink while running a custom bootrom, svbarbosa has made a flashable zip file to automate the creation of a symlink.

    Please Note! If sites aren't being blocked when browsing/using the internet over mobile network, but works fine over wifi check your apn proxy settings

    Change Log
    =========

    0.8.0 Added background image
    0.8.2 Added Mongoose, mini web server, and tcpdump to sniff DNS requests
    0.8.7 Added code to silently update the host file
    0.8.14 Start TCP dump if enabled when network connection is established
    0.8.20+ Fixed support for low dpi devices (< 160 dpi)
    0.8.36+ Added option to wipe TCPdump log
    0.8.38+ Added prompt to boot normally, or immediately switch to the TCPdump screen
    0.8.40+ restart TCPdump if needed after wiping the log
    0.8.42+ fixed webserver listening mistake
    0.8.50+ fixed permissions on tcpdump file so the app can now read output on android 4+
    0.8.52+ fixed text size on tcpdump screen for high res phones
    0.8.54+ Updated app to point to new thread on xda
    0.8.56+ Updated Russian translation
    0.8.58+ Added option to skip boot screen prompt, tweaked UI, in-app update checks
    0.8.60+ Fixed IP entry, tweaked the UI to use default device theme
    0.8.62+ Fixed authentication issue
    0.8.64+ Background app update check, fixed de spelling mistake and one small display mistake.
    0.8.66+ Updated expiry time-out.
    0.8.68+ Removed 'too old' expiry time out

    0.9.0 Swapped webservers so hostnames "blocked" can be logged and shown in Adfree.
    0.9.1 updated webserver config
    0.9.2 the path to the web server config file wasn't right and so nothing was logging correctly
    0.9.3 allows people to view duplicates in the block list, and displays time stamps, and fixes the webserver restart after wiping the log file.
    0.9.4 reverses the order of the block list, and shows the latest log entries first, regardless if you show all entries or just the unique ones.
    0.9.5 applied the same reverse log ordering to the tcpdump screen
    0.9.6 the app can now auto upgrade itself, and menu items were added to switch between the block list and the tcpdump screens
    added ACCESS_SUPERUSER permission to hide a warning in SU, which shows a device warning on Android 4.x+
    0.9.7 The auto upgrade of the app will only happen if the auto update checkbox is ticked
    0.9.8 updated French translation thanks to Micks29, and fixes symlink support for android 4.4 thanks to Davis.
    0.9.9 Updated links to http://adfree.odiousapps.com
    0.9.12 Updated tcpdump to work on current android versions. See this post if you want details on using tcpdump with adfree and how to blacklist hostnames.
    0.9.13 Enabled SSL on the website and updated the app to connect over SSL using Let's Encrypt free certificate.
    0.9.15 Fixed tcpdump, which was broken on recent android versions. Since most websites now enable ssl, there was little point including a web server any more.
    0.9.16 Fixed self-update mechanism, as well as the manual update method so it does it itself, and not via a browser.
    0.9.18 Made a landscape layout for the main screen
    0.9.19 Disabled the code that added a symlink when booted, this is no longer possible when booted into Android
    0.9.21 Updated app to target Android 10
    0.9.23 Moved tcpdump output to external files folder instead of it's own folder on external memory.
    11
    Link please :)

    ★★ Nexus 4 ★★

    Here. New version is working great.
    11
    I'm about to upload v0.9.4 to the webserver, it reverses the order of the block list, and shows the latest log entries first, regardless if you show all entries or just the unique ones.
    10
    For those of you getting the "Your version is too old" error, you can kinda fix it by going into Date and Time on your device and setting the time a year backward. The problem with this is that it makes certain https websites refuse to load because of lack of certificates.

    I've taken the too old code out and I'm trying to build a new version now but my eclipse was out of date and I'm trying to get the SDK up to date now.

    UPDATE: new version is on the website, will be on slideme and yandex soon
    10
    AdFree and kitkat 4.4

    AdFree works fine for me, Nexus 4, 4.4, under both ART and Dalvik. Perhaps the problem has something to do with the Nexus 7.


    Sent from my iPad using Tapatalk HD

    I was having problems myself. Coming from 4.3, AdFree was working like a charm on my Nexus 4. After updating to 4.4 I got ads all over the place, what a bummer :eek:...

    I downloaded the most current version of AdFree, but it did not help, the ads stayed. After reading quite some forum posts, where people said it works for kitkat and some others posted that it does not, I inverstigated the issue myself :cyclops:

    It seems that kikat somehow stumbles about the symlink that AdFree creates from /system/etc/hosts to /data/data/hosts. If the symlink exists and points to a valid hosts file, I get adverts. If I remove the symlink and copy exactly the same file to /system/etc/hosts, the ads go away. Coincidence?!?!

    Unfortunately, AdFree seems to have a problem with removing the symlink since I was not able to remove the symlink via AdFree (uncheck "Use /data/data/hosts symlink" and reinstall hosts file), but had to remove it myself using "ES Datei Explorer". Any other root file explorer with mount rw capability should do the job as well. Reinstall the hosts file via Adfree and make sure that "Use /data/data/hosts symlink" in unchecked. If you still get ads, reboot and everything should be fine :D