[APP][ROOT/NONROOT][OFFICIAL] AdAway v5.5.1

Search This thread

guest4711

Senior Member
Why would anyone want to move the default hosts file to another place? ?
In the old days /system was mounted read/only but could be remounted read/write. So it was a common solution to replace /system/etc/hosts once by a link pointing to a place where AdAway could write the file without need to remount /system (or aquiring root).
 

PerfectSlayer

Senior Member
Aug 8, 2010
665
6,972
133
blog.hardcoding.fr
Hi all,

It has been a month since the last release and I think it's time to move on to stable.
I will never be satisfied by the all features I still have to ship nor the workarounds that must be implemented but I honestly think it is good enough for a solo developer on its free time.
So great news today: this version will move to the stable channel and the F-Droid store!

In addition to to some bug fixes, like the application exclusion list for VPN ad blocking method or a new hosts parser for very large hosts file (1M+ entries), this version takes a special care to the application update process.
There a new dedicated UI to this feature to show download progress and changelog. Thanks to a backend upgrade, it will also support updating F-Droid apk versions for those which download AdAway from F-Droid without using F-Droid Android client.

I also integrated the last state of translations. About 130 pull requests! Thanks to all translators that take of their time to make the application accessible to others.
If you are curious, I publish a monthly updated World map of AdAway users and I am proud to see the app is helping people all over the world
I must also thanks all donators and GitHub sponsors that keep me motivated on this projects by sending greetings and thanks. Thanks a ton you all! ❤

Changelog:
  • Add application update UI
  • Add F-Droid apk support to built-in updater
  • Add custom hosts file parser for big hosts file (1M+ entries, way slower but memory friendly)
  • Fix VPN app exclusion on Android 11
  • Update AndroidX and Sentry dependencies
  • Update translations

Thanks:

Special thanks to spiou, drothenberger and gallegonovato for theirs helpful bug reports.

Download:

AdAway 5.1.0
 

malavi

Senior Member
Dec 12, 2008
444
670
0
When using systemless hosts you should not alter the location of the host file in AdAways settings.

It should be /system/etc/hosts .

Thank you so much! I changed it the first time I tried to activate it, because the app itself told me so.. :confused: Just changed it to default /system/etc/hosts and it worked like a charm! :highfive:
 

guest4711

Senior Member
Thank you so much! I changed it the first time I tried to activate it, because the app itself told me so.. :confused: Just changed it to default /system/etc/hosts and it worked like a charm! :highfive:
It's history: On older devices the most common problem was "no space left on /system" so one step was to move the hostfile to another location and making a symlink to it.
 

Gitah.

Senior Member
Jul 20, 2012
77
2
0
Just double checking, the latest version compatible with < Android 8 is the one on F-Droid, 4.3.6?
If that's the case the github page should be updated since it states that the stable build is compatible with 4.1 and up but then it links 5.1.0.
 

r0tt0r

Senior Member
Jun 29, 2016
69
16
8
Hello and nicely done to fellow adaway crew. nice to see this evolving though i have an issue that somewhat hinders me using the awesome product you serve. im not rooted anymore, is like yeay, you just brought up whats needed, but i also use vpn so that means either use vpn or have ads purged. i looked for ways to chain 2 vpn apps but it seems due googles limitation not possible. any advice or sthg that would allow me to use this while beeing vpn,ed and unrooted welcome. the dns option of adguard is not welcomed
 

natanvarga

Senior Member
Jan 30, 2018
70
6
8
Hello and nicely done to fellow adaway crew. nice to see this evolving though i have an issue that somewhat hinders me using the awesome product you serve. im not rooted anymore, is like yeay, you just brought up whats needed, but i also use vpn so that means either use vpn or have ads purged. i looked for ways to chain 2 vpn apps but it seems due googles limitation not possible. any advice or sthg that would allow me to use this while beeing vpn,ed and unrooted welcome. the dns option of adguard is not welcomed
I use nextdns. Filter lists can be configured.
 

andy356

