yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] guest4711:
It's been asked a lot of before ...

You can use a browser add-on like ublock-origin (for firefox & co or for chromium/chrome) to remove the empty boxes. Host-based adblockers do not modify the html code of the page, they block the data transfer (so you save bandwidth). The addons modify the data stream before displaying it - so no more white boxes ... :good:
[Android Apps and Games] androcraze:
3.99.180122.... it can stay at 3.99 fuh evah, or at least until 2099; hopeful 4.0 will be out by then.
[Android Apps and Games] brybo86:
Thanks man, fixed the issue I was having where I wasn't being prompted for root access !
[Android Apps and Games] Mutsurini443:
It does not work in miui 9 :(

Do not ask for root permission
[Android Apps and Games] Bakica:
[MENTION=4466123]pec0ra[/MENTION],

Many thanks for your effort to make this modification. I noticed that log DNS request not working in my case, there is no log file after use of it (Meizu m2 note with unofficial LOS 14.1 and Magisk 14 root)

Thanks for your help
[Android Apps and Games] ktmom:
Log DNS will only log DNS calls, which is how using the hosts file blocks ads. If your problem app is going straight to an IP address, it will never make a DNS call.

For anyone to help you further, you need to be specific about how and what you're doing. - started log dns, opened xyz app ...

"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
[Android Apps and Games] Bakica:
First I disabled adblocking in AdAway, then clicked on tcpdump, leaving open and started jewels star 3 game, saw many different ads, back to adaway and opened log file, but there were none.

Thanks for explanation.

PS this is modified version of AdAway by [MENTION=4466123]pec0ra[/MENTION]
[Android Apps and Games] ktmom:
It sounds like that game is hard coded for ads. Not much Adaway can do about that unfortunately.

You can demonstrate that the DNS logging is working by turning it on then going to a website in a browser.

It's not necessary to stop ad blocking (revert hosts file) for DNS logging. Whether the DNS request is redirected by the host file or not, the request will still get logged.

"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
[Android Apps and Games] Bakica:
Tried it with the browser, same thing: log file is empty! [emoji20]

Thanks anyway.
[Android Apps and Games] ktmom:
If your device is SELinux enforcing, it would explain this. It needs to be permissive for the tcpdump daemon to run.

"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
[Android Apps and Games] sirxdroid:
The latest update of Yahoo Weather app now shows ads. I don't see anything in the DNS log, most likely because of what was posted above re SELinux.

Do we need a new entry to block these ads or is the app update pulling new tricks now to bypass DNS blocking?
[Android Apps and Games] ktmom:
Here's what I capture in DNS logging

"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
[Android Apps and Games] vinymaster:
works for me! ty

mi 6 Epic Rom 9.0
[Android Apps and Games] jcmm11:
Not true. I just tested to verify. I'm running with enforcing and have no problem getting the tcpdump Daemon to run and grabbing a log.
[Android Apps and Games] pec0ra:
And what AdAway version are you using ?
[Android Apps and Games] jcmm11:
3.2
[Android Apps and Games] ktmom:
It's device dependant. I'm enforcing also but on a custom ROM. Please read the DNS logging wiki.

"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
[Android Apps and Games] jcmm11:
Wiki - we don't need no stinking wiki ?

The wiki says might, not will. I responded the way I did because of the absoluteness of your answer. Then again I was not aware of this possibility so I did learn something.

I do think that stating what you just told me would have been a better initial response, mostly for people that may be searching the thread for answers.
[Android Apps and Games] ktmom:
As compared to your absolute answers that it works for you therefore it must work for everyone? When I get a pay raise for answering posts I'll take your concerns into consideration.

"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
[Android Apps and Games] jcmm11:
I'm not going to get into a silly argument about this. This is my last comment on this topic.

1) as I stated I learned something, and thanked you for it.

2) at no point did I state that it must work for everyone. What I did do was state that your comment implying (and it was implied, not stated as an absolute) that only permissive mode works was incorrect.

Have a great day!

PS - I'm doubling your pay effective immediately (doing the same for myself) ?
[Android Apps and Games] t-ryder:
Adaway causes some false positives as it seems.

