yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] pratikp16:
Tried both. No matter what i do, i still get ads. I have the following on my Oneplus 6t running the latest rom:

- magisk 19.3

- systemless hosts module enabled

- symlink of /system/etc/hosts -> /data/data/hosts (this seems to be from the module rather than due to adaway)

- Adaway 4.2.6 installed

- cannot enable the Systemless hosts checkbox in Adaway, every time i try i just get a toast notification about Magisk granting Adaway permissions and then nothing else

- target hosts file set to /system/etc/hosts

Using a file manager i can see that /data/data/hosts has a bunch of entries but this doesn't seem to be picked up. Can see ads in Chrome, Firefox and apps where i wasn't seeing them before.
[Android Apps and Games] jcmm11:
Dirty flash the ROM
[Android Apps and Games] pratikp16:
I have. A few times since. And also uninstalled and reinstalled Adaway. But it made no difference.

If I disable the systemless hosts module then I get the old hosts file back but then when enabling Adaway I get the message about no space left on the system partition.
[Android Apps and Games] ipdev:
What module is setting that symlink?

Unless there is a reason for it, that symlink should not exist.

To remove it manually, boot into recovery (TWRP), mount system and delete /data/data/hosts

Warning! You need at least a stock hosts file in system/etc/ .

My guess, your fighting another issue.

Sidenote:

Odd as it sounds, AdAway seems to fail when my Magisk install was or became broken.

Other apps and modules may work or at least seem to work fine but, if AdAway gave me problems, most of the time it was magisk. (Probably due to the changes in magisk.)

A clean install of magisk normally fixed it.

PS.

I attached the hosts file from 6t (Beta 14) for reference and just incase you need a stock hosts file.

(It's the same as any other generic android hosts file.)

added .txt so I could attach it.

Out of curiosity, how much space is free in system?

(Most file explorers, an app like DiskInfo or df -ah from shell will show used and free space.)

I set the same symlink on my Nexus 6P and did a little testing.

I tried without and with systemless hosts enabled.

Forgot about the reboot step when not modifying the hosts file systemless. After a reboot it worked.

Remember, some apps/sites will save ads in a cache file for off-line use. If you block the ad server afterwards, you will need to clear the ad cache.
[Android Apps and Games] DiamondJohn:
Have you tried pinging one of the hosts blocked in your host file?

If it is getting through, the next thing I would research is what DNS server is really being used. I had issues where hosts were not being blocked while on mobile data, but were over WiFi. I checked, and the DNS server was different under Mobile data. Once I changed that, all ads were blocked under both.
[Android Apps and Games] pratikp16:
Thanks for the help and hosts file! So the issue is that the /system partition is full after the recent update for the OP6T. Seems to be affecting other users as well: https://xdaforums.com/oneplus-6t/help/partition-t3865724

Sorry for bugging the Adaway thread about this!
[Android Apps and Games] PoochyX:
That's what we here for

([emoji3590]09-09-18[emoji813])
[Android Apps and Games] guest4711:
If you are using it systemless no need for more space on /system. The hosts file is build at /data/adb/modules/hosts/system/etc/hosts and mapped into /etc/system.
[Android Apps and Games] Ramihyn:
The Wifi hotspot is simply a lowlevel network bridge, it does not work as a proxy, and especially it does not perform any nslookups. So, yes, you need to install another ad blocker on your car device.
[Android Apps and Games] zoneezonee:
Hi. I have OP 6T without ROOT. Do I may grant write permission to ADAWAY using ADB ?

Like that:

adb -d shell pm grant (com name - I dont know adaway name) android.permission.WRITE_SECURE_SETTINGS

Or this is imposible ?

PS. wher adaway inslal package ? package name (com.oasisfeng.greenify)?
[Android Apps and Games] Oswald Boelcke:
You do require root.

Quote from the OP:

And a quotation from the Wiki:
[Android Apps and Games] wodgey:
Apologies if this question has been asked before.

I've installed adaway on my daily driver phone and love it. I was wondering if I could copy the hosts file from my phone and paste it over (using temporary root) the hosts file on my new Amazon tablet, to have the same sites blocked but without needing permanent root.

Thanks in advance
[Android Apps and Games] Wolfcity:
If you have the latest version (4.2.6) there's an enhanced option to backup/restore all host files and lists.

Even older builds allow you to import/export your host lists. Just go to "my lists" , 3-dot menu import/export all lists. If you're on 4.2.6 you'll get a json file that can be imported to the other device.

Edit: Sorry, didn't read your post exactly, if you're not rooted permanently it's another thing as you don't have AdAway on the device. But pasting the host file should work if you don't use systemless mode.

Someone correct me if I'm wrong.
[Android Apps and Games] jcmm11:
[MENTION=5237901]Wolfcity[/MENTION]'s edit is correct - that should work
[Android Apps and Games] mark_at:
Thanks for the information.

I thought so.

A pity that blokada or DNS66 do not work as perfect as adaway does. But I do not want to risk rooting my car radio device.
[Android Apps and Games] wodgey:
[MENTION=5237901]Wolfcity[/MENTION]

I can confirm that you're both correct.

For some reason exporting didn't work but a simple 'cat /system/etc/hosts > /sdcard/hosts.backup' worked perfectly for the backup.

Then it was a simple case of using root explorer to dump it onto my tablet. :)
[Android Apps and Games] jcmm11:
You could have just used "cp /system/etc/hosts /sdcard/hosts" or just used root explorer to dump /system/etc/hosts without copying it to sdcard first.

