yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] oroboros74:
It's great to see this being continually developed like this! Thank you!!

Would it be possible / interesting to make it so that you can tap the update icon (when hosts need updating) to initiate an update? I've found myself continuously tapping on that.

Thanks always!
[Android Apps and Games] peterlee928:
im also on 4.0.7, and the sbc.io/hosts/hosts still doesnt show that its getting updated. is anyone else experiencing this?
[Android Apps and Games] androcraze:
"AdAway, blocking ads via hosts-file management"

"AdAway, blocking ads through hosts-file management"

"AdAway: the ad-blocking, hosts-file management toolbox"

"AdAway, killing ads though a hosts-file manager"

"AdAway, the hosts-file ad-blocker"

"AdAway, annihilating ads through a hosts-file"

"AdAway, please try and read our wiki even though you probably won't"
[Android Apps and Games] ktmom:
I vote for this one [emoji23]

"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
[Android Apps and Games] patrickdrd:
is anyone here following [MENTION=2822685]PerfectSlayer[/MENTION] on androidfilehost?

I followed him last night,

so I will receive an email whenever he posts an update, right?
[Android Apps and Games] c3poo:
hello to all, when I try to enter webs with the browser it indicates me error, how can I solve it? without deactivating it? I am sorry if it is answered.
[Android Apps and Games] ktmom:
That's the theory [emoji846] in practice, with other developers whom I follow, I never get updates.

This is a vague complaint.

If you are getting a page can't load error, then whitelist that page. A how-to is on the Adaway wiki.

If every page in a browser (e.g. google.com) is blocked only when Adaway is enabled, then your hosts sources are blocking something you need to access the internet. Try using only the basic sources that came with Adaway in case it's due to one you added. Or uncheck all sources, then re-apply Adaway to get a very basic hosts file.

You could turn on "debugging to log" in Adaway preferences and capture a logcat while visiting the problem site(s). Then look through the logcat to see if you can figure out what is happening.

If you continue to have trouble, please be much more specific; what site(s) don't work, your cell carrier, your country, the hosts sources you're using and do you have a blacklist.

"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
[Android Apps and Games] c3poo:
I understand, but I've already put those websites and it does not work.thaks

Enviado desde mi SM-G955F mediante Tapatalk
[Android Apps and Games] :
Hi, whats is difference on adaway 3.3 and this 4.0.8 that people are talking about ?
[Android Apps and Games] guest4711:
New design, some bugfixes (e.g. AdAway should now acknowledge when you are using systemless hosts even with Magisk).
[Android Apps and Games] DiamondJohn:
Have you tested that you can ping the hostname/website from your phone?
[Android Apps and Games] c3poo:
It already works well for me. Thanks for the helpView attachment 4579608

Enviado desde mi SM-G955F mediante Tapatalk
[Android Apps and Games] Lownita:
What hosts file are you guys suggesting? It shouldn't block any Google services besides ads. For example I tried Steven black lists but it's blocking YouTube history.
[Android Apps and Games] Portgas D. Ace:
Search this thread for "youtube history" and you might find the answer.
[Android Apps and Games] kaisar1994:
Can a whole app be whitelisted?

Is it possible to whitelist a whole app in the Adaway in stead of whitelisting hostnames? I am having issues with facebook messenger app due to adaway.
[Android Apps and Games] :
is there a repo on github for version 4? I would like to work on the german translation.
[Android Apps and Games] Ja_som:
You can do it here

https://www.transifex.com/free-software-for-android/adaway/language/de/
[Android Apps and Games] :
Thank you. I'll take a look.
[Android Apps and Games] The.Night.King:
Is AdAway 4.x a separate work than the original git at this?

I'm unable to find 4.x releases there?

Nothing is written in op about 4.x releases.

Latest version is 3.3 on both git & fdroid.

Where's the source code of the 4.x releases that are available on AFH.
[Android Apps and Games] PoochyX:
Simple revert back to host file.. Go to adaway settings log in DNS request and open up Messenger and start using it for 5 to 10 mins then go back to adaway and see anything that has messenger in it on the DNS log apply those to your white list rebuild the host file messenger should work properly I had this issue with Facebook and it worked... You especially have to white list stuff when you using third party host sources
[Android Apps and Games] ipdev:
I need some help.