View attachment 4399564
[Android Apps and Games] Ja_som:
Uninstall that app and problem is solved.
[Android Apps and Games] Cryptecks:
To give you an actual answer, I can only assume that VirusTotal (a perfectly legitimate service, just not totally on top of Android scanning yet, btw [MENTION=5201515]Ja_som[/MENTION]) is seeing that the app is able to modify the /etc/hosts file, ask for root access, etc, and those things are classic false positives in scanners (not just for Android either). What I would say, however, is to make sure you installed AdAway from a first-party source using the OP of this thread or the official GitHub repo. If you got AdAway from elsewhere, that may be a third party bundling their own code and signing signature to fool people. Just be safe, people!
[Android Apps and Games] guest4711:
Not to forget https://f-droid.org/en/packages/org.adaway/ (via web or better the f-droid.app). F-Droid.Org hosts FOSS (Free and Open Source Software) applications for the Android platform only.
[Android Apps and Games] joshndroid:
Most probably a self build... I started building my own for rom injection as the source gets updated
[Android Apps and Games] guest4711:
See https://xdaforums.com/showthread.php?t=2190753&p=75097249 - there is a build which should avoid the problems some people have using the newest Magisk or Oreo...
[Android Apps and Games] joshndroid:
I have been taking their git and building my own apk =) don't have to wait for releases then
[Android Apps and Games] sirxdroid:
An official build with the latest fixes would be highly appreciated. Thanks.
[Android Apps and Games] PerfectSlayer:
Custom builds are not helping here. When people report issue on a "3.3" version, I spend more time to guess what he might have install than finishing the coming release. (I have nothing against [MENTION=4466123]pec0ra[/MENTION] he helped us and we exchanged a lot to properly fix the Magisk issue :good:)

And I saw your PR. Only "gradlew build" command on the project root should be enough to build the apk. Natives build and renameExecutables task are already in the build graph.

We all agreed here. Lot of PR was merged lately (fix for the coming 3.3, improvement and Oreo support for the 4.x).

Only translations are missing for the next release and [MENTION=3355398]mrRobinson[/MENTION] is handling them (I tried to reach it without success).

Once done, he could make a release (I don't have the key to sign the XDA version) and then we could update F-Droid version.

Keep in mind the 4.x versions will be built for each commit on master. So you will never miss your update anymore :p

And to make you wait a little more, here is a screen about what I work on this past week.
[Android Apps and Games] badmojr:
https://xdaforums.com/android/general/badmojr-one-host-file-to-block-t3713360/
[Android Apps and Games] smint86:
Anybody got an idea, if it's possible to get rid of the promoted tweets in the official Twitter app? At my Desktop pc, using Chrome with adblock extension, I don't see any of them.

Swyped via Tapatalk
[Android Apps and Games] DecypherT:
If you are already on a rooted phone, "Xprivacy" is your solution then.

Check "Xprivacy" out, I use it (combined with "xposed framework" ) since a few weeks and love it.

It sends false info to the apps you select or block the selected app from accessing specific areas on your phone.

Send from my Nexus 4
[Android Apps and Games] Croatoan®:
I rooted because of AdAway and Greenify (and of course TB) :) I will try Xprivacy (it has better score than Permission Manager :D). Firstly I need to found some "recovery app" for whole system backup for Xperia Miro (preferably official) :D
[Android Apps and Games] DecypherT:
permission manager has no use at all (used it too).

it only displays the risks some apps carry, but you can't restrict access to those apps

Send from my Nexus 4
[Android Apps and Games] ChiDi9901:
Is this app still under development? Hopefully somebody can fix the host activation issue on 4.4. ? Adaway is the only working ad blocking software for Android.

Gesendet von meinem Nexus 7 mit Tapatalk
[Android Apps and Games] an0n981:
I got it working by converting it to a system app via TiBu
[Android Apps and Games] Pons:
Source code is here: https://github.com/dschuermann/ad-away

Last change was 4 days ago, so I'm pretty sure it's still under development.
[Android Apps and Games] _kolle_:
Dev is aware of the issue but is busy with other things . he will look into it in January...so he commented in his github. Just quoting him
[Android Apps and Games] evandena:
Fuuu I just spent 2 hours rooting my Moto X just so I could use this app, and it doesn't work.
[Android Apps and Games] mitchdickson:
Kind of crazy that it took you two hours to root a phone.

