yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] zoleegee:
Struggling to get it working... I haven't used adaway for a while, but just recently rooted my phone (Oneplus 7pro OB19 with arter kernel) and using magisk 21.

Installed Adaway, it got root OK, sources updated, phone restarted, but nothing is blocked... I do have the systemless magisk module enabled... looking at etc/hosts seems OK > the file 16 something Kbyte. It seems this is only a link to data/data/hosts > same file size?

It just seems the system doesn't (or cannot) read the hosts file....

Whether the host file is original or Adaway-ed, I cannot open it for read or edit (tried both data and etc locations)... I cannot open the host file from Adaway options either > when I select it, just ges back to the main screen... trying again will FC adaway...

Am I doing something wrong?
[Android Apps and Games] zgfg:
Have you rebooted after enabling Systemless hosts in Magisk Manager?

Then open AdAway and let it try updating hosts - then reboot again

16 KB is too small, open (it's text file) and see does it list any blocked domens or just standard stuff like localhost, localdomain
[Android Apps and Games] zoleegee:
That's what I did.

App shows 58881 Blocked, 3 up-to-date sources, and sorry, the hosts file is 16Mbyte not kilobytes....

I cannot open the hosts file for read or write - I get a permission error, although the phone is rooted. Tried different apps, total commander, es text editor, etc... same issue... I can open the hosts file if I copy it to another location and can also view, it does have 58000+ entries... I can also copy the file back to data/data/

It just seems, that the system doesn't or cannot read the hosts file for whatever reason.
[Android Apps and Games] DiamondJohn:
The following has been a question in my mind for a while, but its so trivial I havent posted.:cowboy:

I previously was running an Oreo ROM, and had a large host file, explicitly in the system/etc folder, not via magisk systemless host. It was very large, and the smart money all said i should expect it would slow down my phone; but I can't say i noticed it. And it was not a strong device by today's standards.

I have recently upgraded to a Pixel 4a, and for the first week I didn't root it in case I chose to return it; I didn't want any hassles with the returns/warranty. So, I went the rootless VPN mode. I have stayed in VPN / rootless mode even thoough the phone is now rooted. I again have bulked up my host sources, and now have >500k blocked hosts. I do like not having to reboot to have the hosts updated.

I again, perceive no slowing down of my phone (the 4a is much more powerful than the previous one). I understand that using the VPN and the extra large hosts files WILL be slowing my phone down, but I don't feel it. Is there any specific test I can try to highlight the effects on my device?

My biggest "problem" (to me its really proof that the hosts are working) is that in the app Google news, some links direct you through tracking websites, which then re-direct you to the actual story, and so, those that go through tracking sites, fail.
[Android Apps and Games] Ebbasta:
Two Malweres In Virus Scan test.

Attach Screenshot.
[Android Apps and Games] drnightshadow:
lol this lool priceless... thank's, you make my day better :ROFLMAO::ROFLMAO::coffee::coffee::D:p

False!!!

Yah, I love AdAway. Can't live without it. Awesome, new version 5.3.

Stay safe!
[Android Apps and Games] andy356:
Special thanks to YOU, Bruce! You implemented an entire new source parser based on my bug report. That's amazing! Thank you so much for working on this critical app. Can't wait to try this update out when it arrives on F-Droid.
[Android Apps and Games] CaptainChrom:
Feature Suggestion

Automating the addition of new hosts sources/user rules

Currently you have to add every new hosts source, or rule by hand by copying the link and then pasting it into the settings in AdAway.

This requires you to go through multiple screens until you are inside the respective menu inside AdAway and can add a new rule.

If you visit a lot of sites that you want to support by allowing ads, the ~20-30 seconds needed to copy & paste the link everytime will add up really fast and make it annoying to add exceptions. This reduces the chance that a user adds a website to their exceptions a lot.

Here's my suggestion:

The task could be automated through the android share menu.

When a link is shared with AdAway (or if turned on, the pop-up is clicked after a link is added to the clipboard) it opens AdAway (or just a pop-up if draw over other apps permission is granted and shows a screen where you can pick whether you want to add the URL to your blocking, or your exceptions list. Then the app takes you back to your browser (or whatever app you were using before) and applies the new settings in the background.

This could also be implemented by adding multiple shortcuts to the share menu, so that the app doesn't even need to be opened to add the new rule.

This would reduce the required amount of taps & time by a ton. Instead of 14 taps & ~20-30 seconds (press on URL bar, long press link, copy link, home, app drawer, adaway, exceptions, plus button, hold for paste, paste, add, apply settings, recent apps, last used app) it would take only 4 clicks (3 if multiple shortcuts are added) and a couple of seconds (three dots menu, share, AdAway, select hosts source/positive or negative rule).

Optionally you could also add the ability to force close and reopen the last used app, so that you can continue browsing with the new settings applied without having to reboot the device, or force close & reopen the app manually, which also takes a lot of clicks.

This could be implemented by adding a box that you can tick, or a second button, so that you can always choose wether you want to force close or not using a single click. The button could have a different icon to make it easily distinguishable from the regular button.

It could look like this (pop-up after you tap on AdAway on Android share menu):

[Add as hosts source] (plus icon) (reload icon)

[Add as positive rule] (plus icon) (reload icon)

[Add as negative rule] (plus icon) (reload icon)

I would love to hear feedback on this idea and I would love seeing it implemented inside the app one day even more.

Cheers ;)
[Android Apps and Games] DiamondJohn:
For adding new host lists in bulk, I have used the import JSON file.

As for restarting the last used app, if you are using Magisk systemless hosts, then restarting the last used app wont do it. You have to reboot your device.
[Android Apps and Games] zgfg:
You want to add ten or hundred hosts to the block list?

Create your own file e.g. myBlockedList.txt with the same format as online hosts file:

127.0.0.1 24log.de

127.0.0.1 24pm-affiliation.com

127.0.0.1 2mdn.net

127.0.0.1 2o7.net

127.0.0.1 2znp09oa.com

Then go to the Hosts sources list, + to add new one, and instead of URL click to File, and navigate to your file

Apply and voila

See the screenshots, observe that instead of https://, this is now content:// type
[Android Apps and Games] DiamondJohn:
It wasnt me that had the question,. and the poster who did ask the question, explicitly said host sources, not individual hosts.
[Android Apps and Games] zgfg:
Hosts sources through json already answered
[Android Apps and Games] DiamondJohn:
Its ALL been answered before, including the hosts in a file you spoke of. I know this, because I was part of the conversation before it was an option built into AdAway, and presented and tested a work around that worked. My response was specific to HIS specific question.. I do not understand where you are going.
[Android Apps and Games] CaptainChrom:
No, it's not all been answered. You only focused on the way less important part (the hosts) and left out the most important stuff: the user defined rules. Those are what have to be added over and over again. Once you have added a bunch of host sources when you set up the app you don't need to add many new sources or individual urls anymore. Yeah you may encounter a URL which is not included in any of your hosts lists, but that's very rare, especially if you have added a lot of hosts sources which get updated very frequently.

But you have to add new sites to your custom rules every single time your browsing and visiting new websites you want to support.
[Android Apps and Games] CobalTitan:
Hello, is there anyone else who is having a sync issue with raw.githubusercontent.com files for rooted version?
[Android Apps and Games] DiamondJohn:
I repeat, i was answering a specific question, specifically.
[Android Apps and Games] CaptainChrom:
Alright then my bad. I got confused since you said "all". I thought you were referring to my original comment and not only the bits about hosts.
[Android Apps and Games] Hemphiz:
After try to find search or most thanked post see how one may block all4 ads I ended up elsewhere (this new site sucks ass) using Blu hosts blocked all that was needed for me
[Android Apps and Games] Nameless Foe:
Does this app use a internal VPN?? I have my own i pay for.. Will this app use the adblock vpn or can i use mine still?
[Android Apps and Games] Nergal di Cuthah:
If you have root you can use both, if no root it's one or the other
[Android Apps and Games] Nameless Foe:
Ok thanks Ive been trying to find a solution to not being able to unlock the boot loader on my phone but its not looking well
[Android Apps and Games] DiamondJohn:
typo. if you have no root, you can only use vpn. I know you understand, as your first sentence shows.
[Android Apps and Games] Nameless Foe:
Is there any talk within the community of a OEM boot loader bypass for US Carriers, dealing with Samsung devices at all?

I'm new here and I've tried so many things.......
[Android Apps and Games] DiamondJohn:
PS: I have root, and am using the VPN method
[Android Apps and Games] Nameless Foe:
Well thanks for rubbing it in even more!.. ;)
[Android Apps and Games] Claudio4780:
v5.3.0 is available via Fdroid
[Android Apps and Games] Ebbasta:
Is that the only answer you can give? I would be a new user and I was worried. Seriously. I wasn't making fun of anyone. Thank you all the same.
[Android Apps and Games] Wolfcity:
You're right, no need to make fun of someone.