Export is a different format.
[Android Apps and Games] wodgey:
Yeah, you're right. Lots of ways to copy a file.

There was no file created, in the location specified started. (Adaway-export wasn't written to either my internal storage or my sdcard)

It's all good though as my way worked for me.
[Android Apps and Games] PerfectSlayer:
Hi all,

No news about v5 here or new feature here.

I spend a lot of hours to merge and fix all the translation PRs and provide some support on GitHub.

I hope it will solve the menu drawer issue for most of you (otherwise, you really need to fix the translation first on transifex).

So, boring update it is but update nonetheless =)

Changelog:

Fix TravisCI build issues

Update translations

Download:

AdAway 4.2.8 on AndroidFileHost (md5: 93b51d2fc8ecadc46a4309f3af0faa09)
[Android Apps and Games] ipdev:
Hi all.

Awhile back, plain-text http links were eliminated.

Android Security update.

Personally, I use minimum host blocking.

I'm not the best at updating it. ;)

http://winhelp2002.mvps.org/hosts.txt was one of the default host sources.

Since http plan text will not work with the newer updates. I got around it by making a static mirror.

The last time I updated it, I asked if I could share a mirror link.

Got "I don't care." as a response.

I tried to create a dynamic mirror link.

Tried using PHP and HTML5, both kicked my butt.

Most likely a dumb user error. Damned if I could find it. Got close with PHP though.

Just got around to updating my static link again.

If anyone in interested - winhelp2002.mvps.org-mirror

Appreciate it if someone could help me create a working dynamic link.

Please PM me if you can help.

Cheers all. :)
[Android Apps and Games] Nergal di Cuthah:
If you use adaway 3.3 you can use mvps. Take a titanium backup of 3.3. install the latest adaway over 3.3. Restore data only of adaway from titanium backup. This allows mvps to be used and updated in 4.x
[Android Apps and Games] ipdev:
Thank you.

Forgot about the update work around.

Didn't realize it still worked.

Did not have time to test but, does it work using the export/import option in AdAway?

Just curious. If it does, then you could skip installing 3.x and just import your hosts list to 4.x

Not exactly what I was looking for but, it may help others. ;)