App works fine for me.
[Android Apps and Games] Wh1t3Rose:
There are plenty of alternatives
[Android Apps and Games] MatyiFKBT:
Works great on my nexus 4, rooted android 4.4. Thanks!
[Android Apps and Games] rwrutl:
I have tried to use F-Droid to install AdAway, but it gives error messages when updating repository, so if I manually install it do I need to also have the tarball file installed somewhere in the system ? I do understand why ads exist, however we seem perpetually inundated with them. So any help on this point would be appreciated. I'm rooted on Moto X and working with F-Droid in write protection off mode.

Edit: I had used the wrong way to find adaway, think I have it now
[Android Apps and Games] WOP_Drive:
Worked for me! Thanks!
[Android Apps and Games] manpildo:
There are alternatives. For example CrossBreeder handles adblocking more efficiently than a simple hosts file blocklist. Though I have a feeling you're using the latest 2.8 version... don't. Try 2.3, 2.5 or 2.7 - they are reported to be working in KK and I can personally vouch for 2.5.

2.8 makes my phone go crazy. When attempting to apply, it gets stuck and even after killing the app, CPU usage stays sky high, it never enters the idle frequency, causing excessive battery drain and overheating.
[Android Apps and Games] EP2008:
Ok, so how do we block these ads? My desktop can easily block them, but if I use the same lists on adaway, they aren't blocked.
[Android Apps and Games] visceralpsyche:
It's Chrome's bandwidth optimisation setting that's bypassing the regular system. Turn it off and ads will be blocked normally. HTH!

Cheers,

Paul :)
[Android Apps and Games] EP2008:
That feature is only in Chrome beta, but that screenshot was from regular Chrome, so that's not where they are coming from. They take up more space than the search results and they are placed both at the top and bottom of the search results.
[Android Apps and Games] BOY_:
Guys, it's google AdWords. You're not going to get away from them, they are built into the search engine results page (as opposed to embedded like on 3rd party sites).
[Android Apps and Games] Tennic:
Someone uses adaway with ART (Android 4.4 or 4.4.1)? Does it works? :confused:
[Android Apps and Games] eqagunn:
I'm using your release and experiencing some issues.

As noted, AdAway crashes at the end of boot sequence, however it probably just restarts since it works.

Systemless mode is grayed out in preferences, not sure if this is intended for this release (systemless hosts is enabled in Magisk, SafetyNet is green).

Eurowings app doesn't work properly even though it visually contains no ads.

During almost every step through flight checking/booking it throws an error screen.

Workaround is to press back twice and you'll end up where you should be, however this doesn't work for seat reservation.

I tried to log DNS requests in order to whitelist, but the log file ends up empty. SELinux is permissive.

EDIT: [MENTION=4004386]Ultramanoid[/MENTION] My apologies kind sir. Thank you for the enlightenment.
[Android Apps and Games] Ultramanoid:
Paraphrasing from somewhere else in the forum, but the thing is; rule number 1 of XDA is "no ETAs" and rule # 2 is "check rule number 1".
[Android Apps and Games] geokilla:
I've been using Adaway for a long time and for some reason, it stopped blocking ads on my phone for the last couple months. It has root privileges and it says the host files are applied successfully. However in the browser, my apps, ads are still showing up for some weird reason. What could be wrong?
[Android Apps and Games] Portgas D. Ace:
Do you use data saving function in your browser? This will redirect all traffic via some server, thus disabling adblocking function in your browser.
[Android Apps and Games] guest4711:
If it occurs when on mobile data check and change your APN settings. AdAway (and all solutions working by manipulating the dns) will not be usefull when using proxy servers (as possibly defined in an APN).
[Android Apps and Games] geokilla:
It occurs on both WIFi and when I'm using mobile data. There's no data saving function enabled. I'm also using the stock three host files.
[Android Apps and Games] :
Are you sure adaway is able to install/write the "hosts" file in system/etc directory? It should have a size of ~ 1.72mb. Please check.
[Android Apps and Games] jcmm11:
What root method? What version of Android? As mentioned check the size of the hosts file in system/etc. It should be over 1mb.

If you're using SuperSU-SR5 and the problem started with an upgrade to Oreo you'll need to make some changes to your config. If Magisk make sure system hosts is enabled in Magisk settings.
[Android Apps and Games] ktmom:
What [MENTION=2044343]accuphase[/MENTION] said, though the file size is dependant on the host sources you are using. Mine is ~1.19 MB. The untouched hosts file is 33 bytes.