It's often said here on XDA: If you are not willing or able to help just ignore the post.

AdAway is a long used app and even the newer build (5.x) is tested by a lot of people (including me) and is also available on F-Droid where the source code is checked.

You have two positive results out of...25? Both are from relatively unknown security services. So you have a 99% chance that these are false positive results.

Maybe someone with more knowledge regarding the code of AdAway can explain why this happens but you can feel safe, no trojans or other stuff in AdAway.

Btw, for the moment the build on F-Droid isn't actual, the developer is working on it.

So when you want to use AdAway download it from it's own website which can be found in the OP.
[Android Apps and Games] drnightshadow:
Don't get me wrong it was morning and I was drinking coffee and I saw your post about viruses. It was answered so many times. That why is soo funny. Thats it... nothing personal and on your report was, 2 funny antiviruses found virus, well 3rd classes AVs. Sorry im lool again while I'm writing last sentence. Funny AV, totally fake. Just relax it's not your fault why I was lool. You should be happy, it was AV reports fault for my lool.

I'm sorry if I insulted someone. Not meant to be that way. Sorry!

Good luck and stay safe!
[Android Apps and Games] SpartaKurd:
Hello guys, I'm on adaway 5.3.0 and OxygenOS 10.3.8. Right now, my adaway is working but not blocking ads on apps and web pages. When I was on OxygenOS 10.3.7 it was working good. What's the issues? How can I make it block adds again? Even right now, when I'm writing this message, I see adds on xda page.
[Android Apps and Games] Lvsitano:
I have exactly same issue, same Oxygen version, and previously working fine with Adaway.
[Android Apps and Games] zgfg:
In Chrome, Settings, disable Lite mode.