Cheers.
[Android Apps and Games] nirogu325:
I backed up my 4.x hosts entries and added the mvps hosts manually inside the json file using Root Explorer and then I imported it again. It worked although it says "Unknown update status" right below the mvps entry. I tried to upload a screenshot but the XDA app is being an a s s. When manually adding the entry be careful by emulating the other entries (you'll see the URLs have a \ before each /).
[Android Apps and Games] PoochyX:
One host file can do the trick... 4 is overkill

([emoji3590]09-09-18[emoji813])
[Android Apps and Games] Nergal di Cuthah:
You gave me an idea which works.

1 Enter mvps address as https

2 export host sources in adaway

3 in a text editor open the backup json file

4 delete the s

5 in adaway remove the https mvps from sources

6 import the host sources in adaway

7 profit

Edit: damn ninja'd and didn't even know it
[Android Apps and Games] nirogu325:
...what? I was referring to the AdAway build hence the dot and the x.
[Android Apps and Games] AdroitAdorKhan:
Energized Protection got your back! Here you go - https://github.com/EnergizedProtect...assets/active/filter/winhelp2002.mvps.org.txt

It's filtered and updated daily. :)
[Android Apps and Games] DiamondJohn:
Or use a proxy: https://xdaforums.com/showpost.php?p=77950742&postcount=12138
[Android Apps and Games] Nergal di Cuthah:
Did you ever try it in adaway? the post you linked says you hadn't tried it in adaway.
[Android Apps and Games] andy356:
Use Steven Black's basic hosts file. It contains MVPS and a few others, and is HTTPS as well. It's also not very huge (~3 MB, I think).
[Android Apps and Games] DiamondJohn:
No. I use another host downloader, but find this thread useful for learning related methods/techniques/topics.
[Android Apps and Games] rayman95:
Not yet on fdroid and not compatible with the old version....
[Android Apps and Games] Bigb12:
I'm on 4.2.3 Can I update the app without having to remove the host file and uninstalling the old apk?
[Android Apps and Games] hugohthuang:
Yes. You can.
[Android Apps and Games] Wolfcity:
As far as I know the builds here on XDA and the ones on F-droid are signed with different keys so updating without uninstalling works only from XDA to XDA version, the same for F-droid .

So it depends from where your installed build is coming from.
[Android Apps and Games] oroboros74:
Is it not possible to just have an in app update notification?
[Android Apps and Games] discodestroyer10:
I tried to use Search but no luck...

AdAway blocks card payments on basically any site. I use Nationwide and Visa cards. I need to turn AdAway off and reboot every time I want to but something online using web browser.
[Android Apps and Games] githyanki:
Have you read the FAQ? Turn on DNS logging, then run your app, and then white list everything.
[Android Apps and Games] discodestroyer10:
Thanks man - it worked! Sorted out this and even have live updates from disqus now, which I never had before with AdAway.
[Android Apps and Games] Zilla0617:
I tried doing this with slickdeals app but nothing shows on the dns logging list
[Android Apps and Games] adl:
Where can I find the host file? I also have problems with Tapatalk getting error message and not showing pictures.
[Android Apps and Games] kingvortex:
Add *.tapatalk.com to your whitelist (menu key, your lists, white) and reapply. That should solve any problems you're having.
[Android Apps and Games] satyamdhaker:
Well works on canvas turbo...thanks
[Android Apps and Games] DJxSpeedy:
thx kingvortex that works great

send via Samsung Galaxy Nexus with Tapatalk 4
[Android Apps and Games] kingvortex:
You're welcome. :)

I've now requested all URLs from the tapatalk.com domain be removed from the offending host source (hosts-file.net), as I believe the reason they were added is not valid. Hopefully the site admin gets back to me on their forum and rectifies this sometime today, but it appears he's a busy person, so we'll have to see.

Edit - They've been removed, so it appears that the peer review process on the site does work. It would be better if they checked what these URLs are before breaking a legitimate app on the word of one user that was annoyed by a popup that can be permanently dismissed though!
[Android Apps and Games] Tsukasa Buddha:
A note for Pocket Casts, and probably other podcast aggregators, some podcasts like Linux Outlaws and Linux Unplugged won't download. After attempting to there was an error message saying the connection to /69.16.232.40:80 timed out. I added *69.16.232.40 to the whitelist and they now download. It is Podtrac which seems like some sort of audience demo/advertising service.

Only mention I found in lists was at:

http://winhelp2002.mvps.org/hosts.txt
[Android Apps and Games] Hgneto:
CNET problem fixed, just having problem now with BBC news, because I can't load the videos.. Anyone can help? Already white listed..
[Android Apps and Games] Blizzard22:
Enabling Adaway causes browser to close without any warnings. Expecially websites like wikia are crashing regularly in the PC UA. Is there a way to fix that? Only Opera is not crashing. I've read that webserver will not cause crashes but it don't work (I switched webserver to on in settings but wenn I close the app it's off again).
[Android Apps and Games] UPdownLoAD:
As of some update this week, I can no longer use Show Box app; it force closes. If I disable AdAway, it works. I'm assuming I need to add something to my whitelist, but I don't know what. Anyone else with this problem? I'm sure there's other Show Box'ers out there :angel:
[Android Apps and Games] Pons:
Use the log dns request option to answer this for yourself.
[Android Apps and Games] shobuddy:
When the host file is updated, AdAway shows a warning that a reboot "may" be necessary for the hosts file to take affect. I'm curious as to whether the reboot is actually necessary or if its just a precaution. I'm running a Nexus 4 on the latest version of KitKat.
[Android Apps and Games] UPdownLoAD:
Damn, that was easy and an option I never knew was there!! Thank you VERY much!!
[Android Apps and Games] wonsky21:
I'm a bit confused... The topic header says 03.03.2014, but timestamp in downloaded apk says 02.28.2014.
[Android Apps and Games] Pons:
That would be the d4rken mod.
[Android Apps and Games] UPdownLoAD:
Just a quick FYI for those having problems using Show Box- these 2 need added to whitelist (ignore above screenshot) to stop it from force closing:
[Android Apps and Games] Cyclu:
You don't have to reboot after each update by cons it's necessary after first hosts installation. Also you can hide the warning dialog in settings.
[Android Apps and Games] an0n981:
One good reason to reboot is that it empties the DNS cache. Otherwise a DNS may continue to be reachable even after it has been added to the host file
[Android Apps and Games] Cyclu:
Hello my friend! Glad to see you:)

Yes I know about DNS cache well explained in AdAway help>faq but when we add an url to the whitelists it works without reboot.:confused:
[Android Apps and Games] an0n981:
As long as the url is not cached, a reboot is not needed. I'm sure there is also a linux command to flush dns cache, just don't ask me what it is
[Android Apps and Games] dhacke:
Is your private dns deactivated? If not, turn it off and try again.
[Android Apps and Games] BlueMan_86:
I have HUAWEI HONOR VIEW 10 V9.1.0.325.. Since this update i was abble to use adaway without problems... BUT when i updated to this EMUI 9.1 version EROFS Tehnology.. It does not work anymore... Even when I change hosts... Not work.. Need solution from you or update app :) please respond me here and quote me... About future.. Thanks...
[Android Apps and Games] oroboros74:
Can someone explain for dummies what the option "enable IPv6" is and if general users should enable it or not?
[Android Apps and Games] dhacke:
Without that option AdAway adds entries only for IPv4. So blacklisted entries from apps will be blocked as long as the apps use IPv4 for the connection try.