Then, try doing a search on your browser for, say "learn android development". The results will include entries marked ad at the top of the list. Click on one and if the site described in the ad is opened, there's a problem, maybe with your dns cache or proxy servers. If ad blocking is working, you should get an error page from Google that the googleadservices.com page is unreachable. Going straight to the googleadservices.com page is no longer reliable. Google made changes to the app and you'll just get a URL doesn't exist error which is not the same as unreachable.

I have seen a "glitch" occur where after disabling the Adaway hosts file the DNS is still blocked, then re-downloading and enabling causes the DNS to revert to normal. The opposite of what you would expect. I think this might be a glitch from dirty flashing. Ideally, if your phone has a removable battery, shutting down and pulling the battery for at least 30 seconds should reset the DNS cache.
[Android Apps and Games] geokilla:
Yep the host file in /system/etc is 1.72MB big.

Systemless hosts is currently disabled. Will try enabling that now. If it doesn't work, I'll check the DNS cache or something.
[Android Apps and Games] DiamondJohn:
What happens when you go into a shell and ping one of the hosts within your hosts file?

Also, going out on a limb (and I think it would affect the size of your hosts file) have you checked your white-list doesn't have something in it?

If it still acts strange, it sounds like AdAway is working, and your phone has some other DNS issue which may be better addressed in the general help than here hidden in an AdAway thread; although a lot of good DNS/hosts knowledge is here.
[Android Apps and Games] geokilla:
Still no luck with ad blocking in Google Chrome. Seems to block ads in other apps now, which is a start.

My white-list is empty. I'll explore the DNS thing.
[Android Apps and Games] ktmom:
Turn off data saver in chrome. It's not an either or thing. If host blocking works at all, then every subsequent problem is app related.

"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
[Android Apps and Games] geokilla:
I swear it's not on. Never was. I'm getting ads when I watch NBA games on streaming sites and when I browse RedFlagDeals for example.
[Android Apps and Games] ktmom:
So the "problem with the app" might be those sites are bypassing the hosts file on your device. Try visiting those problem sites with DNS logging turned on and add anything suspicious to the blacklist then reapply the hosts file.

"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
[Android Apps and Games] lord_muad_dib:
hello, i searched the thread for help but it seems that it's working for all.

i have magisk and seamless host enabled in the manager. as far i can see the seamless option in adaway it's supposed to stay grayed out. but once i try to enable the blocking i get a message that there's the need of a symlink and that it can't be created. any help?

thanks in advance

ps i tried 3.2 and devel version

edit: ok, looking at the following post's quote it seems i'll have to wait for the newer magisk out, maybe? :)
[Android Apps and Games] TheRonte:
really thanks m8!! :good: working on Redmi Note 4 Global (mido), Magisk 15.3, MIUI 9.3 by xiaomi.eu 8.2.1 ;)
[Android Apps and Games] Pkt_Lnt:
Help for your failing Google Fu. ;)

https://xdaforums.com/showpost.php?p=75097249&postcount=10321
[Android Apps and Games] lord_muad_dib:
yeah, as i added at the end of the post i did read it, i'll wait for a newer stable version of magisk to come out, the debug symbols and logging of magisk are a big resource hog for me :) for now i'll just use adaway as before without seamless hosts :)
[Android Apps and Games] Raserty:
Great , thanks for your info
[Android Apps and Games] phiwoo33:
Is this something that can be used with phones? I have similar software on my computer, but I'm still getting ads on my phone even though I am synced to my computer. Not sure why.

---------- Post added at 11:29 PM ---------- Previous post was at 11:23 PM ----------

Good to know
[Android Apps and Games] ktmom:
Yes, this is software to block ads on a phone tablet (android device) provided the device is rooted and the ads are being served via DNS.

"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
[Android Apps and Games] iibor:
Any ideas why I am unable to install the adaway at all. It doesn't give any specific error message, just "app wasn't installed". I've made sure that I have completely removed all previous adaway related files.... Using ExOS R34.0 with Magisk 15.3
[Android Apps and Games] ktmom:
Take a log while trying to install (MatLog), then review it to see why it's failing.