It will block ads if you are using AdAway in root mode (for root mode make sure that Systemless hosts are enabled in Magisk)

Make also sure that your custom ROM does not include private DNS for blocking ads - in that case, ask on their side why it doesn't work
[Android Apps and Games] DiamondJohn:
I can add a list of host sources to block each could have thousands of gosts listed. But from my understanding, I have to specifically allow explicit individual hosts.

Is there a way to allow a list of allowed hosts downloaded from a URL, in a similar manner to the list of blocked host sources?

At this stage, I have made a JSon file of the individual hosts to allow and imported it, but would prefer to have a single host source of allowed hosts.
[Android Apps and Games] zgfg:
If you mean using the Allowed list file, this is a known bug:

How to use Apply allowed hosts option when adding a hosts source? · Issue #2529 · AdAway/AdAway

I want to add a list of allowed hosts, for example: api.micloud.xiaomi.net sgpac.account.xiaomi.com connect.rom.miui.com update.miui.com zgwlc.zagreb.hr magisk-modules-repo.github.io Instead of man...

github.com

and:

Allowed list (from local file) not working · Issue #2185 · AdAway/AdAway

Thanks for implementing/fixing the previous #2131 about reading a textual list from local storage. Tested with v5.0.7 and Blocked list and it works However, cannot make it working with Allowed list...

github.com
[Android Apps and Games] DiamondJohn:
Yeah, that does appear to be what I am looking for. Thanks.

This actually brings something to the forefront that I haven't seen mentioned here before. I have a github account and as such I can upload a file (lets say an allow-list, or two), and I know the download from github (over https) is working for blocking.

So, would uploading my allow-list, of which could be many, broken up into their logical reasons eg amazon, and then creating it as an allow-list, would work? People could share the github links, as opposed to having files attached to posts, as I *thunk* I have seen.
[Android Apps and Games] DiamondJohn:
I just got off my .... and did a test. The list appear to have imported as allow lists, but in the front page in the "Allowed" box it shows "0". I guess I will have to try and modify one of the allow files and add a known ad source host, and see if its in the resultant block list. Or is this the behaviour I can expect? i.e. Allow lists do not show up in the "Allowed" box, but simply reduce the "Blocked" number; if it IS one of the hosts that are blocked in one of the other block lists.
[Android Apps and Games] ThatDamnFrog:
So I'm a noob, and I got a few questions! (Hope I'm not writing to much)