Senior Member
Jul 5, 2016
1,294
563
113
@PerfectSlayer After updating from v4 to v5, AdAway seems to have difficulty handling the Energised Ultimate list. It force closed a couple times before it was finally able to finish parsing all the lists.

This is only a suspicion, mind. It might not be the Energised Ultimate list, but it probably is, since it has 1M+ hosts, and you mentioned that you added a new custom parser for those.
 

PerfectSlayer

Senior Member
Aug 8, 2010
665
6,972
133
blog.hardcoding.fr
@PerfectSlayer After updating from v4 to v5, AdAway seems to have difficulty handling the Energised Ultimate list. It force closed a couple times before it was finally able to finish parsing all the lists.

This is only a suspicion, mind. It might not be the Energised Ultimate list, but it probably is, since it has 1M+ hosts, and you mentioned that you added a new custom parser for those.

Can you post me somewhere a logcat of the FC? I guess it's an OOM exception but I would like to be sure.
The 1M hosts limit was arbitrarily set (from tests with a Pixel 2 device) but it should depend of the device specification.
I need to find a way to evaluate the proper limit (it might even be dynamic...) because the memory friendly parser is really slow compared to the default one!
 

Gandicela

Senior Member
Nov 16, 2011
1,806
716
143
Singapore
Question, please. I'm trying this v5.1.0 without root, but am unable to proceed further.

Any ideas?

Sent from my SM-N986B using XDA Labs
 

Attachments

  • Screenshot_20201115-220843_AdAway.jpg
    Screenshot_20201115-220843_AdAway.jpg
    147 KB · Views: 380
  • Screenshot_20201115-220912_AdAway.jpg
    Screenshot_20201115-220912_AdAway.jpg
    223.2 KB · Views: 386

D1l777

Senior Member
May 4, 2011
76
11
0
I just updated to 5.1 from F-droid and I can't get Adaway to use root ad blocking anymore. I made sure systemless host was on in magisk, tried turning it off, rebooting, turning it back on and rebooting but the root option in adaway is still greyed out. Anyone got any suggestions? Thanks!


Edit: fixed the problem. Uninstalled and reinstalled and it gave me the option to choose root then. Leaving this in case someone else runs in to the same issue :)
 
Last edited:

DeadlyToast

Senior Member
Jun 30, 2017
87
10
8
I just updated to 5.1 and man that's a great look! And I don't even need to reboot the phone after every list update? That's great!
Thanks dev for the app and the update!
 

JGradyO

Senior Member
Apr 3, 2011
65
66
58
I just updated to 5.1 and man that's a great look! And I don't even need to reboot the phone after every list update? That's great!
Thanks dev for the app and the update!

Rebooting was optional. It removes cached DNS entries, and will serve the same purpose now as it served in older (i.e., 4.x) versions, if you use the rooted hosts file method. If you're OK letting time expire your cache, don't reboot.
 

mrrocketdog

Senior Member
Oct 27, 2013
4,507
2,004
253
Rebooting was optional. It removes cached DNS entries, and will serve the same purpose now as it served in older (i.e., 4.x) versions, if you use the rooted hosts file method. If you're OK letting time expire your cache, don't reboot.

".........(i.e., 4.x) versions , ..... . heck i'm still on v.3.3. (of course i'm on nouget [emoji51] ) but working great still. ty @PerfectSlayer.:good:
 

PerfectSlayer

Senior Member
Aug 8, 2010
665
6,972
133
blog.hardcoding.fr
Thanks everyone for all your feedback and messages. This new version seem appreciated :highfive:

Question, please. I'm trying this v5.1.0 without root, but am unable to proceed further.

Any ideas?
Did you have any previous version installed or did you just install the app? If you were upgrading, from which version did you came from?

I just updated to 5.1 from F-droid and I can't get Adaway to use root ad blocking anymore. I made sure systemless host was on in magisk, tried turning it off, rebooting, turning it back on and rebooting but the root option in adaway is still greyed out. Anyone got any suggestions? Thanks!


