yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Ch3vr0n:
There's squat diddely difference between the 2. They both point to the same thing and telling it to look there for the ad server. Your device.

Sent from my Nexus 6P with Tapatalk
[Android Apps and Games] piperx:
There's no place like home

http://www.tech-faq.com/127-0-0-1.html
[Android Apps and Games] jcmm11:
Not completely true. 0.0.0.0 will give a slightly faster response since it's recognised as "invalid host" or "no available host". Localhost (127.0.0.1) goes through the loopback interface and tries to actually connect to a service on the local machine, so it has to wait for a timeout.

Localhost allows a connection if you enable the webserver within Adaway (as one example). 0.0.0.0 wouldn't connect even if you enable the webserver.
[Android Apps and Games] kyramas:
Is there any way of removing the ads' placeholders inside the webpages that adaway leaves behind after blocking the ads ?

I am using Chrome in Android 6.01

Thanks in advance
[Android Apps and Games] Ultramanoid:
Yes, but using Firefox with uBlock Origin.
[Android Apps and Games] zputnyq:
Put this in your host file

127.0.0.1. s0.2mdn.net

127.0.0.1. googleads.g.doubleclick.net

127.0.0.1. ad.doubleclick.net

127.0.0.1. files.adform.net

127.0.0.1. secure-ds.serving-sys.com

But I'm not sure whether it still works or not because I don't use yt anymore.
[Android Apps and Games] vikasb32:
Can anyone help me to block ads in adm(download manger app)?this app using graph.facebook.com and i don't want to block it as i am using Facebook.
[Android Apps and Games] androcraze:
Have you looked at other apps that don't have ads, or ads that can be managed by AdAway?

uGet: open source, Android version has ads

Website: http://ugetdm.com/downloads-android

Play Store: https://play.google.com/store/apps/details?id=com.ugetdm.uget

Turbo Download Manager: fully open source

https://sourceforge.net/projects/turbo-download-manager/
[Android Apps and Games] zputnyq:
maybe u can use an app named my android tools. it's powerful app.

ads used to be located in activity, perhaps u can disable the ads from there.
[Android Apps and Games] Bimm3r:
This app always misbehaves. Altough it is enabled and aplied, ads still apear.

Oneplus2 using lineage 14.1 and magisk. Adaway is very unreliable and ads still apear, random tough.
[Android Apps and Games] Ultramanoid:
The application doesn't do anything after replacing your hosts file.

Read through the thread to understand what a hosts file is and how to use it. You probably need to edit the hosts in it to block specific servers.
[Android Apps and Games] Bimm3r:
I KNOW what a hosts file is, I don't need to edit anything, that's the purpose of the ****** app ;) all enabled, restarted phone several times, ads not blocked. Not good. ;)
[Android Apps and Games] Pkt_Lnt:
Double check data saver settings, APN, and if ads are DNS or IP served.

IP served ads can not be blocked by AdAway. If the app devs change from DNS to IP ad servers, you are screwed, and some are doing that to thwart ad blocking
[Android Apps and Games] :
There is something wrong in your config, no ad on my screen looking xda.

Have you disabled data saver on chrome?!
[Android Apps and Games] Bimm3r:
Will also try that, thanks for the effort man :)

Data saver is off.
[Android Apps and Games] Pkt_Lnt:
Log DNS requests in the menu is your best troubleshooter.
[Android Apps and Games] Bimm3r:
Ads are now blocked everywhere (in apps and chrome) i haven't done anything. Weird stuff :))
[Android Apps and Games] Win1droid1:
can not imagine my phone without this app:D
[Android Apps and Games] ChazzMatt:
Exactly. I never see any ads either XDA either on my phone.
[Android Apps and Games] Redhawk2000:
Just a suggestion but maybe it is just my issue. Sometimes I'll realize that I'm seeing ads and notice that AdAway is disabled. This especially happens after I do a ROM update or flash something. It would be helpful if there were a setting to allow a persistent notification when the app is disabled asking if the user wants to enable it. I may be the only one. Or maybe it's in there but I haven't found it.

Edit - realized I didn't have systemless host turned on in Magisk if that makes any difference.
[Android Apps and Games] PerfectSlayer:
First, it could be a good idea.

We will need to remember in the application preferences the latest state (if the user ask to install or uninstall the customized hosts file).

So if we detect the hosts has been installed but was reset to the original one (if you flash another ROM for example), we could raise a notification.

But:

We will need to do this at boot (do users really like applications that bloat its phone boot?),