AdAway v3.3 -> v4.0.8 will build a host file using http or https host sources on Android 8.1 and below.

AdAway v3.3 -> v4.0.4 will build a host file using http or https host sources on Android 9.0.

AdAway v4.0.5 -> v4.0.8 will not build a hosts file using http host sources on Android 9.0.

If only http sources, it will hang on enabling until you close it.

With http and https sources, the host file is generated with only the https sources.

E AdAway : Unable to connect to http://hosts-file.net/ad_servers.txt.
E AdAway : java.io.IOException: Cleartext HTTP traffic to hosts-file.net not permitted
E AdAway :	at com.android.okhttp.HttpHandler$CleartextURLFilter.checkURLPermitted(HttpHandler.java:115)

Either I am overlooking something or it may be device/setup related. :confused:

SideNote:

I didn't notice it at first, only realized it in v4.0.7.

It is a little confusing when the failed host source is still added to hosts header.

When you check for update it shows Newest hosts files enabled, even though one or more host sources fail. (Last screenshot in link below.)

Devices used for testing:

OnePlus 5T

- Base OOS 5.1.5 (8.1-Aug.)

- Mokee Rom /vendor Running trebel install.

- ROM = Android 9.0 s-GSI PR1 (Pixel A-Only Aug. Security)

- Recovery = Blue spark twrp

- magisk v16.7 (installed)

Nexus 6P

- Stock = Android 8.1 (Aug. Security)

- Magisk v16.7 (fastboot boot patched_boot.img)

Host sources used for testing.

- http://hosts-file.net/ad_serviers.txt

- http://sbc.io/hosts/hosts

- http://winhelp2002.mvps.org/hosts.txt

- http://someonewhocares.org/hosts/hosts

- https://adzhosts.eu/hosts/adzhosts-android.txt

- https://www.malwaredomainlist.com/hostslist/hosts.txt

And the default three.

- https://adaway.org/hosts.txt

- https://hosts-file.net/ad_serviers.txt

- https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&mimetype=plaintext

Logcat. PasteBin

AdAway408-6P-8.1 - AdAway408-5T-9.0 - AdAway404-5T-9.0

Images. Imgur ScreenShots
[Android Apps and Games] PoochyX:
Is Adaway Eco unsupported
[Android Apps and Games] m0han:
i reported a similar experience here. what i forgot to mention is i was on android pie (dp5 or pr1).
[Android Apps and Games] Pkt_Lnt:
I know, please reply to the correct post instead of the person who responded to that post.

https://xdaforums.com/showpost.php?p=77427874&postcount=11685
[Android Apps and Games] PoochyX:
I know I quoted on the wrong name..... Hopefully the person can reply back with resolved
[Android Apps and Games] ipdev:
You mention it a post or two later. :)

Your post was what made me start looking. I could only reproduce the same errors you had on PR-1.
[Android Apps and Games] prodj77:
I liked the new UI :good:
[Android Apps and Games] marciozomb13:
[MENTION=2822685]PerfectSlayer[/MENTION], finished the brazilian portuguese translation. Please include to the next release if you have time. Thank you.
[Android Apps and Games] m0han:
AdAway 3.3 on Android Pie PR1

your post made me look again at v3.3. i'm still on p-pr1 and everything (http:// and https://) works except this: https://raw.githubusercontent.com/jawz101/MobileAdTrackers/master/hosts. says

local: not available, online: not available

. is it (i) just me or (ii) something to do with the url? found answers here and here.

View attachment 4580957
[Android Apps and Games] martyfender:
https://github.com/AdAway/AdAway/commits/master
[Android Apps and Games] ipdev:
Same on v4.0.8

Unknown update status.

Github raw has some issues. It is the reason I stayed away from it in testing.

Like you noticed it is https though and still builds the host file. ;)
[Android Apps and Games] PoochyX:
On Adaway 4.0.5 the white and black list is broken it doesn't merge into the host file, what was wrong with the build that made adaway not apply black and white list its fixed in newest bulid however I'm just curious what happen that made the bulid act like that
[Android Apps and Games] PerfectSlayer:
Really? It spent hours to update the README and the documentation on GitHub :crying:

All the build types are listed on the GitHub home page (I even add big images for download links) and you should find all explanations you need by checking it: https://github.com/AdAway/AdAway#preview-builds

I also saw the issue on GitHub. This is expected behavior when server does not send Last-Modified HTTP header.

