yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Paolo83:
Hi Friends i have this problem. I'm not root but i have twrp recovery (Xiaomi mi 9).

I repleaced hosts file in /system/etc with twrp's file manager (in twrp i see It in /system/system/etc) first by adding "127.0.0.1 www.facebook.com" and this worked very well.

So I took an "AdBlock" hosts file and I put It in the same place but it didnt work: I see ad.

If i try this hosts file with an app like virtual host wich does a fake vpn, It works very well: i get off ad!

What i'm doing wrong?

Thanks
[Android Apps and Games] Doomkopf:
Which source did you get the hosts file from? It has to be in a certain format to work, regarding hosts files with the right format, I can recommend StevenBlack's Hosts list and GoodByeAds' Hosts list. They should work by just downloading them (not as .txt) and copy pasting them in place.

Also don't forget to change the permissions back to 644 (rw-r-r) if it changed and owner and group to root ^^
[Android Apps and Games] Paolo83:
Thanks now It Is ok! The problem was 644 ;)
[Android Apps and Games] Zilla0617:
How do I go about adding the host files you recommended? I try adding the Steven host file in the past and it didn't work. Thanks
[Android Apps and Games] zputnyq:
Try this one

https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts

That works

If I'm not mistaken it's change or something, I forget about it
[Android Apps and Games] Zilla0617:
For some reason when trying to update the host file the app crashes. I tried to reinstall the app but it made no difference.
[Android Apps and Games] mattgyver:
Thread has had some light cleaning done. Keep on-topic... This is an AdAway thread. These long running tangents and completely off-topic discussions should be taken to their respective threads, or put in the Off Topic forum..
[Android Apps and Games] vegetaleb:
Installed adaware 2 days ago on my rooted 6t, it says latest updates installed and working, but in reality it's not.

I have ads everywhere in browser,apps...

There must be something in the settings of adaware no?
[Android Apps and Games] guest4711:
If you are using proxies the host file AdAware provides is bypassed, see the FAQ and search in this thread.

tl,dr: Make sure your mobile provider does not set a proxy in your APN settings. If it is set, duplicate the APN but without proxy and set it active.
[Android Apps and Games] Oswald Boelcke:
If you're using "Ad-aware" you're wrong here. This is the "Adaway" thread.
[Android Apps and Games] vegetaleb:
Yes sorry I meant adaway.

No proxies.