Edit: fixed the problem. Uninstalled and reinstalled and it gave me the option to choose root then. Leaving this in case someone else runs in to the same issue :)
Thanks for the information. Are you saying the app was launching but no ad blocking option was active in app settings?
Then you reinstalled the app and, this time, it asked you to choose the ad blocking to use (but it didn't asked it after you upgrade).
 

Top Liked Posts

  • 2
    Answered many times for similar posts.
    Forget such 'virus' reports - use more reliable virus detectors that do not 'find' root apps
    1
    What detector do you use to use me, thanks for the clarification
    I'm using Avast integrated to Xiaomi Security scan - no virus
  • 41
    Hi all,

    I hope your are all going well.
    I get a new version for you that addresses a long running issue: being able to allow hosts from your sources! 😊
    For this occasion, I reworked the source UI in order to select the type of list you use:
    • Block list (ie hosts file, so an IP than a hostname per line)
    • Allow list (a hostname per line)
    Here is the result:

    1615998465729.png


    I got some other bugs fixed too, like TLS issue with web server thanks to the new mongoose version and a no internet connection issue on source update check when the application can't check any last modified date.

    On top of that, I merged more than a hundred PR of translations. So thanks to all the translators!
    I also had a sixth GitHub sponsor yesterday 🥰 and I enjoy to read all your nice words in the donation comments. Thanks a ton for your support! 🤗

    Changelog:
    • Add allow list support
    • Improve source edition UI
    • Improve source update check
    • Improve animations
    • Update mongoose web server
    • Update dependencies
    • Fix web server TLS issue

    Thanks:

    Special thanks to gallegonovato, jawz101 and zgfg for their bug reports.

    Download:

    AdAway 5.5.0
    40
    Hi all,

    Here is a quick update that improves the app update screen, validates domain redirection and fixes a crash with VPN using IPv6 DNS. Nothing exceptional but it is always welcome.

    On a personal note, I will take few weeks off the project as my doctor ask me to do because I suffer from burnout.
    The project is not abandoned but I think it is healthier to me to step aside a moment until I take time to focus on myself and honestly evaluate if AdAway brings me more stress than pleasure.

    So don't expect me to handle the umpteenth question about YouTube history or some wrong text alignment GitHub issue soon! (but accessibility is an other and real subject, don't get me wrong here ;))

    Changelog:
    • Add redirection validation
    • Improve application update screen
    • Update Android gradle plugin
    • Update NDK
    • Update dependencies
    • Fix VPN crash when the only system DNS server available uses IPv6 and IPv6 is disabled from settings
    • Remove html
    • textview dependency and jcenter repository

    Thanks:

    Special thanks to FrostbiterTy, SapphireExile, zgfg for their bug reports.

    Download:

    AdAway 5.5.1
    14
    On a personal note, I will take few weeks off the project as my doctor ask me to do because I suffer from burnout.
    I wish you the very best. Please really follow the advice of your doctor! Real life comes very first!
    We're looking forward to seeing you back in the best condition, whenever that is. It's your decision, and please "play" very carefully or better not at all with your health.
    Thanks very much indeed for everything that you contribute to us and the whole XDA community! Your "products" are examplary, and your permanent support (from which you now probably suffer) has always been absolutely excellent. I couldn't and wouldn't use a device without YOUR AdAway! A very personal thank you from my side.
    Take care, stay safe, stay healthy!

    Regards
    Oswald Boelcke
    7
    Hi all,

    Here is a quick update that improves the app update screen, validates domain redirection and fixes a crash with VPN using IPv6 DNS. Nothing exceptional but it is always welcome.

    On a personal note, I will take few weeks off the project as my doctor ask me to do because I suffer from burnout.
    Take care @PerfectSlayer ! Everything is nothing without health (I know what I'm talking about).
    All the best for you, sometimes you have to set priorities.
    4
    Hi all,

    I hope your are all going well.
    I get a new version for you that addresses a long running issue: being able to allow hosts from your sources! 😊
    For this occasion, I reworked the source UI in order to select the type of list you use:
    • Block list (ie hosts file, so an IP than a hostname per line)
    • Allow list (a hostname per line)
    Here is the result:

    View attachment 5252635

    I got some other bugs fixed too, like TLS issue with web server thanks to the new mongoose version and a no internet connection issue on source update check when the application can't check any last modified date.

    On top of that, I merged more than a hundred PR of translations. So thanks to all the translators!
    I also had a sixth GitHub sponsor yesterday 🥰 and I enjoy to read all your nice words in the donation comments. Thanks a ton for your support! 🤗

    Changelog:
    • Add allow list support
    • Improve source edition UI
    • Improve source update check
    • Improve animations
    • Update mongoose web server
    • Update dependencies
    • Fix web server TLS issue

    Thanks:

    Special thanks to gallegonovato, jawz101 and zgfg for their bug reports.

    Download:

    AdAway 5.5.0
    Tested with the local Allowed file, working fine - thanks
  • 3277
    icon.png
    AdAway

    AdAway is an open source ad blocker for Android using the hosts file.


    Google Play Store notice:

    According the Google Play Developer Policy, especially the "Device and Network Abuse" section, ad blocker like AdAway violates the "Apps that block or interfere with another app displaying ads." rule and can't be distributed on distributed on the Play Store.
    As Free and Open Source Software, AdAway is available from F-Droid Store or this XDA thread :good:


    Requirements:

    This application requires Android 8 or above and does no more require root.

    For older Android versions, a rooted device is required.


    Changelog:

    If you don't want to read each announce post of this thread, you can:


    Downloads:

    Stable versions are available on F-Droid Store and below:


    Beta versions are available on XDA development thread only:

    AdAway 5.0.10


    Problem? Read this:

    * If you use Chrome and still see ads on web pages, remember to disable the "data saver" or "reduced data usage" browser option
    * Check your APN settings for any proxy, the proxy itself could be allowing ads. Disable the proxy.
    * After you install or make any change to AdAway, you must reboot for those changes to take effect
    * If you are still having issues please read and understand all the info in the wiki before asking for help here

    Otherwise, this is the right thread to discuss about it or file a bug report here.


    Contributors:

    PerfectSlayer, Vankog, jawz101
    Source Code: https://github.com/AdAway/AdAway
    170
    Hi all,

    A new year is coming and I wish you all to have nice holidays :victory:

    Just few words about this ending year. There was about 12 releases in 2019 which brings you a new UI, a lot of bug fixes, Android 10 support, Gist and GitLab hosting support and better Magisk support.
    All of this is possible thanks to the community to help users to discover the app, learn how to use it and report any new bug and also your moral, nice words and thanks you can send to me, and financial support.
    Thanks a lot for all donators, GitHub sponsor and the Pixel 2 you sent me to test Android 10 support.

    For the next year, I hope to release the next version (V5), at least in beta to start. It's been 9 months since its first lines of code and things are working quite nicely.
    It aims to make the app simpler to use for the main use cases, support rooted and non rooted devices and remove old hacks/workaround which are no more needed on recent setups.

    But before this big next update, I still have time to fix current issue with a new release :p

    Changelog:
    • Fix GitLab hosting support (commit date parsing failed)
    • Translation update

    Thanks:

    Special thanks to @gallegonovato for its helpful bug report and @Vankog for translation update.

    Download:

    AdAway 4.3.2 on AndroidFileHost (md5: 78fde09a0e92044c45e901bb1cec8e2e)
    159
    Hi all,

    Long time no see! It's been more than two months since the last update.
    I can't say I was not active on the project as I start working on a new version (5.x.y) as a side project.
    I won't share the source code yet as it is not ready at all and I don't want to give an ETA but this new version targets the following goals:
    • 1. Revamp the UI
    • 2. Clean up old support
    • 3. Address one of the main drawback of the app

    1. The card based UI does not feel right. Welcome card takes too much space, update button / status has a lot of critic. I guess I can do better.
    I started a new simpler and lighter design which provide the most useful information on home screen and all main actions to trigger in one tap (no more burger menu).
    It is still under heavy development but I hopefully get a friend onboard, specialized in graphics and design, to help me :highfive:

    2. In order to simplify the development, I clean up the app and remove support for old features.
    I bump target SDK version so I finally get Java 8 language feature (it was released 5y ago…) and move to topjohnwu root library (instead of home made one). It means systemless support is now handled by Magisk and other root solutions will still work.

    3. Think of what prevent most of users to use AdAway? Now it's gone!
    It's not gone forever. It's still here but there will be a fallback to workaround it.
    I won't tell more until the first public beta but I guess you get the point :fingers-crossed:

    In the meanwhile, here is a new version!

    Feedback:

    Is anyone using a hosts list hosted on Gitlab? It keeps showing "Unknown update status".
    GitLab, like GitHub do not set LastModified HTTP header so update status is not supported... yet!

    Changelog:
    • Add Gist and GitLab hosting support for hosts file
    • Add option to set default IPv6 redirection
    • Improve reboot command
    • Improve UI for overlays
    • Update translations

    Thanks:

    Special thanks to @MSF Jarvis and ralayax for theirs contributions and @andy356 for its helpful bug report.

    Download:

    AdAway 4.2.5 on AndroidFileHost (md5: ab81225745afaaa7646024109de299c0)
    148
    Hi all,

    Feedback:

    Hmm, not working for me for this URL, v4.1.0 shows something like not updated in -360 days (some large negative value). Can you please see if you can reproduce?
    https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn/hosts
    It works well here. I failed to reproduce as I change the HTTP client library and how I use it.
    But update date for the source you link definitely works now.

    All the F-Droid apps I know of have manual push updates to the store.

    Isn't automatic build basically for nightlies?
    Not really. You could choose a lot of different mode.
    For example, F-Droid server watches AdAway GitHub repository to find tags which match a specific versioning pattern.

    I exist still... do you know what i have to do to transfer ownership? if i edit project it doesn't let me change the primary author so i assume i have to PM some higher up to make this happen?
    Thank you so much! :highfive:

    This is now done, @PerfectSlayer is the OP of this thread.
    Thank you too!


    Changelog:
    • Add hosts source download cache
    • Add snackbar notification to update host from DNS request listing
    • Update UI from Material Design to Material Theming
    • Update gradle, plugins and dependencies
    • Fix crash parsing not defined host source last modified date
    • Fix native modules build script (required for F-Droid build server)
    • Fix Transifex issues

    Thanks:

    Special thanks to all recent donators! Your help is really appreciated :good:

    Download:

    AdAway 4.2.0 on AndroidFileHost (md5: 023169e7c345ef7297095793024f8478)
    142
    Hi all,

    After receiving a lot of bug reports about the translation issue with the menu drawer, I finally take time to try to fix it (my holidays just start ;))
    So I fix all incomplete string-array issues the best I could (I can't really understand all languages the app has) but you should get at least all menu entries.
    If some of them are switched or mislabeled, it could be fixed by a translation update. I hope it will encourage translators to patch it when needed (whereas a missing entry could be easily missed).

    I also improve the "not enough space" dialog error.
    It will now display a more detailed message, like failed to mount as rw, which leads to no space to write hosts file.

    Finally, I removed the telemetry startup message (for F-Droid opt-in users only) to replace them by app update only.
    It allows me to understand which versions of the app are installed on which Android platforms.
    (let's say there is a new target version available and I would like to know if I should spend hours to migrate right now or wait few months until more dev feedback becomes available ^^')

    Changelog:
    • Improve hosts file parsing
    • Improve hosts file install error message (add more details than not enough space)
    • Fix menu drawer translation issue
    • Update translations
    • Replace startup (opt-in only) telemetry messages by app update only

    Thanks:

    Special thanks to @yky for its helpful bug report, @ipdev for gifting me XDA Ad-Free for one full year :highfive: and to all other donators.

    Download:

    AdAway 4.2.9 on AndroidFileHost (md5: 36a19c1d6208a8522025637182a400a7)
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone