yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] jcmm11:
Since that looks like a static list you can copy it locally, modify it, then add it to your sources list using the file protocol.

Attached is a modified version you can use.
[Android Apps and Games] Sui77:
Any idea how to enable 4.2.8 in Android Q beta6 ?

Solved...reboot :silly:
[Android Apps and Games] andy356:
Try setting the Redirection IP for both 4 and 6. I use 0.0.0.0 and :: respectively. See if it solves the issue.

Edit: Never mind. It doesn't. My hosts file doesn't have those entries.

[MENTION=2822685]PerfectSlayer[/MENTION] I think it would be good to add a feature so such entries can be added with the redirection IP or at least the default localhost IP prepended to them.
[Android Apps and Games] zgfg:
Nope, it doesn't work - if I enable only this hosts source (with Redirection to 0.0.0.0 and IPv6 enabled, AdAway still imports empty list)

Thanks, this of course, works, but if I eg start with this hosts file (with added IPv4 and IPv6 addresses for localhost), then enable AdBlocking with 'regular' hosts sources, then disable AdBlocking - AdAway returns back to its default hosts file with only localhost FQDNs.

But ok...
[Android Apps and Games] jcmm11:
What would you expect to happen? If you disable ad blocking why would you expect anything other than a return to the default hosts file?

Although I am a little confused by you saying "start with this hosts file (with added IPv4 and IPv6 addresses for localhost), then enable AdBlocking".

The way I meant for it to be used is to place it somewhere on your phone, assume /sdcard/imhosts. You then go into AdAway and add this file to your hosts sources list except instead of using https://<url> you use file://<file location>. So continuing the example it would be file:///sdcard/imhosts or file:///storage/emulated/0/imhosts
[Android Apps and Games] zgfg:
Of course, if AdAway is disabled that it won't work.

Seems you missunderstood, I just described that I first disabled AdBlocking (to start from the clean hosts file, than enabled AdBlocking but only with that one particular hosts source, etc

Anyway, the question I originally asked about is not solvable - and that was the only thing I was asking and interested about.

Suggested workaround (download, edit, manually copy in) is obvious (thanks anyway) but its not 'fully functional' in regards to automatic updates

The idea/suggestion for redirection (and IPv6) was interesting but it didn't work to trick the given list (as described in my previous posts).

Anyway, it's not a problem, so forget, not worth for further discussion
[Android Apps and Games] jcmm11:
Yeah, the only reason I suggested doing it this way is because it appears the list is static and not updated frequently, if at all. I'm basing this on the description in the header of the list.

#This is a list of long-lived, "immortal", malware domains

I wouldn't recommend this method for a dynamic list that gets frequently updated.
[Android Apps and Games] ardonhs:
What host I must add for Facebook adds?
[Android Apps and Games] tinko975:
Youtube vanced
[Android Apps and Games] dhacke:
Try graph.facebook.com

Besides of tracking i believe it's used for ads by facebook, too.
[Android Apps and Games] XtraWater:
Go.redirectingat get blocked. I put the link into the Whitelist. But it's still blocking. What do I miss?
[Android Apps and Games] ktmom:
Did you reapply Adaway and reboot after updating the whitelist? Does the site work correctly if Adaway is completely disabled, including a reboot?

If the site works without Adaway applied, leave the host file stock and then use the Log DNS Requests feature. It's possible there are several urls that need to be whitelisted.
[Android Apps and Games] Doomkopf:
oops, nvm
[Android Apps and Games] ktmom:
Blacklist to to prevent access to the domain.

Whitelist to allow access to the domain.

You use the whitelist to allow access to a domain that is in a downloaded source. Adaway will then exclude the domain from the downloaded source, from being redirected in the device hosts file.
[Android Apps and Games] Doomkopf:
You're right, I just checked
[Android Apps and Games] mrrocketdog:
[MENTION=6617276]ktmom[/MENTION] , have missed U. :)

err on the side of kindness
[Android Apps and Games] manojl76:
Hi still have problems with AdAway before pie work very well but now in my s10 doesn't work I have ads even in xda app don't know what to do more
[Android Apps and Games] santimaster2000:
Hi, quick question, I have AdAway working (Downloaded through F-Droid), I have it enabled (Superuser privileges) on Magisk, but I can't see any settings/options.

I'm running Android Pie on a rooted Razer Phone 2, I have a friend with exact same setup, but he can see the settings/options.

OK, problem solved, the settings just don't show up if your system language is "Español (Estados Unidos)", basically, spanish, not a big problem, but a bug none the less.
[Android Apps and Games] ktmom:
Start with some basic troubleshooting. What is the size of your hosts file? Typically, the stock hosts file is only a few bytes (e.g. 33 bytes). Look at the contents of the file in a root file explorer. There should be a banner that indicates the file was generated by Adaway.

If it's clear that the hosts file is being created, then Adaway has done it's job. So now you need to discover why it's being bypassed.

Did you reboot after applying Adaway?

Does your mobile network have any proxy? If so, disable the proxy.

If the problem is on mobile data, then if you use wifi, do ads get blocked?

---------- Post added at 21:06 ---------- Previous post was at 21:02 ----------

That might be worth reporting as a bug report on https://adaway.org. Scroll towards the bottom of the page for the reporting link.
[Android Apps and Games] manojl76:
Hi thanks for try helping me

Host file almost 5mb

Yes every time I update the host I reboot

Doesn't have any proxy

Ads show in mobile data and wifi
[Android Apps and Games] ktmom:
Ok, let's try something really basic. Please open a local shell in a terminal app (connectBot is one option).

Gain root permission by typing "su" in the terminal.

At the root prompt, usually a #, type "grep google.com /etc/hosts". You should see output similar to the following:

The number group at the start of the line is the IP address the domain will be redirected to. In my case 127.0.0.1.

Choose one of those entries and ping it in the terminal, "ping adservices.google.com". The output should show the IP address it's redirected to in the hosts file.

If this is working correctly, then either there is a proxy serving ads, usually through the router on WiFi, or a proxy entry in the mobile data APN setting or SIM card.

If ad blocking works in some apps, such as in a browser but not other apps, that usually means the problem app is not using domain names, but rather IP addresses which Adaway can not help with.
[Android Apps and Games] santimaster2000:
Totally worth reporting, the problem is, it requires a GitHub account.
[Android Apps and Games] XtraWater:
Thank you.

Yes, after disabling and restart the phone the site works. I try to figure out which other URLs are needed.
[Android Apps and Games] osm0sis:
... which is free. :confused:
[Android Apps and Games] manojl76:
I try to ping and have passed more than one hour and didn't finish
[Android Apps and Games] ktmom:
You need to pass a control C to end the ping. Otherwise it will go forever

What IP address is being returned? A screenshot would work.
[Android Apps and Games] jcmm11:
ping -c <number of pings>

Is the better option.
[Android Apps and Games] ktmom:
True that [emoji4]
[Android Apps and Games] santimaster2000:
And owned by Microsoft ...
[Android Apps and Games] jcmm11:
You won't find anyone who tries to steer clear of MS more than me. I dropped them when Vista came out. Try to avoid them or their products whenever possible.

That said I'm not as fanatical about it as I am with Facebook. When it comes to Facebook I tell people "it's evil. Kill it. Kill it with fire".

Now if GitHub was owned by Facebook I'd agree with you. If it had been originally developed by MS I might agree as well. But they bought it and by all accounts don't want to mess with it since they know the developers using it would just leave and go over to bitbucket or gitlab.
[Android Apps and Games] maxkolonko123:
Hey,

After updating my op6t with new OTA i cant get to work adaway, first it starts with not enough space in system/host, then i change location and we have symlink missing after creating symlink and restart problem persist
[Android Apps and Games] guest4711:
If you use Magisk as root solution leave the AdAway settings at default (/system/etc/host; no symlink) and make sure to enable "systemless host" in Magisk Manager (actually a module). After rebooting AdAway should create a new host file.
[Android Apps and Games] maxkolonko123:
Thank you it solved my problem :)
[Android Apps and Games] martyfender:
It sounds like you didn't enable the systemless hosts option in Magisk Manager settings and rebooted, for it to be enabled, just like any other module that you install.
[Android Apps and Games] guest4711:
Glad we could help.
[Android Apps and Games] orgert:
suddenly today youtube started to show ads even though adaway looks like its working , i never had any ads before with adaway.

anyone else experiencing this ?
[Android Apps and Games] ktmom:
YouTube has been a problem app for a long time. Possible you updated or something. Most people use alternatives. This has been discussed many times in this thread.
[Android Apps and Games] orgert:
yes , i know about the circumvent thing youtube is doing to prevent adblockers, but its been years that i never had ads on youtube when using adaway, and i thought maybe something changed .

thank you for your response.

i'm also using vanced and newpipe as alternatives.

have a nice day :)
[Android Apps and Games] nadeemakhtar1994:
Since few days apps which did not show apps have started showing ads. Anything broken?
[Android Apps and Games] PoochyX:
Could be your host file

(Piped Your Baby Momz)
[Android Apps and Games] ktmom:
That's too little information. Did the affected apps update? They may have changed the servers they're using or changed to IP addresses. As suggested above, have you checked that your hosts file is populated? It should be larger than the stock 33 bytes and contain a banner that indicates it was compiled by Adaway. Finally, have you DNS logged while using the problem apps?
[Android Apps and Games] santimaster2000:
Alright OK, I'll make an account tomorrow, just so I don't surrender my sould to Bill Gates for no real reason, has anyone else reported this bug ?

OK, bug reported:

https://github.com/AdAway/AdAway/issues/1241

Another question, is it normal that I'm still seeing ads on some adult (Hentai, yeah, don't judge) websites ? I'm not seeing them on my PC (Firefox, uBlock Origin).
[Android Apps and Games] madbat99:
No judgement... Especially when you just state it flat out. Lol. Show no shame, get no judgement. In my book anyways.
[Android Apps and Games] ktmom:
Ublock is available as a plugin on Firefox android. It works differently than Adaway so it can block some things that Adaway cannot
[Android Apps and Games] santimaster2000:
It never crossed my mind that I could just install uBlock on Firefox for Android XD

Done, problem solved !
[Android Apps and Games] PerfectSlayer:
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 [MENTION=367992]yky[/MENTION] for its helpful bug report, [MENTION=7280276]ipdev[/MENTION] 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)
[Android Apps and Games] ogisha:
Install uBlock mobile.

It is regular uBlock adopted for mobile version of Firefox.
[Android Apps and Games] andy356:
There is only one official uBlock Origin extension, which works on both desktop and Android versions of Firefox.
[Android Apps and Games] curiousrom:
uBlock Origin - XDA AD-FREE Ads!

uBlock Origin for Microsoft Edge works great on my Windows 10 PC.

On https://github.com/gorhill/uBlock :

Chromium

Firefox

Microsoft Edge

Safari (macOS)

***

And now as seen in the attachment you have a "nice" clickable XDA AD-FREE advertising button under your avatar when this thread is viewed in a PC browser. ;)

Just curious: can you replace it with a country flag in your edit XDA profile page by adding a City & a Country?

Edit: Oh My Gosh that advertising button is also after your username on the top of every page in this thread. :eek:

But thankfully it can be removed with the uBlock Origin Element Picker Mode feature.

BTW thanks for your continuous AdAway support & this new update. :good::cool:

***
[Android Apps and Games] iosonofrancesco:
it seems that latest Android 10 broke AdAway, latest Magisk canary build with the Systemless Hosts module, i have the "not enough space" error.

09-03 21:32:12.856 10730 10757 I AdAway : Copy hosts file with target: /system/etc/hosts

09-03 21:32:12.856 10730 10757 I AdAway : Size of hosts file: 1782315

09-03 21:32:12.856 10730 10757 I AdAway : Checking for enough space: Target: /system/etc/hosts size: 1782315, availableSpace: 0

09-03 21:32:12.856 10730 10757 E AdAway : Not enough space on partition!

09-03 21:32:12.856 10730 10757 E AdAway : Failed to update hosts file.
[Android Apps and Games] laupuy:
Strange, it's ok for me Pixel 3, Android 10 QP1A, adaway 429, latest magisk canary.
[Android Apps and Games] iosonofrancesco:
:eek: weird, same as you but i have the storage error.

EDIT:

ok, found the "problem", i had the core only enabled on Magisk, it was fine on 9 but not on 10, disabled, rebooted and AdAway works!
[Android Apps and Games] Christoph21x:
Dear All

I searched the thread but couldn't find a post that could answer my question. I thinking about "misusing" AdAway (if possible) - as I've got a actual problem and using the firewall is... let's say "user unfriendly".

1. Can I also use AdAway for

- Inbound blocking of selective IP/ports?

Background:

- I'm using (only) SIP telephony and get every day after a couple of hours (and then many times in succession) direct server-based calls. They just seem to want to disturb (and they DO). From my NAT I can see the IP addresses (and ports) from which they come from.

- Can I also block INBOUND traffic specific to IP addresses (and ports/port ranges)? My problem is not the outbound traffic (maybe only the "RINGING" statement that is sent back).

Before you ask: my Firewall (AFWall+) COULD do this, but it's script-based and the interface doesn't work well. By far too complicated. If I only could simply add it to "my lists" within AdAway...

I didn't find any information on that - from what I read.

Would be an easy and conveniant way ... IF (see #2)

2. BUT - even if:

- Adding a negative list entry requires a DNS entry. Is there any way I can add a simple IP address? (Which I always can see from my NAT.) Didn't find a way.

- Does AdAway always require a DNS address? Now really talking about AD away: What if a raw IP address is coded (as often) directly in a source code?

Thanks in advance, friends - with kind Greetz from Switzerland - Chris

PS: please excuse me, if my questions might be silly, newbee in this thread.
[Android Apps and Games] jcmm11:
Can't do it. AdAway

1 - requires DNS entry. No way to add some IP.

2 - no way to block selected ports

3 - if a raw IP address is coded AdAway will have no effect on it. This is one reason some apps don't get their ads blocked.

You have to learn some iptables coding. For what you want it shouldn't be that difficult, you should be able to find examples that you can basically just copy.
[Android Apps and Games] Christoph21x:
I know IPTables coding, wanted to avoid it... ?

Thx for your clear answer!
[Android Apps and Games] yldlj:
Seem to be getting ads in the twitch app since 4.2. 8
[Android Apps and Games] creeve4:
For others getting the not enough space error after upgrading to Android 10:

Make sure you re-enable Systemless hosts in Magisk settings and reboot. Then try again.
[Android Apps and Games] rester555:
What are you guys using for your source hosts file location? data/data/hosts? Or /system/etc/hosts? I am trying to install on Pixel 2 XL Android 10 (.020 factory image) and it throws up a logcat.

EDIT: set source hosts file to /system/etc/hosts after hitting systemless in magisk and it works! Thanks for the posts on this guys!
[Android Apps and Games] ktmom:
Delete. Missed that the issue has been identified [emoji849]
[Android Apps and Games] JJT211:
Da man!!
[Android Apps and Games] chasehammer:
Yep works on Android 10 now. It wouldnt with Magisk Core Only, turned that off (full w/modules) and worked perfectly now.
[Android Apps and Games] Unknowx:
Can you tell me why the ads are displayed this way? One plus 7 Pro.
[Android Apps and Games] ktmom:
That's the iframe displaying an error because the domain is not responding (which is exactly what Adaway helps you do). If you use Firefox, the is a add-on called uBlock Origin which will help with this.
[Android Apps and Games] Unknowx:
but this problem is also in Google News So the problem I don't think is just the browser.
[Android Apps and Games] ktmom:
Adaway can only redirect the offending IP addresses to a dead end. It can not reformat the presentation in a webpage or in an app. The domain the ad is calling is not responding so the error gets displayed. It's not really a "problem", it's reassuring that the ad domain is being prevented from serving ads to you.
[Android Apps and Games] Unknowx:
Ok.. but if I try to uninstall ad away the problem remains the same.

and before this app I correctly visualized everything.

Most likely it is a problem due to the fact that I did not immediately deny Systemless changes and generated the host file from Magisk?
[Android Apps and Games] ktmom:
When you removed Adaway, did you revert back to the original host file using the "disable ad blocking" button, then reboot first? Then remove the app if you want to.

You can toggle back and forth applying Adaway then disabling ad blocking without actually removing the Adaway app. But you do have to reboot after changes.
[Android Apps and Games] martyfender:
I'm not sure, as per rules, this is an all English forum.
[Android Apps and Games] DiamondJohn:
A lot of apps use browser elements to display content. Google News uses browsers extensively.
[Android Apps and Games] Unknowx:
ok thanks, i thought that displaying ads like this was an ad away problem.I realized that in reality he cannot eliminate the "graphic" part such as ad block plus for Chrome.

Thx
[Android Apps and Games] cnjax:
Anyone else experiencing host blocking being disabled on its own, I'm on the latest build version 4.29 I believe. Have to go in every couple of days and re-enable
[Android Apps and Games] githyanki:
The last time I heard of this, someone had adblocker built into the ROM that was setting host file back to default.
[Android Apps and Games] cnjax:
Thanks, but I've been on the same rom, and never had this problem on previous builds
[Android Apps and Games] PoochyX:
Hope you fix it

([emoji3590]09-09-18[emoji813])
[Android Apps and Games] visceralpsyche:
Is it possible to have an option to replace the ad error text with a 1x1 transparent pixel like is done by pixelserv in some ad blocking programs? That would help clean up webpages in browsers which don't use ublock origin et al.
[Android Apps and Games] guest4711:
No. AdAway is a dns based blocker. It blocks access to some sites, but does not manipulate the contents of the data received. (And doing so on encrypted contents would be possible with breaking security only, e.g. Man-in-the-Middle-Attac)

If you are using a Firefox based browser you may use uBlock-origin as addon for hiding the errors.
[Android Apps and Games] PerfectSlayer:
You could enable web-server from the app settings.

It will serve a blank page for all redirected requests but it does not work with HTTPS.

The main issue is to have a valid certificate for the server so it is quite limited because TLS is now deployed everywhere.
[Android Apps and Games] BlueMan_86:
Since my phone is updated to that EMUI 9.1 it is Huawei Honor View 10 on 9.1.0.329...

Its added that EROFS tehnology...

My host is on same place like before..

/system/etc/hosts

But AdAway cant work.. It says NOT ENOUGH SPACE ON PARTITION!

Can you update AdAway to support EROFS tehnology...
[Android Apps and Games] githyanki:
Are you rooted with latest magisk and enabled the systemless host module?
[Android Apps and Games] BlueMan_86:
Yeap man.. Always latest magisk.. Done that system less also.. But nothing.. After that EROFS system partition update.. Something changed.. Also my busybox have problems it can install automaticaly.. But can manually... EROFS change some rules in system partition... So AdAaway need to update with that...
[Android Apps and Games] jcmm11:
Double check that the system hosts module is enabled. It should be listed under Modules.
[Android Apps and Games] BlueMan_86:
THATS THE SOLUTION.. NOW IT WORKS...

Thanks man...
[Android Apps and Games] jasiorr:
Hi.

I can't find those settings for disable ads when mobile internet is on . Help ? I use OnePlus 6 no limitsrom on oxygen 9.0.8 os.

Any tips?
[Android Apps and Games] meiser:
Hi,

my new Xiaomi device is a system-as-root A-only device, meaning that the system partition is part of the rootfs, there's no /system mounted anymore.

I have LOS 16.0 with the su addon running on my device. It seems that AdAway doesn't handle this scenario.

I'd be very grateful if this scenario was handled. Many thanks in advance!

Regards,

meiser
[Android Apps and Games] apaxtc:
PerfectSlayer :) thank you for all your work !!!

"your" application is the first application I always install on a new phone (of course after root) :)
[Android Apps and Games] Doomkopf:
Maybe the solution for this is to change the target hosts file in adaway, but idk which one would be best ^^ Maybe someone here has experience with that, or you could just trial and error until you find one that works for you, don't forget to reboot after every applying tho
[Android Apps and Games] jcmm11:
What's the output of "su --help"? I may have a solution, but it depends on what su supports. Also do you have a way to run boot scripts?

(Or you could just install Magisk instead)
[Android Apps and Games] ktmom:
Adaway doesn't - can't - discriminate how you're connected to the internet. It's a domain name server (DNS) redirect. It's job is simply to facilitate the process of adding redirects to the hosts file.