In the case of raw.github.com, may be I can detect the URL and use GitHub v3 API to query the log of the file to get its commit date... But it won't fix this kind issue with other servers.

Thanks for your very detailed report! :victory:

You get it right. Starting from the 4.0.5, the app will target Android 9 Pie. See the related commit: https://github.com/AdAway/AdAway/commit/f0acd07553e88bbbddec56ca0a38994a3343b0be

And Android 9 Pie has some behavior changes like forbidden HTTP (ie not HTTPS) traffic by default: https://developer.android.com/about/versions/pie/android-9.0-changes-28#tls-enabled

So, I see two solutions:

Allow all unsecured http traffic. As I can't tell which domains will be used by user, I can't define them by advance in the network security configuration file.

Update the input dialog to warn user and block http hosts source.

I am not very happy to decrease security by allowing all http traffic, even if it was the default behavior until now.

Especially when you are dealing with system configuration using a root app...

Any thought on the subject is welcome.

Sorry, I did not catch this issue. But mentioning Android Pie would definitely help ;)

Speaking of Android Pie, it is really difficult for me to test on this version of Android as I have no device running with.

Remember that my test device is a brave Nexus 4 (nearly 6 years old) running on Android 8.1 (and it is incredible to still get updates from LineageOS! Big thanks to them :highfive:)

And my daily driver is a Nexus 6 (nearly 4 years old) also running on Android 8.1 (thanks to LineageOS too) and I don't want to mess too much with it running preview builds of Android Pie as I need it to receive important calls from work.

So Android Pie testing is only done on emulator and I can only test UI behavior; no root related plumbing. Which leads to this kind of bug :(

I don't have too much solution to improve this situation… As more and more user will move the Android 9 Pie, specially at XDA, I guess we will find more and more related bugs.

Moreover, I did some internal testing using DNS over TLS as private DNS resolver as a way to use AdAway as non root app. I succeed in some steps but it is hard to hack some parts using an emulator... Even if my goal is to do not require root, I still need it to challenge the system to find breaches when I can settle in.
[Android Apps and Games] jcmm11:
http vs https:

It's true that you don't know in advance what domains a user will want to use but it should be possible to modify the Network Security Configuration file dynamically based on whatever the user inputs into his sources lists. That gives you both the exact domain name and whether the user wants http or https. You can issue a warning for http choices.

The other option I see (less preferred imo) is to make it a user option whether or not to disable global http access for the app.

Either way this wouldn't be limited to Pie since only the default changed in Pie but it can be configured to reject http in earlier versions as well
[Android Apps and Games] jthnpeter:
How to use it?

How do I use it to block ads in YouTube app, chrome, tubemate player etc.?

I installed it. But it doesn't block any ads.

Adguard works well in my handset (simple to use), but I like to know working of adaway in a simpler way as possible
[Android Apps and Games] ktmom:
Please search...or read the Adaway wiki...

This had been addressed multiple times - as in why a hosts file can not block ads in YouTube.

"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
[Android Apps and Games] Ultramanoid:
AdAway, despite its, in my opinion, very unfortunate name ( the discussion about it is very recent, you can check yourself ) is a hosts file manager. The fact that many people use it exclusively as an 'ad blocker' brings only misunderstandings and unnecessary and misguided support requests and 'bug' reports.

On a different note, please be aware that promoting a different piece of software than the one the thread is about in said thread, and also suggesting pirated versions on top of that, is against the rules of this forum.
[Android Apps and Games] xanthrax:
correct !

XDA has 0 tolerance on warez be it talk or links

Forum Rules

small cleaning has been performed, stay on topic please and enjoy the development

Thanks !
[Android Apps and Games] jthnpeter:
Sorry guys..I didn't read forum rules...but I saw that this thread is under android development and hacking section...and I thought modifying apps comes under hacking.
[Android Apps and Games] xanthrax:
Yea, that's a tricky word, "hacking" on xda has nothing to do with modifying software in order to bypass paid features,, that's stealing.

Rooting is hacking but not stealing unless the manufacturer provides a paid rooting solution that obviously doesn't exist (does it?... Don't think so), is like one genetically modifies the potatoes in order to boost their taste or size or color or whatever. Is not ilegal, ilegal is to paint those huge potatoes and sell them as watermelons [emoji16]
[Android Apps and Games] jthnpeter:
Haha