Could it be the target host files location?
[Android Apps and Games] guest4711:
Leave the default setting (/system/etc/hosts). If using Magisk enable systemless hosts there (it's a builtin module), reboot and open AdAway. Make sure systemless hosts is enabled there, too. Check for updates. One some devices it is necessary to reboot after applying a new hosts file.

BTW: AdAway does not work if you are using any VPN or proxy, so please double check.
[Android Apps and Games] casouzaj:
Data saver (in the browser settings) too.
[Android Apps and Games] Zilla0617:
I'm still having this problem, rebooted and enabled and disabled Adaway. Wondering if anyone has encountered the problem and have a fix. Thanks
[Android Apps and Games] githyanki:
It is likely due to root or systemless not setup correctly. Check those things, if that's not it, please provide a log file.
[Android Apps and Games] nixie2121:
is something wrong with my set up? I get pop up videos on this page, is that normal?using Chrome.

https://www.georgetakei.com/texas-m...2&tse_id=INF_f6dc950066d111e9b433ab68d22425b2

thanks
[Android Apps and Games] dhacke:
Do you use the default lists of AdAway? Mayby the domain which cause the ad isn't on the Backlists of AdAway.

Or the Chrome Browser bypass AdAway in this case somehow.

So i would try to locate which domain serves the ad, add the url in the custom blacklist of Adaway and test it again.

When this doesn't help install a ad blocker in Chrome or better switch to Firefox with uBlockOrigin.

(I afraid the suggestion with the Browser Plugin is off-topic. If yes sry for that).
[Android Apps and Games] Wolfcity:
Even when it's slightly off topic: Also with Firefox plus uBlock Origin and AdAway this strange website produces pop up videos. I recommend watching the video on YouTube.....
[Android Apps and Games] jcmm11:
I went to that page. I did get one pop up video, but it wasn't an ad - it was a news clip so I wouldn't expect it to get blocked. It even came up using Firefox + uBlock Origin.

However, if you want to block those pop-ups try adding the following to your blacklist:

cdn5.anyclip.com

player.anyclip.com

trafficmanager.anyclip.com
[Android Apps and Games] bege10:
Hi,

I saw similar posts in this thread but didn't find answers.

I am running AdAway on Samsung Galaxy S5 Plus (SM-G901F), LineageOS for microG 15.1 (Android 8.1) with addon-su. Local web server is activated. Ad blocking works perfect.

But I noticed that after an hour or so after booting the device the AdAway process vanishes from the list of active tasks. Sometimes it reappears (after 4 or 5 hours) and vanishes again an hour later.

It also vanishes when AdAway has been opened and removed from recent apps.

Battery optimization is deactivated. There seems to be no relation to internet connection active or not. I don't use apps that terminate processes automatically. As far as I can say the system does not run out of memory. AdAway is the only process that starts at boot time but vanishes later.

Is this behavior normal?

What happens to the local web server if the AdAway process vanishes?

Is the web server a separate process? If so, which one?
[Android Apps and Games] Oswald Boelcke:
Same device but on RR-Nougat and Magisk v18.1. Local web server also activated but AdAway battery optimised and greenified although most likely unnecessarily as being background-free. None of your issues ever observed.

EDIT: AdAway is usually never on the list of my active processes. Not automated update of lists. AdAway just running when I manually update the sources and in turn create the new hosts. I only didn't disable "start on boot" to allow the local web server to be started.
[Android Apps and Games] guest4711:
AdAway needs to be active only when checking for hosts source file updates and when rebuilding the hosts file.
[Android Apps and Games] PoochyX:
It's not a background service well only if checking for updates but you can disable that in the options

[emoji3436]I Willl Scarfice For Those That I Love [emoji3434]
[Android Apps and Games] bege10:
How can I see whether the local web server is running? Which process is that?
[Android Apps and Games] xdarthanonx:
App:

Shell: pgrep /data/app/org.adaway*/lib/arm64/libblank_webserver_exec.so
[Android Apps and Games] PoochyX:
Right cause if you don't allow adaway to run at boot web server won't start

[emoji3436]I Willl Scarfice For Those That I Love [emoji3434]
[Android Apps and Games] bege10:
Thank you very much. The UI here shows that the server is running. But I wanted to see if it is running when the app process is terminated. And I could find the process you posted in the tasks list while the app process is not running. So I don't need to bother about the app process being terminated after an hour. :good:
[Android Apps and Games] PoochyX:
It's good to know what you need to know it brings a sense of relief into you

[emoji3436]I Willl Scarfice For Those That I Love [emoji3434]
[Android Apps and Games] bege10:
Of course it runs at boot. See https://xdaforums.com/showpost.php?p=79426116&postcount=13160
[Android Apps and Games] PoochyX:
I was applying that you can disable adaway from starting up at boot if you need the web server cause it just modifies the host file to block ads not like adguard that always has a background service running to block ads only reason you need adaway to run at boot is if your a person that uses the web server

[emoji3436]I Willl Scarfice For Those That I Love [emoji3434]
[Android Apps and Games] Doomkopf:
Hi. Adaway doesn't need to run in the background ^^ It just edits the hosts file, which is talen care of by the system. So after editing it, Adaway has nothing left to do anymore. I'd guess it starts every boot for the auto update feature (if you don't need auto update, you can deny adaway to run in the background, if you want) :)
[Android Apps and Games] guest4711:
Note the path after lib/ is architecture depending: Could also be x86 or arm...
[Android Apps and Games] jcmm11:
it's a pgrep, with the operative word bring grep. Just use

pgrep -l webserver

(That's a lowercase L and will list the entire command used to start the process l
[Android Apps and Games] bege10:
Thank you for the many helpful answers to my question. The easiest way for me to find this process was to use the Task Manager of 3C Toolbox.
[Android Apps and Games] XAL2:
How come adaway doesn't block ads in apps where it used too for me? For example I never used to get ads using the XDA app. Another example would be when using any browser and searching up let's say a product. The first couple of links would be Ads. Whenever I used to click on them it wouldn't take me to the website because of adaway. However that's no longer the case. Running 4.2.4 adaway on my OnePlus 6.
[Android Apps and Games] PoochyX:
Sometimes updating adaway breaks it

[emoji3436]I Willl Scarfice For Those That I Love [emoji3434]
[Android Apps and Games] Portgas D. Ace:
Unfortunately, some ads are hardcoded into an app, thus the host file blocking method won't work. Adblocking within your browser might be different, as some browsers implement their own adblocking solution. From what I know, AdAway is not able to block ads on search result pages on its own, but only blocks the link when you try to click on it.
[Android Apps and Games] PoochyX:
That's what ad blocking apps like adguard are for

[emoji3436]I Willl Scarfice For Those That I Love [emoji3434]
[Android Apps and Games] XAL2:
Yeah exactly it used to block the link once I clicked on it. Now it doesn't do it anymore. Also, it used to block the ads in the app before. I totally get it can't block everything but where it once was and now isn't confuses me.
[Android Apps and Games] DiamondJohn:
The links clicking through to the site are specific to the hosts that you block. If the link destination is not blocked then it will work. eg if it links directly to Microsoft, then of course it would work.

However, if the link goes through a tracking server, you simply need to update/change/extend you host lists. Its not an AdAway issue.
[Android Apps and Games] guest4711:
First of all you should verify your host sources are applied to your host files. You could either check /system/etc/hosts or use the internal preview of AdAway. Note that redirecting the hosts location does not work on most ROMs (but systemless hosts does).

If your hosts file is ok, you should check wether any proxy or VPN is in use (which makes your hosts file useless). Check your APN settings and your access point(s).

The last step is to verify that all browser "optimizing" is disabled like dns prefetching, async dns or website compression. These technics route all traffic threw external servers which may add advertisings...
[Android Apps and Games] DiamondJohn:
AdAway itself blocks nothing, it builds a hostfile merging all the host sources you have selected. It is 100% dependent on which host sources you have selected.
[Android Apps and Games] jcmm11:
As mentioned check your hosts file. I suspect that it isn't being updated for some reason. If you're getting ads on the XDA app there's a problem somewhere - I get 0 ads in that app.
[Android Apps and Games] dylansmith:
How do I properly whitelist sites?

For example, I already inserted

*bit.do*

And applied hosts

But connection is still refused when going through that link shortener.
[Android Apps and Games] guest4711:
Try *.bit.do
[Android Apps and Games] Tommytommy1234:
Yeah, I knew that xda app was ad-free anyway.
[Android Apps and Games] SacredDeviL666:
Thread cleaned.

Can we all stay on topic?

If there is nothing relevant to this thread then you can just observe instead of posting random stuff and derailing.

Thanks

SacredDeviL666.
[Android Apps and Games] TechXero:
Ever since updating my OP6t to latest rooted with only one module Swiftimstaller Adaway giving me the not enough space message and when I change to/data/data/hosts I get cannot create Symlink message and if I do it manually I get too many Symlinks failed message.

I am confused. Even after clean wipe starting fresh same thing.
[Android Apps and Games] guest4711:
You did not tell us which rooting solution you use. But speaking from one module I assume it's Magisk. So:

Did you enable the Magisk systemless module in Magisk Managrt and reboot afterwards? After rebooting open AdAway, systemless hosts should be checked. Then you should try to update your hosts...

Good Luck!
[Android Apps and Games] PoochyX:
Guys need your help adguard is like eating 55 mbs of ram (only have 1.5 gigs) is does its job however of blocking ads on Chrome like blocking all ads and pop ups while strolling the web I heard if I use adaway with the proper source files I can do all that and save me these 55 mbs of ram anyone can tell me which files to use in adaway so I can get rid of adguard

[emoji3436]I Willl Scarfice For Those That I Love [emoji3434]
[Android Apps and Games] TechXero:
Lol thanks for heads up. I used to be on xXx Magisk module ROM it was running fine until I updated to OB9. I must've missed that being on Stock OB9 no ROM or module ROM. Cheers all fine now ;)
[Android Apps and Games] marciozomb13:
Delete
[Android Apps and Games] c_86:
I'm having issues. Wondering if someone can help

Thing does not seem to be working. Or maybe I need to add more hosts? But still getting ads in Amazon and Pinterest. I have attached a screen shot of my hosts.

Any advice would be great! Thanks in advance.
[Android Apps and Games] XAL2:
How do I know if they're applied and okay?
[Android Apps and Games] Portgas D. Ace:
Normally, the default lists (three of them, I think) within AdAway are enough to block mosts ads, nevertheless you could add Steve's list, just search this thread for "Steve" and you'll find it.
[Android Apps and Games] tsongming:
I have zero ads, it doesn't matter what I use, I haven't seen any ads for months.

To o avoid ads get rid of the apps that bring tons on ads. Adaway has the scan for adware feature, use it to limit you apps with ads down to 5 apps.

Also use redundant ad blocking such as the Energized Protection Magisk module.
[Android Apps and Games] guest4711:
As written: Use the internal preview or a good file explorer like MixPlorer. AdAway puts some comments into the file describing the sources used (see screenshot). If these lines are missing the file was not created by AdAway.
[Android Apps and Games] guest4711:
This is not redundant. Both solutions alter the hosts file. So you use the sources, white- and blacklists defined in AdAway sometimes, sometimes these defined in Energized.

If you need the power of the energized list you may add it to AdAway's hosts sources.
[Android Apps and Games] tsongming:
Thanks for your helpful information.

Bottomline is I have zero ads, and you guys have ads. So your point is what exactly?

Either contribute solutions or don't bother commenting at all. We all know how it works and how to add host sources .
[Android Apps and Games] PoochyX:
Is the Steven black list good money

[emoji3436]I Willl Scarfice For Those That I Love [emoji3434]
[Android Apps and Games] guest4711:
I don't see any ads for years now (since using AdAway of course). But it may depends on the services you visit. And therefore it is useful there are a lot of hosts sources so you can optimize it for you. ( I added Steven's social host list to the defaults, but for others this source may block too much...)
[Android Apps and Games] tsongming:
Honestly at the moment I have not added any additional hosts. I am using Adaway 4.2.3. However, I have used some Miui Roms that are full of ads, in that case I disable the files that are generating the ads in the first place. I have not used Steven Black hosts for a while. But in my experience using it, it typically works extremely well. Here is the link to its Github : https://github.com/StevenBlack/hosts/blob/master/alternates/porn/readme.md

---------- Post added at 01:32 PM ---------- Previous post was at 01:29 PM ----------

Agreed, my guess is that some of these users are getting ads from their stock Rom. Fortunately with Miui you can disable some of the root causes such as disabling MSA and Miui Daemon.
[Android Apps and Games] jcmm11:
It's the only list I'm using currently.
[Android Apps and Games] emonkhan826:
How to fix it? i am running on Oxygen OS pie OnePlus 3
[Android Apps and Games] guest4711:
Enable systemless hosts module in MagiskManager (settings -- systemless hosts) and reboot. Start AdAway, leave the default location (/system/etc/hosts) ... and all should be fine...
[Android Apps and Games] drewski_1:
It's good . . . and Zero money! :fingers-crossed:
[Android Apps and Games] GrayJack:
Did anybody find which host uses latest Telegraph app to show ads?

I am really crazy with that regular messages in a language I don't know (Arabic I think).
[Android Apps and Games] Nekromantik:
Hi all

I had to clean flash my phone. It's a rooted pixel 2 running du pie. I enabled systrmless hosts and reboot and then installed adaway from this thread and enabled and reboot again. However in apps adaway used to block ads on it no longer blocks. Quiet a few apps . Any ideas?
[Android Apps and Games] githyanki:
You either had another source added that you don't have now, or had done something else for those apps. Adaway does not do anything to block adds in apps explicitly, it only modifies the hosts file. If those apps have the IP address built in, they don't use the host file and adaway doesn't work on them.
[Android Apps and Games] PoochyX:
That's when adblockers like adguard shine at however the memory and background service is not worth it that adguard comes with it and when it shuts down sometimes all your apps Internet shutdown until you add it back [emoji817]

[emoji3436]I Willl Scarfice For Those That I Love [emoji3434]
[Android Apps and Games] jcmm11:
Just to verify that Adblock is working check the size of your /system/etc/hosts file. Default is about 56 bytes so if it's larger than that Adblock did its job and, as already mentioned, you either had additional sources previously or additional blacklist entries.
[Android Apps and Games] PoochyX:
Or look at the host file within adaway if it has alot of addresses on it its working also

[emoji3436]I Willl Scarfice For Those That I Love [emoji3434]
[Android Apps and Games] Nekromantik:
Thanks all will check.
[Android Apps and Games] Sneeuwtijger:
[APP][Root][OFFICIAL] AdAway v4.2.4 :: [2019-03-23]

....
[Android Apps and Games] r0tt0r:
hello, always been a happy customer of adaway though have following issue: when magisk receives an update, adaway stops requesting root permission. it is still listed as allowed su app, but does not work anymore, saying it could not write host file. only solution i have found on this, is a complete purge of magisk and the app starts working again. tried many things like the help says to link system/hosts to data/hosts etc but nothing brings it back. other apps request root as usual and work fine.

i even created a symbolic link from sbin/su to system/xbin/su.

is there any way to force requesting root somehow?

please find attached logcat and magisksu-log related.

if any further log or similar needed ,tell me and i will provide. i think its a bug in connection with magisk, as when i complete purge it, it starts to work again.

keep up the good work

br r0tt0r
[Android Apps and Games] jcmm11:
What happens if you delete AdAway from the Superuser section of Magisk Manager?
[Android Apps and Games] Daisymae:
No Internet Connection

Please accept my apologies if this has been addressed before. Latest AdAway causes a "No Network Connection" when I launch a particular app that requires one. Is there anything I can do to fix this?
[Android Apps and Games] r0tt0r:
sry wrong quote

it does not appear anymore and request for root also not happening

---------- Post added at 02:38 PM ---------- Previous post was at 02:33 PM ----------

this means a dns/ip needed for the app is blocked. you can disable certain blocklist, reboot and you may identify which is blocking this
[Android Apps and Games] Daisymae:
Thanks--I'll work with it.
[Android Apps and Games] Daisymae:
That worked! Disabled one blocklist and that did the trick. Thanks!
[Android Apps and Games] m0han:
how did you get such a screen?
[Android Apps and Games] PoochyX:
You won't be able to update your host file or revert to the default host file anymore.... That 19.2 you using is that the newest magisk beta

[emoji3436]I Willl Scarfice For Those That I Love [emoji3434]
[Android Apps and Games] m0han:
i just did. tbh, i don't get what you mean.
[Android Apps and Games] PoochyX:
Damn bro you got alot of host files all you need is one offical one to do the work all of those are doing lol [emoji23]

[emoji3436]I Willl Scarfice For Those That I Love [emoji3434]
[Android Apps and Games] m0han:
:laugh: but, i'd still like to know how to get this screen.
[Android Apps and Games] PoochyX:
I don't got that screen I think this should be posted in the Magisk forum but I understand where you coming from you want to know how to do that even tho is seem irrvelant

[emoji3436]I Willl Scarfice For Those That I Love [emoji3434]

---------- Post added at 04:16 AM ---------- Previous post was at 04:06 AM ----------

You got to magisk manager... Super user adaway and click on the little arrow

[emoji3436]I Willl Scarfice For Those That I Love [emoji3434]
[Android Apps and Games] jcmm11:
Tap between the app name and the slider to expand the panel

Tap again to revert to the smaller panel
[Android Apps and Games] PoochyX:
Riiii

[emoji3436]I Willl Scarfice For Those That I Love [emoji3434]

---------- Post added at 05:36 AM ---------- Previous post was at 05:20 AM ----------

One is to not get a toast when the app obtains root function and the other is to decide if you want to keep a log of times the app utlizies root function

[emoji3436]I Willl Scarfice For Those That I Love [emoji3434]
[Android Apps and Games] m0han:
tapping anywhere but the slider (even the icon) would do. thanks a lot.
[Android Apps and Games] m0han:
funnily, regardless of whether i disable or enable either, the toast that i get says 'enabled'. :laugh:
[Android Apps and Games] githyanki:
This needs to be posted in the magisk thread.
[Android Apps and Games] guest4711:
Do you have more than one Magisk Manager (one leftover, probably repacked as Manager and one regular)?
[Android Apps and Games] m0han:
no. never had.
[Android Apps and Games] guest4711:
So it looks like your /data/adb/magisk.db is broken (our your Magisk Manager is not in sync with your Magisk). In this database all settings for Magisk Hide and Magisk SU are stored.

To check it, boot into TWRP, use internal filemanager to move this db out of the way (rename it to magisk.db.save e.g.) and reboot. Then try again.

If it does not solve your problem, you may boot into TWRP again and put your saved database back into place...

Good Luck!
[Android Apps and Games] r0tt0r:
i gave this a try, other apps request root, adaway does not. but thanks for the tip

Update: thx to post of guest4711 i was finally able to solve the issue.

i edited the magisk.db file manually with sqlite and added under policies table a line:

uid 10196

name org.adaway

policy 2

unitl 0

logging 1

notification 1

deleted /system/xbin/su

then symbolic linked magisk su to system/xbin

ln -s /sbin/su /system/xbin/su

rebooted and adaway is working again.
[Android Apps and Games] arvylas:
Is there any beta working with Android Q beta? Hosts are downloaded but ad blocking doesn't seem to work.