"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
[Android Apps and Games] raymondsanusi:
Why cant run on miui?the app installed but can open the app
[Android Apps and Games] ktmom:
Guessing you're using Magisk. Not that you tell us. Try looking at this post just a few pages back.

"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
[Android Apps and Games] raymondsanusi:
THanks..will try later..sorry before
[Android Apps and Games] guest4711:
Corrupted download?

Already included in custom ROM as system app?

"install from untrusted sources" not set in settings--security?
[Android Apps and Games] WoltreX:
it is an indispensable app. ;)
[Android Apps and Games] KILLATONEZ:
Does anyone know why I get this message when trying to apply ad blocking "Copy failed. Copying of host file failed!" I am running Bad Boyz Rom 3.1. I have SuperSU installed. I am trying to enable "systemless mode" on AdAway but it won't let me check the box. I have AdAway 3.2 installed.
[Android Apps and Games] Ch3vr0n:
Yeah you're running Oreo and need to apply the workaround, use the fork or wait for AdAway to be updated with official Oreo support

Sent from my Nexus 6P with Tapatalk
[Android Apps and Games] vhdang:
My Adaway has stopped working, is it happened with me or every one?
[Android Apps and Games] guest4711:
What do you mean by "not working"? Adds comining through?

- Have a look at /system/etc/hosts: More than 300 bytes? If not, download/re-apply hostfiles. I'm using https://secure.fanboy.co.nz/r/fanboy-complete.txt as a working source.

- Have a look at your APN settings: Is there any proxy defined? (delete proxy)

- Any VPN active? (deactivate it)

- Data compression enabled in chromium? (turn it off)
[Android Apps and Games] prathu30:
Isn't fanboys a filter list, or it works with adaway?
[Android Apps and Games] guest4711:
Good point, you are right ;)

I took the wrong entry. I meant https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/social/hosts (but this could block to much for some users)
[Android Apps and Games] Cimabu:
Hi guys :)

I am using adaway since when it exists and I never had any problems with it.

Recently I got a xiaomi note 4 global (snapdragon global miui 9.2) I rooted it with Magisk, enabled the host systemless option, but adaway doesn't work, tried also older versions but doesn't work anyway.

When I open the app it stucks in the screenshot under without even asking me the root access.

Did I miss something?

Thanks :)
[Android Apps and Games] shaqman89:
Did you trying searching first?

https://xdaforums.com/showthread.php?t=2190753&p=75502365
[Android Apps and Games] geokilla:
I figured out why it wasn't work. SELinux was set to Enforcing instead of Permissive, so it interfered with AdAway.

Edit: never mind I spoke too soon...
[Android Apps and Games] sirxdroid:
Any updates please on an official build for Oreo and Magisk? Can we please have a dev build posted in the OP for those who don't know how to build from source? Thanks!
[Android Apps and Games] MC_Ohr:
For me the version from op is working with oreo and magisk. You have to activate Systemlösungen host in magisk settings and then install adaway host file.

Gesendet von meinem HTC U11 life mit Tapatalk
[Android Apps and Games] kgjel:
Issue: "Copying of hosts file failed" whenever I try to build a hosts file.

Running LOS 15.1/Android 8.1.0 on a Pixel XL.

Adaway 3.2.

Root is granted to the app via LOS' built-in SU (`/system/bin/su`).

I've tried the solution linked here, but there is no `supersu/` folder in my `/sbin/` folder. I think this is due to using LOS' built-in SU. Systemless mode is also grayed out in Adaway.

Does anyone have any suggestions I can try? These ads are killing me...

EDIT: I figured out a temporary workaround, but it requires manual intervention — have adaway build the hosts files in a writable directory (like `/sdcard`), mount `/system/etc` as read-write using FX Explorer, manually copy the hosts file from `/sdcard` to `/system/etc`, overwrite the existing hosts file, and then mount `/system/etc` as read-only again. While this works as a once-in-a-while thing, it's not really a feasible solution long-term.
[Android Apps and Games] githyanki:
The LOS SU is not used often, most people use super SU, or magisk. You may need to provide logs here and in the LOS forums to get this issue worked on.
[Android Apps and Games] martyfender:
Systemlösungen ?????? xda is an English, only forum.
[Android Apps and Games] MC_Ohr:
Sorry autocorrect systemless

Gesendet von meinem HTC U11 life mit Tapatalk