yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Doomkopf:
You can use the host sources of adguard, so did I (additional to the default adaway hosts). You can find them here . Choose the one you want and click on "view all rules", and copy the URL of that new site. Pretty useful stuff in there, so I think it's very benefitial because I like the filter lists of adguard (especially mobile ads and annoyances)..
[Android Apps and Games] DiamondJohn:
OK, I am a little confused. The "rules" that adguard use are VERY adguard specific. I have been of the understanding that AdAway can only process existing host files, not expand out "Rules" from adguard. ie it combines and de-dupes multiple host files.

Just because AdAway can accept an AdGuard file, I would estimate it would only bring in the non-AdGuard-rules lines. ie it wont expand out the rules to a host list, which would almost be limitless. For example, AdAway cannot process a wildcard in a block list, only in a white list..

Could someone please confirm this belief for me?
[Android Apps and Games] githyanki:
Most of the rules, your right. Adaway cannot use them. The "simplified" host file that is listed on that link, I don't know.
[Android Apps and Games] Doomkopf:
Well I compared the default host sites and the ones from adguard, and their format varies significantly. So you could be right ^^ Adaway didn't show me an error when trying to apply these, maybe the dev can give clarification?
[Android Apps and Games] Txatxiquesi:
What i am doing is activate the tcpdump on adaway, and check the dns block log on adguard, every petition blocked on it i look for it on the tcpdump and block manually.

I dont know is dumb what i am doing:laugh:
[Android Apps and Games] jcmm11:
It won't show an error. In the process of merging files and eliminating duplicates it'll just drop anything it doesn't understand.
[Android Apps and Games] Doomkopf:
Yea but we don't know if it's dropping them or not, that's what I am saying :D Did some research today, turns out it doesn't merge them haha :laugh: But I found a dude on github hosting some Adguard and EasyList filterslists in the right format for Adaway, tried it and it works :)
[Android Apps and Games] PerfectSlayer:
Hi all,

A quick update to fix some bugs thanks to your feedback on XDA, GitHub and telemetry enabled users! :good:

I will wait few days for XDA users to try it then update stable version on the OP and F-Droid later if everything is okay.

Changelog:

Fix update check on disabled sources

Fix cropped label on home screen