The current trend to systemless host tends to remove the need to reapply host after update. Your root method should handle this case.

So I don't think we really need this kind of feature. Moreover, the user who often flash their ROM are advanced users who already know when /system is wiped.

But it's nice to propose new feature ;)
[Android Apps and Games] -TheKoolAnie-:
Delete
[Android Apps and Games] -TheKoolAnie-:
Whenever i open an Redirect which start with linksredirect.com it doesn't load.

Any solution?
[Android Apps and Games] pkelly517:
I agree.

The first time I visit nearly any web page after a flash, I'm quickly reminded that I need to run AdAway.

There is never a doubt.
[Android Apps and Games] ktmom:
Add linksredirect.com to your white list and reapply.
[Android Apps and Games] Redhawk2000:
Maybe I'm missing it, but is there a way to back up the host sources (I have 12 in my list that aren't all active) to backup for transfer to another device? I see it mentioned as requested as of a couple years ago in this thread.
[Android Apps and Games] Nergal di Cuthah:
Afaik a Titanium Backup should save your hosts. It seemed to on mine, eg:mine kept mvps even though it was removed from default sources)
[Android Apps and Games] peterlee928:
i can confirm that this works. have done it multiple times with no issues. when you restore adaway via tibu, just need to download the host files again and reboot. note that your prior host files will be saved.
[Android Apps and Games] Pkt_Lnt:
In Adaway, (menu - 3 dots) > Your Lists, (menu) > Export all lists.

This will download it to your sdcard. Before you run this, go to Settings > Apps and make sure Storage permission is granted in Adaway, it is not enabled by default since in normal operation it is not needed. Then move that file to the new device and reverse the process, granting storage permission before import.
[Android Apps and Games] Redhawk2000:
Thanks. I thought that was to only backup the white an black lists but hadn't tested it.
[Android Apps and Games] corkiejp:
Adaway probably needs an update to cater for the new paths used in SuperSU 2.82-SR3!
[Android Apps and Games] ipdev:
If you are looking to use adaway with SuperSU in sbin.

https://xdaforums.com/showpost.php?p=73379577&postcount=10868
[Android Apps and Games] PerfectSlayer:
Thanks for the ping!

Thanks for pointing me the solution.

I'll improve the code I did to support systemless SuperSU to detect the latest beta (2.82 SR3).

I will start working on it from the next Tuesday but keep in mind it's a SuperSU beta so there is no need to rush in an quick and dirty hack. I'll take time to polish it.

Moreover, my last PR (systemless support for Magisk/Magisk Manager) is still not merged so don't expect the fix to be merged soon neither.

P.S. : For those who follow my Github fork, there will be some surprise soon™! :D
[Android Apps and Games] j1gga84:
Is there still any development for AdAway or did it come to an end?

regards
[Android Apps and Games] Ultramanoid:
Did you even read the post immediately before yours ?
[Android Apps and Games] piperx:
I think nowadays, reading, is a developers skillset, not ment for users ?
[Android Apps and Games] NHNXDA:
Apk from labs seems corrupted, tried 2 downloads, still won't install.
[Android Apps and Games] sirxdroid:
What's the problem with SuperSU 2.82 SR3 and the latest Adaway in the OP? Mine seems to still work.
[Android Apps and Games] ChazzMatt:
something about people who use systemless are affected. Not regular users.
[Android Apps and Games] sirxdroid:
I use systemless and haven't noticed any issues, no ads either :)
[Android Apps and Games] jcmm11:
If you didn't install SuperSU in SBIN mode (and you're not running O) then there would be no change. If you do install in SBIN mode then you have to make modifications to have Adaway continue to work systemless. Yes, Adaway is being updated to handle the changes, but hasn't been yet.
[Android Apps and Games] Joloxx9:
I have a problem with latest magisk. When I want to choose systemless hosts in adaway settings its grayed out and systemless hosts is checked in magisk any help?
[Android Apps and Games] jcmm11:
Someone can confirm but I believe that's expected behavior with Magisk. As long as it's checked in Magisk you should be fine.
[Android Apps and Games] Jacerany:
Nice , thank for your topic .
[Android Apps and Games] Joloxx9:
I do not think its right because adaway replace hosts but it should' but Nvm I have much bigger problem.

No matter witcher adblock I use I still have all ads which I haven't got few weeks back. I tried adaway, few modules for magisk and I know they work but I still have ads even If ny hosts file is 9MB Big! Check this website www.joemonster.org , I use to have 0 ads now it is looking like in attachment.