When the app uses IPv6 it comes through. To prevent that you can activate option "Enable IPv6" so that blacklistes entries are blocked on IPv4 and IPv6.

Technically AdAway just add ::1 to the blacklisted entries so that connection trys ends on your local device on both protocols.

I would activate it (just for safety).

I hope my explanation was "dummy" enough:)
[Android Apps and Games] josdehaes:
Same problem here.

---------- Post added at 08:24 AM ---------- Previous post was at 07:57 AM ----------

Same problem here on P20 Pro.
[Android Apps and Games] ludester:
OnePlus 7 pro, loaded adaway and installed host file. Rebooted phone but phone still shows ads on chrome
[Android Apps and Games] guest4711:
Search for chrome in this thread. You'll find the notes you should disable asynchronous dns and datasaver in chrome (and some more)...
[Android Apps and Games] CAExempt911:
Need a little help, i have a number of whitelists I need to add which are individual URL's straight from pfsense.

is there a way to bulk import a whitelist file from a .txt file created on desktop and transferred to device?
[Android Apps and Games] ipdev:
I'm not sure if there is an easy way to add a list of domains to your white list.

You can convert your list into a white list host file and add it as a host source.

Just add white before each domain white edge.mqtt.facebook.com

Copy the white list hosts file to your device.

Then under host sources, add it using the file:// option.

If you copied the txt file to the root of your main storage (/sdcard/) it would be

file:///sdcard/whitelist.txt

(Yes that is 3 / ) Then update hosts.

Attached is an example of a white list hosts file.