Prevent app installation on external storage (can't launch tcpdump or web server binary)

Update work manager and material dependencies

Thanks:

Special thanks to zputnyq, Sopor-, for theirs helpful bug reports, telemetry enabled users and Paypal donators!

Download:

AdAway 4.2.3 on AndroidFileHost (md5: b7c6a4990cc242d77f1ad37881b66e55)
[Android Apps and Games] androcraze:
I'm guessing AdAway just kills or ignores any entries that it doesn't feel are valid.

I'm not a dev, and I'm too lazy to search through the code. However, if I were designing code for a hosts-file management tool.......

From this website: http://man7.org/linux/man-pages/man7/hostname.7.html

"Hostnames are domains, where a domain is a hierarchical, dot-
separated list of subdomains; for example, the machine "monet", in
the "example" subdomain of the "com" domain would be represented as
"monet.example.com".

Each element of the hostname must be from 1 to 63 characters long and
the entire hostname, including the dots, can be at most 253
characters long. Valid characters for hostnames are ASCII(7) letters
from a to z, the digits from 0 to 9, and the hyphen (-). A hostname
may not start with a hyphen."

As I imported host file entries, I'd delete any line that didn't follow the above criteria. I'd also delete any lines (that met the above requirements) that failed to follow the "hostname xx.xx.xx.xx" format.
[Android Apps and Games] Alaunus:
I couldn't find an answer to this. When I'm watching VODs using the Twitch app it interrupts the VOD at random times, the app shows the loading circle and the video does not start again...ever. The only way I've found around this is if I go out of the app, at which point the VOD starts running sound only in the background, then I go back into the app and the video sort of refreshes itself and starts running again. I have no idea whatsoever why this is happening. Any solutions?
[Android Apps and Games] guest4711:
Are you sure this belongs to AdAway? You did not even mentioned that you are using it... Better ask in your ROMs forum or in that of your app (VDO ?)
[Android Apps and Games] Alaunus:
I guess I should have mentioned I have stock EMUI 8 rooted with Magisk and I am using the stock Twitch app(is there another kind?). I am quite sure it's because of Adaway because when I disable it, the problem disappears. It does not happen if I am watching a live stream and someone rolls ads!
[Android Apps and Games] guest4711:
So you should go the hard way as described in the wiki (see 1st post): Disabling AdAway, starting dnslog of AdAway ("Log DNS Requests"), starting the twitch app, viewing your video, stopping dnslog and adding the found hosts to your whitelist. Then start AdAway again and see if it works.
[Android Apps and Games] darkbasic4:
I'm using Adaway with StevenBlack's hosts since a couple of months. Initially I was using it with system's host and it was working great, but after a while the system partition became full so I tried systemless mode. It didn't really work that well, so I moved hosts to /data/data/hosts instead. It worked for a while, but now I cannot manage to get Adaway working anymore: it applies the hosts, I reboot but I still see the ads. Any idea?
[Android Apps and Games] martyfender:
If you are using systemless hosts, you should not have had the move it to /data/data/hosts, as systemless host are saved in the data partition with Magisk's new systemless hosts module, if you have it enabled. Where are you seeing ads, in your web browser, because Adaway will only block ads in some apps, not all.

Newer versions of Magisk do not enable the systemless hosts module by default, you have to click on it and then reboot for it to be enabled. In Firefox, I also use Ublock Origin.
[Android Apps and Games] darkbasic4:
I see ads everywhere (browser, apps...). I had to use /data/data/hosts because I cannot manage to enable systemless anymore: if I click on the option it doesn't get checked (it isn't grayed out, it just doesn't get checked).
[Android Apps and Games] manish_kr:
can someone tell me how to unblock ads in a particular app?
[Android Apps and Games] guest4711:
You cannot unblock it in a specific app but you can unblock specific hosts as described in the wiki (see 1st post): Disabling AdAway, starting dnslog of AdAway ("Log DNS Requests"), starting the your app, doing whatever you want with the app, stopping dnslog and adding the found hosts to your whitelist. Then start AdAway again and see if it works.
[Android Apps and Games] jcmm11:
There is no more check mark. It's now applied as a module.

You have to reboot when you first select it. After that you'll see it listed under Modules as "Systemless Hosts".
[Android Apps and Games] darkbasic4:
There is:

https://xdaforums.com/attachment.php?attachmentid=4716738&stc=1&d=1551733416

If I click on it "Enable systemless mode" it says "granted super user rights" but it doesn't get checked. Reboot doesn't help.

I didn't manage to find it, where is that "Modules" section you're talking about?

I also noticed that Adaway fails to load the hosts file content:

https://xdaforums.com/attachment.php?attachmentid=4716739&stc=1&d=1551733416
[Android Apps and Games] Wolfcity:
[MENTION=4487388]jcmm11[/MENTION] is talking about the settings inside of Magisk Manager. There (inside the module section) you'll find the systemless host module after applying it in MM. Reboot and it will be active.

After that AdAway should work in systemless mode.
[Android Apps and Games] darkbasic4:
Done it, thanks!

Unfortunately Adaway still doesn't work because I can see ads everywhere.

Adaway can't still open the hosts file and I cannot still enable its "Enable systemless mode" either (it's probably unnecessary, but it used to work).
[Android Apps and Games] githyanki:
What version of adaway are you running?
[Android Apps and Games] DiamondJohn:
Have a read of the following post https://xdaforums.com/showpost.php?p=78878863&postcount=12667

To test your host blocking, try pinging a blocked host, both while under WiFi and then using mobile data.
[Android Apps and Games] martyfender:
That is because it doesn't get checked anymore. You will see a toast that the new systemless hosts module was enable and you must reboot for the module to be enabled, just as I wrote previously. If you rebooted since then, it would have been enabled. Yes, it is not exactly intuitive as it should be, though.

---------- Post added at 12:38 AM ---------- Previous post was at 12:35 AM ----------

Are you kidding! It is in the Magisk Manager and not in Adaway.

---------- Post added at 12:41 AM ---------- Previous post was at 12:38 AM ----------

I think that is because you change from the default, maybe?
[Android Apps and Games] darkbasic4:
4.2.3

I get the ads both on wifi and mobile data. On Wifi I use my own bind 9 DNS server (theoretically I could block the ads directly there).

Yes, I rebooted. Unfortunately it's still not checked.

I changed it back to /system/etc/hosts but it still doesn't work.

I also noticed that when Adaway was still working (and I was using /data/data/etc/hosts) I got a toast saying that the symlink was being recreated every time I updated it. Now it doesn't happen anymore with /data/data/etc/hosts.
[Android Apps and Games] jcmm11:
Try this.

Uninstall AdAway. Verify that Magisk Systemless Hosts is enabled. Reinstall AdAway. Enable Systemless mode. Do not change the target. Apply hosts sources.