Is it something wrong on my side or ads are just Smarter?

Thanks.
[Android Apps and Games] visceralpsyche:
Did you check that Chrome still has the data compression disabled?
[Android Apps and Games] BackToAndroid:
I installed this app two days back and I haven't seen any ad getting blocked, maybe it be in YouTube or any game I still keep getting loads of ads.

What am I missing here?
[Android Apps and Games] Joloxx9:
It is disabled, I have checked Firefox and have same problem, but in Firefox I can use ublock. Look at screenshots and compare. There is one more from xda developers main page. Should I have all of them when my hosts file is over 9 MB and I have mahakala + Steven black in it? Can you make a screenshot of yours xda developers main page and share it? As I still think there is some problem with rom because I havent got that problem 3 weeks ago. And can you also share your hosts file? I have latest magisk.
[Android Apps and Games] Sheetzie03:
Reading is way too much work on this site these days for alot of users unfortunately. Much easier to jump right in, post, and hope for an answer asap. Want to put forth as little effort as humanly possible.
[Android Apps and Games] pkelly517:
The ability to search.
[Android Apps and Games] ChazzMatt:
Also, NOBODY could have ever asked that question before, right? (Thinking specifically of the hundreds of questions about ads in YouTube) So, no need to even search in the thread right -- where the question might have already been answered many, many times?

But yeah, when dev related post was literally just the previous post, the question about no dev development was particularly oblivious. ;)
[Android Apps and Games] jcsww:
I am not sure if AdAway shares some of the HOSTS files with AdBlock but a DCMA a couple of weeks ago to the creators of AdBlock had the following removed.

||functionalclam.com^$third-party
[Android Apps and Games] SimplyCity:
This is how joemonster looks on my device:

S8+, Echoerom, AEL kernel, SU SR3 (systemless sbin mode), Adaway 3.2, sources:

So blocking works, pretty nice.

:)

Echoe[emoji769] team member / S8+
[Android Apps and Games] Pkt_Lnt:
It works, the grey button issue is not fixed yet, but is work in progress:

https://github.com/AdAway/AdAway/pull/900
[Android Apps and Games] ChazzMatt:
[MENTION=4161942]joloxx9joloxx9[/MENTION]

On my phone, joemonster.org also does not have any ads.
[Android Apps and Games] Joloxx9:
I have fixed problem. It was APN related, 3 weeks ago I went abroad and I had to change APN to have working internet connection, and that caused all of the problems. O2 was playing with me... Anyway, thanks for help :)
[Android Apps and Games] Primokorn:
It seems Burger King website can't be opened when host sources are loaded. I recorded a log through AdAway and found weird domains (not specific to this website since I already saw similar things).

Do you know what it is?
[Android Apps and Games] Pkt_Lnt:
Junk ad websites.

I use a blocking script on my home router and I have over 300 of those blocked from a sports website I use in Europe to watch sports I can not get in the USA. I have to close about 5-6 popups to watch an event before the script blocks them. There is so much click bait that I find it impossible to watch on mobile, it is so hard to add them to Adaway.

They seem to rotate the host names randomly getting paid clicks and about 6-8 get added each day via the script. Here is just a sample:
[Android Apps and Games] GuardianUSMC:
I don't know for certain but the way it was explained to me is that if you have the web server enabled, and a blocked domain is given a "response" from it, it will show up as those "weird" looking domains. Hope that helps.

EDIT: Although reading what [MENTION=4403217]Pkt_Lnt[/MENTION] said, it may not be the case, even less certain about it now :confused:
[Android Apps and Games] xmascious:
please update so it can: properly fetch github blocklists
[Android Apps and Games] PerfectSlayer:
Hi all,

A quick post to give some news about the ChainFire's SuperSU >=2.83-SR2 "BIND SBIN" systemless mode.

I updated AdAway to support this mode as new systemless mode (the previous "/su partition" mode will still be supported too).

It detects the "bind sbin" by checking su installation with the following command: "mount | grep /sbin/su".

It installs systemless script into /sbin/supersu/su.d/ and the hosts file into /sbin/supersu/etc/.

The only remaining issue is the need to reboot after installing the systemless script.