(Notice each one is on it's own separate line.)

Empty lines and comment lines (lines starting with #) are ignored when importing.

If you look at the screenshots, you'll notice the first domain, db6.net-filter.com is gone on the one using the example whitelist.txt[/I]

Cheers.
[Android Apps and Games] oroboros74:
There are a few safe sites that I can't access because of err_connection_reset and they work if I disable AdAway (sites like cnn.com asking others, so not "hacky" websites). I don't have VPN or anything. Any suggestions?
[Android Apps and Games] Doomkopf:
Which host sources do you use? Seems like he also implemented a "fake-news" filter... Some sources don't only block ads/malware, some also disable things like this (also, there are social media blocker etc)
[Android Apps and Games] elreydenj:
The not enough space issue has crept up on Q Beta 6. I can no longer enable systemless from within the app. Nothing has changed for me in comparison to what i did on Q Beta 5. Anyone have any info or experience with this?

Nevermind: forgot there was a systemless option to check within magisk. All is well.
[Android Apps and Games] oroboros74:
Besides what is included in AdAway i have one from yoyo.org and stephenblack. I did try to white list cnn, for example, but that didn't do anything. Suggestions?
[Android Apps and Games] dingsaller:
Just tried cnn.com with my standard browser firefox and it works without probs - which browser do you use? It seems not to be related to adaway
[Android Apps and Games] oroboros74:
I get ERR_CONNECTION_RESET on Chrome.

Any suggestions on how to troubleshoot?
[Android Apps and Games] guest4711:
The usual way: Disable AdAway, start dnslogging, open the page in chrome (it should work now). Whitelist the logged hosts in AdAway. Enable AdAway...
[Android Apps and Games] DiamondJohn:
This.:good: The only problem with this is that ad hosts will also sneak through and it may be hard to distinguish which is an ad host and which is a host required for site functionality.

But, if that doesn't get you what you want, the other low-tech/brute-force way I have personally used is to:

Save off your current full hosts file

Go back to the default minimalist host file

check it works (assuming it does)

use the top half of the orig hosts file

check if it works now, if it does not, half the file again, an repeat until it does

if it does work, grab the next 1/4 off the original, and repeat (half each time so the next 1/8 etc)

Basically, its a brute force test to find the offending lines in your hosts file, but you will be surprised how quickly using the halving method actually works. Especially if you don't have to reboot every time.

If everything goes to plan you will have the offending lines, which can then be whitelisted.
[Android Apps and Games] DonDizzurp:
I've been using AdAway for YEARS

I put it on every single android device I own

What's the best way to donate? I feel like I owe someone a lot of money for this app.
[Android Apps and Games] chooks06:
Go to the first post and tap on the "pefectslayer" link under "contributors".

When the page opens, there's a PayPal link.
[Android Apps and Games] kancrutt:
anyone knows how to resolve twitter shortlink problems? "t.co refused to connect." is it relsted to adblocking?
[Android Apps and Games] konsoleto:
Go back and click the link again. It should open.
[Android Apps and Games] kancrutt:
not works
[Android Apps and Games] sterno2:
does anyone have a list to use with adaway that blocks youtube ads ?
[Android Apps and Games] dhacke:
I suggest to try NewPipe. No ads at all and FOSS (and much more privacy friendly than the official YT APP).

If you just watch YT Videos the app is enough.

I'm not sure whether it is possible to login with the own Google account. If yes better use a extra account for the app; from Google agbs the app is not allowed.

On the other side google didn't take steps against that app in the past. But nevertheless with an extra account you are safer.
[Android Apps and Games] DiamondJohn:
The other common choice is Vanced: https://xdaforums.com/android/apps-games/app-youtube-vanced-edition-t3758757

Also, As has been stated many times in the thread, and would of been found with a simple search, you cannot block youtube ads with a hostfile.
[Android Apps and Games] duh1:
Last two versions of the app continue to show "Newer hosts file available" right after updating. Previously after updating, hosts file was shown as being up to date.

Is this an issue with the app, or an issue with the blacklist source?

Using...

https://raw.githubusercontent.com/EnergizedProtection/block/master/blu/formats/hosts

Thx for the support...
[Android Apps and Games] Nergal di Cuthah:
Prob blacklist url is throwing up a negative time stamp (new for -72 hours for example) stevenblack does that sonetimes and like energized it's a github address.
[Android Apps and Games] dr4go:
If so... why not doing something like max(0, time_stamp) when checking for newer hosts?
[Android Apps and Games] duh1:
[MENTION=2822685]PerfectSlayer[/MENTION]

Hosts list update time now at midday today shows...

Updated: Wed, 14 Aug 19 20:08:16

So list time-stamp is wrong or in Asia, but no time-zone indicated. App still shows update available directly after updating.

Given that lists can have time-stamps in a variety of formats with or without time-zones, this app should simply store the time-stamp string for each list downloaded and compare it to the server list to see if an update is needed, or simply use the date-stamp alone, as users will rarely update more than one a day...
[Android Apps and Games] zgfg:
Sorry if already asked/answered similarly:

Is it possible to (automatically) import/update list of blocked hosts from the source:

https://mirror.cedia.org.ec/malwaredomains/immortal_domains.txt

Problem - It lists only the hosts

wittyvideos.com
woo-gie.com

Ie, by omitting the (local) IP addresses:

127.0.0.1 wittyvideos.com
127.0.0.1 woo-gie.com

Hence AdAway ignores its whole hosts list if adding such source to the hosts sources list
[Android Apps and Games] guest4711:
You could use a shell script to translate the list (e.g. by using sed or a read/echo combo). AFAIK no direct import to AdAway possible. But perhaps someone hosts a translated list in required format. Ask your preferred search engine.