My idea was the general hacking....which is not legal like we see in movies;). Now I know what XDA hacking means.
[Android Apps and Games] AdroitAdorKhan:
Give Energized Protection a try - link.nayemador.com/epxda
[Android Apps and Games] lulli1:
Means, watermelons are definitely warez!!! :cyclops:

Best explanation I ever heard. Thanks for enlighten me and making my day! :D
[Android Apps and Games] Tornado15550:
The way I see it right now, allowing unsecured HTTPS traffic with a warning and a confirmation dialogue box might be the best way of going about it as currently the same app version will allow unsecured traffic if the user is running it on 8.1 or lower, but punishes the user if they upgrade to 9.0 by not allowing unsecured hosts.
[Android Apps and Games] jcmm11:
But it's also possible to enforce the same behavior on all versions. The thing that changed in 9 is the default - the mechanism was there previously.

The app needs to tell the system that it's using a network security file. It specifies this fact, along with the file to use, in it's manifest.

The network security file itself is simply an XML file in which you can specify whether clear text should be allowed or not (this can be specified per domain, or globally).

If no file is specified then pre-9 allows clear text, post-9 doesn't. If a file is specified then whatever it explicitly calls for will be honored in both pre and post 9 versions.

Bottom line this can be coded to totally be a user option, or it can look at the individual source files and modify the XML file to allow or reject clear text on a per domain basis. (You'd probably have to force the app to restart after modifying the XML file).
[Android Apps and Games] knnthgngb:
After adding "s.youtube.com" on whitelist and rebooted my phone several times, YouTube watch history didn't show anything. What should I do?
[Android Apps and Games] guest4711:
You should use the search button. So you may find entries like https://xdaforums.com/showthread.php?t=2190753&p=66669190 which tell you what to include in whitelist or how to use the dnslogger to investigate..
[Android Apps and Games] paaaulo:
Is systemless mode working for you on Android 9.0? I can't select it in Adaway settings.
[Android Apps and Games] guest4711:
Yes. If you enable it in MagiskManager it will be systemless even if AdAway does not show it.
[Android Apps and Games] SacredDeviL666:
Thread Cleaned.

Stay on topic and this thread is for Adaway only!

Thanks

SacredDeviL666

Forum Moderator.
[Android Apps and Games] Ultramanoid:
Entering the 'Help' section, the FAQ, Problems and About tabs load fine and immediately; however, S-On/S-Off, Donate and Changelog make the application crash hard if a system-wide WebView build is not present in the system.

Not that this interferes in any way with the actual functionality, but could they be simply implemented without WebView as a dependency, like the other tabs ?
[Android Apps and Games] muralimsir:
AdAway working with Magisk

Learned about it from here: https://xdaforums.com/apps/magisk/magisk-unified-hosts-adblocker-t3559019/page149#post77482014

Just followed the instruction. All fine except blocking of social media links on websites. Still great!
[Android Apps and Games] JimZiii:
I read there's a adaway 4 but I can't find a download connected to the xda thread or dev
[Android Apps and Games] Nergal di Cuthah:
Answer here

Follow the quoted post and it'll have the working link (click the go to icon in the quote)

Edit: here's the link https://androidfilehost.com/?fid=1322778262903987938
[Android Apps and Games] absinth:
Hi guys I've always been able to use AdAway without issue on my LG G4, however recently i passed to H-ROM V30 PORT V2.2 and the message "Copying of hosts file failed! Please read Help for more information." appears every time that i try to apply Hosts changes.

I wasn't able to find anything helpful in the Help file. Is anyone else having this issue?

Device: LG G4

ROM: H-ROM V30 PORT V2.2 [H815][Full UX6+][v29a][v10f][Mods+]

AdAway: 3.3 (installed with APK)

SuperSU: 2.82
[Android Apps and Games] martyfender:
Maybe try AdAway 4.0.8 to see if that works? Also, since SuperSu has not been updated in over a year, many have switched to Magisk, maybe that would help? Finally, have you asked the ROM's author?
[Android Apps and Games] pijas82:
Why in op last version is 3.3 and many people talk about version 4.

Betas? Same developer?

I'm confused.

Thanks
[Android Apps and Games] Ultramanoid:
Version 4 is in development, but functional. Main developer these days is PerfectSlayer.

You can find version 4 builds posted by him and development information about it by following, and searching ( which would have given you all this simple information ) this thread.
[Android Apps and Games] dizM0nkey:
Whitelist not working?

When I attempt to import my whitelist file on 4.0.8, nothing seems to happen... The whitelist remains empty. Am I missing something? Attaching whitelist here.

Thanks!
[Android Apps and Games] DiamondJohn:
Host names should be specific, and therefore not contain "*"
[Android Apps and Games] ktmom:
The format of the file is incorrect. For whitelist entries the domains need to be prefaced with "white".

white *dotomi.com*
white *dpbolvw.net*

The Adaway exported black/white/redirect file is a unified file.

Blacklisted entries are prefaced with an IP address, typically localhost.

127.0.0.1 xdaforums.com

Redirects are prefaced with the IP address to redirect to.

192.168.1.10 xdaforums.com

"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
[Android Apps and Games] ipdev:
Just to add, it is also how you setup an AdAway White list host source. ;)
[Android Apps and Games] frozenfirevr:
Magisk 17 is finally out :D Now i just have to wait for the stable release Adaway 4 and I can upgrade to Pie. Yay!