With the "/su partition" mode, the app just run the script and the mount point works without reboot (that's what we want).

With the "bind sbin" mode, the script is still executed, returns 0 (no error code in $? nor output on &1 or &2) but the mount point can't be seen using the command "mount | grep hosts" in an adb shell.

But if I ran the script from a root adb shell, the mount point works without reboot.

Does anyone have an idea about how to fix it? I wonder if the error comes from some "context" from which the script is called (Zygote for AdAway app versus shell/2000 for adb) like mount point per app versus system wide mount point or permission issue. Thanks.
[Android Apps and Games] corkiejp:
Maybe [MENTION=631273]Chainfire[/MENTION] might know how to resolve that issue, hopefully he might reply to this mention. :)
[Android Apps and Games] Chainfire:
Have you tried su's --mount-master mode? It is of course possible I made a bug somewhere. However, I am on vacation and cannot be of real help. So remind me in a few weeks if you cannot find the solution.
[Android Apps and Games] jcmm11:
I have a script I run to toggle the hosts file and Chainfire is correct that you need mount-master mode. This command should work.

su -mm -c /sbin/supersu/su.d/0000adaway.script
[Android Apps and Games] jack allen:
Deleted
[Android Apps and Games] Nergal di Cuthah:
It's in the xda labs app thread too.
[Android Apps and Games] GuardianUSMC:
It is some out of context nonsense posted by someone, please don't quote it and make it spread further cluttering the thread :fingers-crossed:
[Android Apps and Games] jack allen:
Ok fair enough bro
[Android Apps and Games] Nergal di Cuthah:
Could you edit your previous post not to have the, now banned, member's quote. Thanks we all appreciate it :)
[Android Apps and Games] PerfectSlayer:
Thanks for bringing [MENTION=631273]Chainfire[/MENTION] here! (specially during his holidays ;))

Yes, that's the option I forgot. I don't why it worked with the "subin" mode (systemless with /su partition).

I think I'll come back later to you to know if there is better way to guess the "sbin" mode (systemless with bind sbin) than using "mount | grep /sbin/su"?

Moreover, when I read the How-To SU, I saw the sample script defines an interpreter: /su/bin/sush

#!/su/bin/sush
(
sleep 300
echo done
)&

Own script does not have one. How could we add one and stay portable? I mean, /su/bin/sush does not exist in "sbin" mode.

If you have any good practice here, please share with us. Thanks!

Thanks. I tried to use similar command from the Shell I have in the code but the command doesn't terminate (so the application stops to respond...).

I made a few tries before succeeding to send correctly the command using this old RootCommands library but everything should work now.

I pushed the commit of the feature but I want to test more deeper on others SuperSU installation variants before making the PR. It should not be long.
[Android Apps and Games] jcmm11:
You can try

if [ -e /sbin/supersu/supersu_is_here ]

or some variation thereof
[Android Apps and Games] osm0sis:
You can just stick with the usual #!/system/bin/sh shebang, should work fine with all root locations.

There was a bug in older su.img SuperSU so that it didn't require mount master (even though it should have), that's why it worked before.
[Android Apps and Games] jack allen:
Done
[Android Apps and Games] GuardianUSMC:
:good:
[Android Apps and Games] PerfectSlayer:
I saw this file during my tests but I didn't know if the su binaries could be installed in /sbin folder with the systemless mode only or not. After reading (again) the SuperSU update-binary, it's the case so the presence of this file is safe to detect "bind sbin" systemless mode. Thanks.

Thanks for the explanation. It means AdAway will be buggy even with "/su partition" systemless mode with the next SuperSU update (a reboot is required but the application does not ask you to).

Finally, the PR is live. I added the improvement of [MENTION=4487388]jcmm11[/MENTION] and fixed a small bug found during my tests.

You will need to wait the next beta with the PR merged to use the feature (and no, systemless MagiskSU support is not merged yet).
[Android Apps and Games] BackToAndroid:
Actually didn't help much, I'm brand new with Adaway and rooting too. If you could link something that might be helpful.
[Android Apps and Games] ktmom:
Start with reading the developer's site linked in the 1st post. Then move on to this link.
[Android Apps and Games] attaullahsahito:
Not working on Android Oreo

I am on Nexus 5x, Android Oreo OPR6 build, dm-verity disabled forces encrypt disabled, selinux permissive, rooted with SR3-SuperSU-v2.82-SR3-20170813133244.zip. After installing Adaway and clicking 'Download Files and apply ad blocking' even thing goes smooth, in the end it says:"Copying of hosts file failed."
[Android Apps and Games] Pkt_Lnt:
Try this

https://xdaforums.com/showpost.php?p=73379577&postcount=10868

until this is implemented

https://xdaforums.com/showpost.php?p=73515364&postcount=9767

There is a long discussion about this in the last two or three pages that you should read since you have Oreo.
[Android Apps and Games] :
I can report