1) Has anyone gotten ADAWAY to block ads in Youtube completetly(if so what filters?)

2) What exactly does "redirected hosts" mean, and can I just add any filterlist like easylist/fanboy's lists/HL2 >Do I need to enable allowed hosts to make them enforce?

>Or can I only use the ones on the adaway website

3) Can I use it to block trackers/Malware domains with some lists?

4) I read that I have to restart after doing a change for it to be "applied" is this true?

5) Do I need to have the adaway app open at all times? (From what I can see no?)

6) Everytime I reboot, some external sources show as "outdated" for example HL2 (Link to the list)

https://github.com/hl2guide/Filterlist-for-AdGuard

Is it suppose to be like this, if so what causes that. (I doubt its an update, since I doubt the list will update within 5s-1min it takes me to reboot the phone or close the app and reopen it)

7) Forgot to add this up-top, but will enabling redirected hosts for lists "improve the blocking" (currently I just enabled it for all default lists)

+Don't know if this is important but it's installed on a Xiaomi Poco X3 NFC, rooted with ResurrectionRemix

Thanks in advance!
[Android Apps and Games] Kemaledwan:
I cant use cloudflare private dns on android 10
[Android Apps and Games] Wolfcity:
So?

What about some additional information?

No mind-readers free at the moment.;)
[Android Apps and Games] marcowqx:
For me this app don't work, i have installed all the necessary... For exemple on youtube don't work and all sites too.

I use a samsung s8+ with root and android 9
[Android Apps and Games] zgfg:
AdAway does not block ads in XouTube - Use Vanced YT (search for, there is also a thread on XDA)
[Android Apps and Games] marcowqx:
And for internet?
[Android Apps and Games] an0n981:
Does the applying work properly?

have you tried clearing app data? maybe reinstall?
[Android Apps and Games] Amd4life:
Same issue, I have to redownload few times a day. Almost as if one of my free apps updates the host on its own.
[Android Apps and Games] sohebq:
Done everything. Don't know what is screwed :( Tried moving to adfree, that doesn't block ads.
[Android Apps and Games] an0n981:
Open the hosts file with a text viewer (system/etc/hosts). It will usually contain some kind of indicator of which app generated it. Maybe it is being altered by a different app. This would be the easiest way to track down which app is responsible.
[Android Apps and Games] sohebq:
Nothing here...

Sent from Galaxy Note 3 (The beauty & beast)
[Android Apps and Games] an0n981:
Are you sure it applying properly? Check once right after applying before the reboot
[Android Apps and Games] PunishedSnake:
Why does it go back to disabled after a reboot
[Android Apps and Games] sonixdan:
Your system is read only.

You can try Mount /system (rw / ro) => https://play.google.com/store/apps/details?id=com.beansoft.mount_system

Depending on the ROM, it may work ... or not.
[Android Apps and Games] danielsinnema:
I'm sorry if it already had been reported, but for some time now AdAway doesn't block YouTube advertisements anymore. How to fix this? Are there any other to block those annoying ads?

Thanks in advance!
[Android Apps and Games] sushidog:
Install Supertube or Viral from P.Store
[Android Apps and Games] kingvortex:
After updating the hosts today, the Amazon Appstore was simply displaying a black screen on opening.

Anyone having issues with the Amazon Appstore should either -

1. Whitelist *.amazonaws.com

Or