Check the size of /system/etc/hosts

If it's more than 56 bytes then AdAway did its job. If ads are still getting through look elsewhere. (Proxy?)
[Android Apps and Games] DiamondJohn:
That link to my previous post was basically how when on mobile data the hosts file (assuming you have a decently sized one in the correct place) was not being used. Maybe your system of using your own DNS server is bypassing the hosts file just as mine was on mobile data. Can you try reverting the DNS to a standard arrangement?
[Android Apps and Games] marciozomb13:
A simple logcat could tell the issue but...
[Android Apps and Games] darkbasic4:
Here it is: https://xdaforums.com/attachment.php?attachmentid=4717325&stc=1&d=1551816282

I tried to reinstall Adaway as suggested, but it still doesn't work.

Despite having the "Systemless Hosts" module installed (yes, I rebooted), "Enable Sysemless Mode" is still unchecked in Adaway.

After applying the hosts file I noticed that the hosts file gets updated and seems to work fine, unfortunately as soon as I reboot this is what is left of my /etc/hosts:

# This host file has been generated by AdAway o

It looks like it has been truncated after rebooting. Any idea?
[Android Apps and Games] Nergal di Cuthah:
What host sources do you use? Maybe that's why you have a blank host file.
[Android Apps and Games] darkbasic4:
/system/etc/hosts
[Android Apps and Games] Nergal di Cuthah:
No I mean what urls are you using for blocking rules. It's listed as host sources in the adaway app.
[Android Apps and Games] darkbasic4:
Previously I was using the unified hosts, but now I'm using the default Adaway ones. I don't think this is the problem, because the host file gets written correctly by Adaway, the problem is that after a reboot it gets truncated.
[Android Apps and Games] DiamondJohn:
I did not read your logcat, but when trying to catch something that occurs at boot time, a last_kmsg could provide additional info.
[Android Apps and Games] jcmm11:
2 points

That's normally only created in the case of a kernel panic - it doesn't get created at every boot.

In newer kernels (since Android 6 I believe, although custom kernels could revert) the location has moved from /proc/last_kmsg to /sys/fs/pstore/console-ramoops

However the Magisk log might have something of interest or a logcat of the boot sequence (see the "Logcat boot script" section of https://www.didgeridoohan.com/magisk/MagiskHelp)

(I also haven't looked at the posted logcat)
[Android Apps and Games] darkbasic4:
Here is the magisk log: https://xdaforums.com/attachment.php?attachmentid=4717624&stc=1&d=1551860196
[Android Apps and Games] leozhao01:
Learn in here
[Android Apps and Games] xdarthanonx:
Can you chattr +i it before rebooting?
[Android Apps and Games] KUPOinyourWINDOW:
Could we get the navy bar turned light with the light theme please? It'd go with the new look
[Android Apps and Games] IronTechmonkey:
The "navy bar" is full of drunken sailors so they keep it dark. :silly:
[Android Apps and Games] KUPOinyourWINDOW:
You know when you read something back and think "what was I thinking!?" :silly:

Thanks for the hard work btw dev, if you see this, love adaway so much
[Android Apps and Games] 3l3tric:
Hello,

Yesterday I updated to LineageOS 16.0 on my OnePlus One and after rooting AdAway seems to refuse to recognize the root. I've checked with a root checker to confirm I'm actually rooted, tried multiple versions of the app, and ensured that Magisk isn't hiding itself from AdAway, but when I check the logcat the failure is always with starting a root shell despite the app never prompting for root permission. I've tried using every target hosts option, as well as the Magisk Systemless Hosts option, all to no avail.

Any thoughts on why the app just won't seem to even ask for root permissions? I've been using AdAway for probably 5 years now and never seen an issue like this.
[Android Apps and Games] githyanki:
Which magisk version?
[Android Apps and Games] 3l3tric:
18.1 (18100) with manager 7.0.0 (185)

EDIT: I'm not sure if this has anything to do with things, but I just checked by safetynet status and I failed both checks. I'm wondering now if this has to do with how I updated lineageos, I had to update opengapps using the micro package instead of the mini package that was previously installed, as I didn't realize before going into recovery and flashing the upgrade ROM that I didn't have enough storage space for the gapps update for some reason. I don't know if me having to use micro caused any problems, or if this is why I failed safetynet, or if these are even related to my adaway issue, just thought more information would maybe help.
[Android Apps and Games] yung40oz84:
I'm sorry I tried searching this, but I'm trying to figure out how to allow clicked links from inside chrome or Gmail. Some examples are

- clicked items inside my emails in the Gmail application. Sometimes it says cannot open.

- clicked links at the top of chrome. The AD ones ?

- clicked links when I go to the shopping tab in chrome. These are almost always broken.

- also, any links I click from another site or any site that takes you to another purchase or page by way of link.

Thanks for any help! I'm just wondering if there's a way to globally fix this or I have to manually whitelist something every single time I get a broken one.
[Android Apps and Games] madbat99:
All of those links are ads, not broken. You're using an adblocker. You have to whitelist the stuff you want through.

But those are all ads and tracking.
[Android Apps and Games] n3ocort3x:
Darken mod works perfectly for me too.. Finally adaway again. Really missed it. Thanks to everyone involved :)
[Android Apps and Games] Mahennemaha:
Adaway can only Block Servers that only deliver Ads, otherwise you would miss content. So mixed servers that deliver "useful" Content and Ads can't blocked via hosts file. You would need some url based adblocker for that.

Gesendet von meinem Flo mit Tapatalk
[Android Apps and Games] DecypherT:
2.8.1 still not working for me. It doesn't apply the host file and or adaway crashes.

2.3 is working flawlessly.

Android 4.3 JWR66Y

EDIT: d4rken mod is working for me too.

Send from my Nexus 4
[Android Apps and Games] ZioGTS:
Standard version works just fine for me, no issues at all. Thanks! :)