Thanks a lot for your hard work PerfectSlayer. It's also nice to see you work closely with the community ^_^
[Android Apps and Games] pakino2004:
It's only an idea!

Some apps not working with an ad blocker in my case a newspaper.

Negative and positive list are not working in my case

An option for a temporary deactivation for at example 10 minutes with an automatic reactivation after this time.

At the moment I deactivate manually adaway and after I reactivate again to use the newspaper app.

Greetings
[Android Apps and Games] ktmom:
White and black lists do work.

Make sure you are using either 3.3 release or the beta 4.08 release. Then read through the wiki on DNS logging and whitelist all domains that are in the log when you use the newspaper app.

"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
[Android Apps and Games] x.trinity:
v. 4 beta is working fine aldeady. If you have an official ROM foyour device, just go for it.
[Android Apps and Games] visceralpsyche:
Is there a way to include pixelserv in the app to get rid of the "webpage not available" frames in websites where AdAway is blocking things? Or is there another solution I've missed? Thanks in advance!
[Android Apps and Games] Ultramanoid:
I'm going to go and say this is not part of AdAway's purpose, and shouldn't be.

But people relying on a hosts file manager for filtering web elements ask this often enough that you'll find plenty of instances searching the thread.

Firefox with uBlock Origin is the usual ( well-tested and most effective ) answer to this.

On the Chrom* camp, you could give Brave or Bromite a try, although it won't be quite as effective when it comes to these cosmetic fixes. If the issue arises from an application or browser rendering through a system-included WebView instance, then the Bromite project puts out patched WebView builds as well.
[Android Apps and Games] Avasta:
Anyone else running into an issue with Adaway 4.0.8, in which no reboot dialog shows up when updating the host files? (Pixel 2 XL on Android 9.0).
[Android Apps and Games] guest4711:
Did you disable "Hide Reboot Dialog" in preferences?
[Android Apps and Games] Avasta:
That setting is unchecked in the settings of the app. Still no reboot dialog.
[Android Apps and Games] guest4711:
Confirmed on Android 8.1
[Android Apps and Games] Nergal di Cuthah:
Same here pxl2xl android 8.1
[Android Apps and Games] zputnyq:
I have this problem too on stock 6.0.1 xperia m4
[Android Apps and Games] pakino2004:
Thanks but with this stupid newspaper it doesn't work
[Android Apps and Games] ktmom:
Providing information as to what app you are having trouble with might prompt others to help you.

If, after following instructions to whitelist, ads still display in an app, it's likely the app is NOT going through DNS. They are probably serving ads through their own servers. Adaway can not help with that.

"find somebody that you think is undeserving of your compassion and give it to them" - Christian Picciolini
[Android Apps and Games] pakino2004:
It doesn't work with browser as well. www.bild.de

You can try if you want
[Android Apps and Games] martyfender:
I did not realize it, but I have the same issue on the one device I am testing v4.0.8 on, because I had that box checked. I unchecked that setting and closed and reopened the app and I get the same result on my Nextbook Ares 8a with Android 6.0.1. On my 4 other Nextbooks, I have v3.3 and I always get a reboot dialog unless I choose not to show it.