it works perfectly on Android Oreo aka 8.0 final

/ Magisk-v13.3 root systemless hosts => clean installed on my Nexus 6P

(I was on Android O DP2, 3 & 4 and it worked too on these builds)
[Android Apps and Games] j1gga84:
Of course I did read it but I was not talking about "third party development" and the SBIN/systemless nonsense but of the "original" development of "mrRobinson" because no life sign from him since a long time.. :confused:

regards
[Android Apps and Games] androcraze:
There is no "third party development"; a developer with full commit access to the source code is part of the development team.

AdAway was "perfect" and "complete" a long time ago; it imports a user's choices of hostfiles, consolidates the imports, and writes the result where it needs to go. Done. Everything works. No bugs. Mr. Robinson's work was finished.

That "systemless nonsense" is necessary to get AdAway to work with the various root implementations required by different devices and ROMs. That "nonsense" is keeping AdAway relevant.
[Android Apps and Games] Moemen Shahawy:
So I am just rooted 15 mins ago, SuperSU... all apps are getting root properly and asking for access which I grant. Except this.... I get the now infamous "Either the su binary could not be found or you did not allow root permission for AdAway"

Did anyone find a solution for this till now? Super su is fine for everything else

Huawei P9 Lite VNS-L31C432B381 (Android 7.0 / EMUI 5.0) Stock - Supersu v2.82 - Busybox
[Android Apps and Games] ktmom:
If you rooted in SBIN mode, take a look at this post from the supersu thread.
[Android Apps and Games] shakan09:
does anybody have a problem where pages wont load all the way with adaway enabled?
[Android Apps and Games] androcraze:
No. Are you talking all websites, or just a few? Can you post an example?
[Android Apps and Games] shakan09:
a few websites, XDA is one specifically. the pages will load super slowly and never finish loading all the way, often making it impossible to browse. as soon as i disable adaway and reboot everything works fine
[Android Apps and Games] osm0sis:
Interesting.. I see that, but only with Battery Saver mode enabled. As soon as I disable Battery Saver and refresh it loads perfectly. I had never related it to AdAway before. I'll see if disabling AdAway somehow allows it to load even with Battery Saver on.
[Android Apps and Games] shakan09:
i generally have battery save on, just turned it off and now pages load just fine. i wonder what it is about battery save and adaway both being on that causes this issue
[Android Apps and Games] androcraze:
http://gadgetguideonline.com/android/lollipop/whats-battery-saver-in-android-lollipop/

"To achieve this, battery saver in Android Lollipop, if enabled, will restrict background data, reduce the performance of the device. For most apps, you will not see the difference because Google use some complicated algorithms to minimize the impact on the user experience. Only for some CPU or GPU intensive apps, you may feel the small (usually acceptable) lagging when resource usage is throttled."

"Update: in Android Marshmallow, in addition to battery saver, a new battery optimization feature was added."

For MM and later, can you try:

Settings -> Battery -> . . . -> Battery Optimization -> Press down-arrow next to "Not optimized" -> All Apps -> AdAway -> Don't Optimize
[Android Apps and Games] osm0sis:
That won't make a difference, since AdAway doesn't actually do anything beyond assemble the hosts file.

There must be something in xda's code that gets a little crazy when something gets blocked and more processing power is required. The trick now will be to see if we can narrow it down to a specific entry for a whitelist.
[Android Apps and Games] androcraze:
Makes sense. The only real difference in either scenario is the size of the hosts file. Perhaps not optimizing the browser will make a difference.
[Android Apps and Games] shakan09:
i dont exactly have that setting on my galaxy s8+. i did make it so adaway wasnt monitored by the battery saver. had no effect though.

how do we do that? and will that only work on xda or all the sites that have this issue?
[Android Apps and Games] osm0sis:
Try to narrow it down to a specific source list to start with, then take it from there. It remains to be seen whether it will fix it for all similarly affected sites, depends if it's the same code or something.

Edit: So far only the adaway.org hosts list still works with xda. Could just be sheer size of hosts requires more precessing power on sites that make a lot of connections due to scripts or something.
[Android Apps and Games] jcmm11:
One other thing you can try. Set the redirection ip address to 0.0.0.0

I don't know if it'll make a difference, but it can't hurt. That processes quicker, rejects immediately, and doesn't actually attempt a connection the way 127.0.0.1 does (which tries to connect before failing).
[Android Apps and Games] osm0sis:
Good thinking, doesn't seem to make a difference though.