Inviato dal mio Nexus 4 utilizzando Tapatalk
[Android Apps and Games] Pard0ned:
Just wanted to say the d4rken mod version is working fine for me. The original one didn't at all.

I'm on an HTC one, rooted, and running CM11.
[Android Apps and Games] acedik:
Works perfectly!

Thanks for the upate!
[Android Apps and Games] D-m-x:
Yep, thanks for the Mod Version works fine again. Original Version didn't work properly.
[Android Apps and Games] melvinaury:
I'm done with cnet mobile app. I activate log DNS request and add all to my white list, but continue without pictures or videos. If you activate the DNS request and enter the app. Only enter don't enter to any news then go to the log. The log is empty. If I switch to spanish the pictures and videos work.

I go to the mobile version of cnet in chrome and all work pictures and videos.

What more can I do?

By the way the last update 2.8.1 works perfect.

Thanks
[Android Apps and Games] crackedvenom2:
Which one do you all use for best results? I'm on 4.4.2
[Android Apps and Games] MementoMoriM:
How is marked in my will catch me perfect. Nothing Advertise with kitkat on my Nexus 4 ?

Enviado desde la muerte a través de un Nexus4
[Android Apps and Games] angel.mariano:
Do any of you guys know how to ad googleadservices.com to the white list , because is not working for me, after i add it and apply adaway, i go on chrome and type googleadservices.com and it says it couldnt connect . thank you

Nexus 5 rooted stock
[Android Apps and Games] oediv:
Didnt know if this was said before

On the New Google Chrome beta there is an Option to reduce your traffic for 50%. This happens cause you send you Website to Google and Google load it and send a pack back that is a Lot smaller. But the the adblocker didnt work anymore :/

Or Has someone solve it Maybe we have to block a Google id?
[Android Apps and Games] Ciccio0184:
Hello!

I use this app for a long time and I find it really useful. :highfive:

But why the hosts file adaway.org/hosts.txt is not updated for a long time?

I would also like to know if there are other hosts files that I can add to the host sources in addition to those present in the developer's website.

Thank you!

Sorry for my bad english.
[Android Apps and Games] nomisunrider:
I'm having the same issue with 4.3
[Android Apps and Games] sonixdan:
This is because your system is write protected (do you have a HTC One?). So all changes you do in system are gone after reboot. The modified file system/etc/hosts is back to default after every reboot.

Also the symlink of /system/etc/hosts to /data/data/hosts is removed after the reboot. You have to make the symlink with adb, then it remains also after reboots.

Boot to TWRP recovery -> Mount system

adb shell

cd system

cd etc

rm hosts

ln -s /data/data/hosts /system/etc/hosts

In AdAway -> Settings -> hosts file to use is /data/data/hosts

This worked for me until KitKat. With KitKat, the symlink of the hosts file to /Data/Data/hosts does not work. It seems that KitKat does not follow the symlink so the hosts file is ignored. I have to copy the hosts file modified by AdAway manually from /data/data to /system/etc with the File Manager of TWRP recovery. This is a little annoying, but it works.
[Android Apps and Games] defim:
[MENTION=4606487]sonixdan[/MENTION]