2. Remove hosts-file.net from their sources, as it seems they add reported URLs to their hosts file without checking what else they may break and rely on reports before removing them. They've been responsible for a few apps not working on my device recently. Quite irresponsible IMO and it's annoying having to work around them doing this.
[Android Apps and Games] sohebq:
This is not working too :(
[Android Apps and Games] xxxmoscoxxx:
Perfect, it works like a charm!
[Android Apps and Games] Masum56k:
Installed and applied perfectly..

But how to disable app's icon from Notification area?
[Android Apps and Games] Masum56k:
Okay problem solved.

But it seems to be, the ad area still showing there. Only ads are disable..

Btw. This app works fine, as like app's name. AdAway... :)
[Android Apps and Games] sohebq:
No other adblocker working and this one is messing with me :mad:

Sent from Galaxy Note 3 (The beauty & beast)
[Android Apps and Games] sushidog:
Poor guy, nobody loves you.

/// Samsung Galaxy S4 GT-I9505

/// Press "THANKS" if I helped you
[Android Apps and Games] Razeer:
Fixed my problem going back to "DISABLED" when rebooting.

Just do these steps ( hope you understand my english )

1. Use root explorer

Go to Root/etc

Look for hosts file.

( better search for it )

There are 2 results ( actually it's 3 but the other one is for bluetooth i guess )

Delete the 2 hosts file (101kb)

Apply adaway.

Copy the new (900kb) "hosts" file from "etc" to "crossbreeder" folder

( note that the crossbreeder folder is inside the etc folder )

reboot

If you see any hosts.cbbak (something like this) delete it too.

Thank me if I helped. :)
[Android Apps and Games] sohebq:
Which one to delete?

Sent from Galaxy Note 3 (The beauty & beast)
[Android Apps and Games] La_Globule:
Display file properties on each file to get the folder in which it resides.
[Android Apps and Games] drnightshadow:
Read at least last 15 posts before you ask question, already answered 100x times, and also read OP.

Good luck and stay safe!
[Android Apps and Games] zgfg:
What does it mean "for Internet"?!

Like about YouTube, case for Chrome has aslo been maybe ten times asked and answered

As well as general debugging (DNS log) if you have problems with a particular app

Guys, if you are new, please do the homework, read/search through the thread.

Also, go to the Github, read the documentation there and then please ask if something was really not covered
[Android Apps and Games] xalaros10:
I have root android tv box, installed ok Adaway v5.3.0 root method, updated sources but nothing is blocked. Do I have to do something else?
[Android Apps and Games] drnightshadow:
Yes, read last 20 posts and OP!

And you'll find the answer! All you need in your life is able to read.

Good luck and stay safe!
[Android Apps and Games] Sidhant1920:
Can we get any option to whitelist an app in future? If see that would be great, for me amazon crashes when adaway is ON so have to pause adaway and use it then resume it back ON
[Android Apps and Games] JGradyO:
Amazon works perfectly for me and probably for a few other AdAway users. If it doesn't work for you, then you have some reading, troubleshooting, data gathering, and proper bug reporting to do before you should ask a dev or the community for help to fix your issue.

Second, AdAway manages the hosts file. Selectively preventing some apps from being affected by the hosts file seems to me to be beyond AdAway's scope. There is a procedure described in the wiki for whitelisting the sites you need in order to fix your apps on your phone. Try that.
[Android Apps and Games] Sidhant1920:
It's not just for me my other friends from community was facing same . It's only happening for amazon app( might be specific for india app) .Like there is no network see below for that but it works fine again after pausing adawayView attachment 5211767
[Android Apps and Games] SubwayJrd:
Disable the Webserver in AdAway.
[Android Apps and Games] Sidhant1920:
Yee it! worked thanks alot man .... Much appreciated
[Android Apps and Games] edan13:
Hi been using adaway on rooted devices only so far.

Can anyone comment on how significant the battery drain is with the vpn non rooted method? Using a Samsung galaxy tab s7

Thanks
[Android Apps and Games] j1gga84:
Just add *amazon* to whitelist and you must not disable Webserver, it works the same way.

regards
[Android Apps and Games] zgfg:
Disabling Web server has other benefits, it also solves e.g. for XDA app (and for something else was also reported, not recall details)
[Android Apps and Games] njascgil:
First of all, I am really sorry if this question was answered before, but I did try to search and found nothing (the new search results display from XDA may have played a role here, as I am not really used to it...)

I have an old phone with Android 4.4.4 (CM11) and it seems that AdAway isn't able to download hosts sources.

Other apps do have internet access and I even tried AdAway 3.3 to check if the problem was with the https sources. Neither version (3.3 or 4.2.6) is able to check the sources, even though 3.3 "correctly" updates the hosts file with a default/empty version.

The problem seems, therefore, to be related just with the downloading of hosts. I am even able to block ads if I manually copy a hosts file created with AdAway on another device.

Is this problem to be expected? (Should I just move on and forget using AdAway on this old phone?) Thanks!
[Android Apps and Games] zgfg:
If you use your 'custom' host sources, make sure they are all https, since http is no more supported
[Android Apps and Games] njascgil:
Thanks for replying. However, I tried both hhtp and https. (And the ancient 3.3 version does not even support https...)