Thanks, but my problem is that the file /data/data/hosts is missing, the link is there. Device is a S4, see signature
[Android Apps and Games] Wh1t3Rose:
Go here. It's a thread with one of the biggest hosts file here on XDA. Don't use the zip file though. There is a link to the hosts file that you can add to Adaway in the OP. Its a link. A few small paragraphs above the downloads.

http://xdaforums.com/showthread.php?p=32276021

You can also use this hosts file it is updated every 2-3 days (and very often every day). I use it on android and on my PCs running Linux and Windows. Works great. (I know it looks like a spam link but I promise it's legit)

http://someonewhocares.org/hosts/
[Android Apps and Games] maverickronny:
Any way to make it work with Chrome's bandwith mgmt?
[Android Apps and Games] Pons:
Pretty sure you can't. All the info (including ads) are loaded on Google's side. Then you load the page from Google, instead of from multiple IPs.
[Android Apps and Games] oediv:
So no Chance to block this adds

Gesendet von meinem Nexus 5 mit Tapatalk
[Android Apps and Games] icke:
That was by far the greatest anwer i've ever read here on xda! Made my day...:D:D
[Android Apps and Games] curiousrom:
AdAway, LineageOS 16.0 & Magisk

AdAway 4.2.3 works fine on Galaxy S5 SM-G900M running LineageOS 16.0 build 2019-03-10 klte + Open GApps ARM 9.0 Pico + Magisk v18.1. I don't use the Magisk Systemless Hosts option.

My S5 passes the SafetyNet test.

It does not mater if you installed a different Open GApps package size because anyway you were running 8.1 for 15.1 & now 9.0 for LineageOS 16.0. Open GApps deletes the apps it previously installed & installs new ones as you can see in the open_gapps_log.txt and open_gapps_debug_logs.tar.gz it creates in the same folder where you had the Open_GApps....zip that you flashed.

As long as you wiped System & flashed the LineageOS then Open GApps in one go without rebooting in between the upgrade to 16.0 should work.

What happens if you install other apps requiring root? Did you check in Magisk Manager > Log & > Superuser?

If you have a Magisk problem then posting in a Magisk thread with logs may give you more relevant answers. See https://www.didgeridoohan.com/magisk/MagiskHelp

***
[Android Apps and Games] martyfender:
On my devices, if I click on the disable ad block button and then click on enable ad blocking, it is enough to trigger the su prompt. I have systemless hosts enabled in Magisk Manager and use the roms default location. Also, I have reauthenicate after upgrade checked in MM settings. In the su tab of MM, does Adaway show up there? If it does, just click on the button to enable it. If it does not show up there, then something else is wrong.

For SafetyNet issues, did you check this page for solutions:

https://www.didgeridoohan.com/magisk/HomePage#

Adaway should have nothing to do with SafetyNet unless you are modifying the actual host file in the system and even then It may still pass if everything is normal and Magisk Hide is working?

Also, it appears that Magisk Hide may not be working on your device. Have you tried toggling Magisk Hide off, then on in MM settings? If that doesn't help, you might want to consider trying the latest Canary build of Magisk, just released today. Be warned though, it can contain new bugs on some devices. On my devices I have not experienced any yet, but that can be device and rom dependent, also.

The debug Canary versions provide much more detailed logs that can be posted on the Canary Magisk thread Or in the Magisk Github issue area.
[Android Apps and Games] yung40oz84:
I mean obviously the top links are ads in chrome. But how are the shopping links ads? They are search results like for Amazon and eBay. And more so my emails... I wouldn't had thought it would stop me from opening emails lol. But I do see what you are saying. Guess I need something light lol
[Android Apps and Games] jcmm11:
They're search results that include trackers and it's the trackers that are getting blocked (usually). You can often figure out what the correct, untracked, address is since it's embedded within the address you click on. Or you can whitelist the trackers.
[Android Apps and Games] _JaSoN_:
hello is there a way to include this app on my personal linageos16 build ? added it like this

<project remote="github" path="packages/apps/AdAway" name="AdAway/AdAway" revision="master" />

i get that error ;(

[429/1108] including packages/apps/AdAway/tcpdump/jni/Android.mk ...
packages/apps/AdAway/tcpdump/jni/Android.mk:1: error: jni/stub/Android.mk: No such file or directory
09:53:17 ckati failed with: exit status 1

#### failed to build some targets (44 seconds) ####