yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] ktmom:
If you can, in Adaway preferences check "debug logging". Start a logcat app (MatLog) and grab a logfile while starting Adaway and until the problem is reproduced.
[Android Apps and Games] b4rgh3st:
Unfortunately Adaway just closes after showing the message.
[Android Apps and Games] ktmom:
Just use the logcat app then and capture the period where Adaway is opened then closes.

Are you using supersu, Magisk, or phh's SuperUser? Is Adaway denied? Do other apps get root granted? If so, which?
[Android Apps and Games] b4rgh3st:
I'll try this. I'm using Magisk and it works fine with greenify and titanium. Adaway isn't listed there.

Here's the log I've recorded:

https://pastebin.com/PzaueJin
[Android Apps and Games] :
I do have a custom recovery. I was just looking at it, and it was offering me an option to re root and install Super SU. Can I just switch it whenever I want to?
[Android Apps and Games] ktmom:
What version recovery are you using? That sounds really out of date.

---------- Post added at 07:43 ---------- Previous post was at 07:01 ----------

Do you have systemless hosts checked in Magisk?
[Android Apps and Games] b4rgh3st:
Yes, it is checked.
[Android Apps and Games] ktmom:
It's clear from your log that Adaway isn't getting root permission. Why isn't clear.

I actually clean flashed, rooted with Magisk (I usually use supersu), and tried with all three variants of Adaway in the OP. In each case, Adaway worked perfectly, but if I denied su access (Magisk manager -> three bar menu -> supersu -> turn off switch for Adaway) then I'd get similar results to your log.

I don't think this is an Adaway problem.

Maybe you could remove supersu permission for Adaway then restart Adaway. At least Magisk should respond with a prompt to grant access. If it doesn't, then I don't know what to tell you. Maybe you'll get better help in the Magisk thread. I'm on a Nexus 6 so the difference to an LG may be at issue.
[Android Apps and Games] b4rgh3st:
Thx again for your time. I guess I solved it by removing and re-flashing Magisk.
[Android Apps and Games] niemand_geringeres:
i cannot go to the settings because it complains that it didnt find a su binary ad the only option is to exit​
[Android Apps and Games] androcraze:
What version of root are you using?
[Android Apps and Games] ktmom:
To expand on the previous answer, that setting has nothing to do with Adaway finding root. It's only telling Adaway where to put the new hosts file. For many reasons, people want it handled systemless.

You'll have to sort out why your root app isn't giving Adaway access.

If your using Magisk, make sure you install Magisk manager. Else Adaway can't get root. The manager app is no longer in the play store so search the Magisk forum for it.
[Android Apps and Games] :
[QU SanOTE=ktmom;72681012]What version recovery are you using? That sounds really out of date.

I have teamwin v.2.8.5.0
[Android Apps and Games] ChazzMatt:
Whereas my TWRP is 3.1. So, yes, yours seems out of date. Have you checked for a newer version for your device?
[Android Apps and Games] ktmom:
Looking at your other posts, I take it you have a droid razr. That really is old :)

You might be able to get away with rerooting with that option but I doubt it. You'll probably get a boot loop. Go to the supersu beta thread, search for unsu.zip in an osm0sis post that dates back to cira 2015. I think that was supersu version 2.56 era. Read through all of the problems that twrp created and why twrp no longer offers to root.

I think the advice you were given previously is the easiest solution.
[Android Apps and Games] Pomefrum:
If adaway isn't finding root with magisk, you have to go to magisk manager settings and uncheck the box that says magisk hide. This will allow you to open adaway, give it root and install the host file. Then go back to magisk and recheck the box. Note that you won't be able to open adaway when the box is checked, even if you have given it root access. So just uncheck everytime you want to update your hosts.
[Android Apps and Games] githyanki:
What version of magisk are you using? I don't need to do that with v12.0
[Android Apps and Games] Pomefrum:
Just installed the latest beta (13 something?). Also it wasn't working on v12 either.
[Android Apps and Games] arty93:
Hi guys,

I just from 6.0.1 to 7.12 and am running a custom rom (Resurrection Remix) adaway blocked all my ads on 6.0.1 but on 7.1.2 they are all coming through. I am rooted with Magisk...what can I do to block the ads?

Thanks
[Android Apps and Games] patchick:
Install says Error parsing package. Running a very slow 4.0.4 with limited functions

Does this app block all ads ? Getting some facebook sponsored apps on other device
[Android Apps and Games] ktmom:
The Magisk hide slider is a brute force method. A minimal way is to make sure you don't have Adaway checked in the Magisk hide settings. If it's never been hidden, then Magisk hide shouldn't have an effect.

---------- Post added at 09:50 ---------- Previous post was at 09:44 ----------

Make sure Magisk is properly installed. Ensure the systemless hosts option in settings is enabled. Search this thread for decisions on host sources.

No, all ads can't be blocked. Read the Adaway FAQ on the website linked in the OP.

Maybe used apkmirror to find an older, more relevant version to your device/OS age.
[Android Apps and Games] Pomefrum:
Thanks! Unchecking adaway in magisk hide now let's me open it. Which is interesting because that didn't work for me before. Maybe I hid it when I first installed magisk and that messed things up? Who knows.
[Android Apps and Games] Skulltec:
I just reflashed rom and didn't make a back up of my adaway, I am seeing ads with default sources. I remember i had put one my self which was the best source i ever had. Just can't remember which one it was :(

Got it probably from the forums here about 1-2 months ago. So if anyone has a self added source then please share :)
[Android Apps and Games] piperx:
Or you can use the ... get ready ... search button oh my, took a whole second to find ?
[Android Apps and Games] Skulltec:
Thank you for finding, no i mean seriously, thanks!
[Android Apps and Games] cc-r:
It is no longer working on Android 7.1.2 (LineageOS). Stopped working! Apps show ads even with everything properly activated.
[Android Apps and Games] osm0sis:
Complete nonsense, what do you think half of us are running?
[Android Apps and Games] :
Add more sources and then apply. Default sources do not block in-app ads of most of playstore apps.
[Android Apps and Games] BerniG:
I'm on Magisk v13 and Adaway 3.2 has the systemless mode greyed out in the settings (I've the systemless hosts option enabled in Magisk). Do I need to do something? Gaining root works and I now tryed to manually change the location to /magisk/.core/hosts which seems to actually block ads. But I always get a popup message about the missing symlink to the system partition...
[Android Apps and Games] jcmm11:
As long as systemless hosts is checked in Magisk it should work. Greyed out, with Magisk, is correct.

After applying Adaway what is the size of /system/etc/hosts? (It should match /magisk/.core/hosts. The 2 files should be identical, since they should actually be the same file)
[Android Apps and Games] BerniG:
Yes, they are the same size. So I can safely change the setting to put the file to the default location /system/etc/hosts without having to fear that it ruins my system partition?

For what is this systemless option in the Adaway settings meant then? Shouldn't the checkbox be checked in my case?
[Android Apps and Games] ktmom:
Yes, put the location back to default. The systemless hosts option in Magisk creates a symlink to the /system/etc/hosts location from the Magisk file.

The systemless checkbox is greyed since the option isn't required when using Magisk properly. When using other root methods, Adaway handles the symlinking of the hosts file if that box is checked.

A search of this thread for magisk will give you all the info you could want ☺
[Android Apps and Games] BerniG:
Thanks a lot and sorry for not searching ;)
[Android Apps and Games] cc-r:
It did not work, I added sources and applied, but it did not work.continues showing ads in almost all apps.(Avast, Dumpster, games, ES file explorer etc).

---------- Post added at 01:56 PM ---------- Previous post was at 01:52 PM ----------

I do not think it's complete nonsense if we're talking about the same app. The app is enabled and error-free, the device works fine - but the ads are appearing as if the ad blocking was not enabled. (Adaway 3.2 on Android 7.1.2 LineageOS, not working). Ads are appearing, even with the lock on and the hosts applied.
[Android Apps and Games] Chaplan:
Check if you are not behind a proxy (data carriers apply proxy's to differentiate traffic from different apps) by any chance.

Your hosts won't block adds if you are behind a proxy.

Test on chrome, make a Google search for any brand, usually Google adds links show on top of the search results.

Test with one of the add links.

If it ain't working and you are not behind a proxy search this thread for alternate source hosts.

The stock ones had some https problems over the last days and I don't really know if they are working as intended already.

App is fine. Check your setup.
[Android Apps and Games] osm0sis:
My point was it's ridiculous to generalize and assume an entire ROM is broken with AdAway, when that clearly isn't the case. You needed to provide more (or any) details, because the ROM is pretty much never the problem.

Sometimes there may be a root method issue, or some bad interaction with Magisk specifically, but I think about 90% of what we see in here is quite clearly user error.
[Android Apps and Games] cc-r:
Many thanks, man! Problem solved. Now it's working normal. Thanks.

---------- Post added at 03:32 PM ---------- Previous post was at 03:22 PM ----------

Man, we're talking about Adaway here (app and not ROM) right? I said that the app was not working on ROM as a reference. I do not think you're here to talk about LineageOS when the topic is about Adaway (app), but you got it wrong because I said that the app(Adaway) was not working on ROM(LineageOS), not that the ROM "is completely broken" -- I'm using it and if it was this I would have already removed the ROM. Sorry if you need too many details to talk about the app when I'm not criticizing the ROM. But the problem has already been solved -- it was a network proxy setup.(my fault). Thanks.
[Android Apps and Games] ChazzMatt:
It's NOT working for YOU, but is working for everyone else. So, we need to find out what you are doing wrong/differently.

And you found it out. Good.

That's all that was being said. Your initial attitude was somehow the app was at fault. Or that it wasn't working for anyone on that particular ROM.

Maybe that was not your intent, but that's how it was perceived.
[Android Apps and Games] cc-r:
Yes, the problem has already been resolved. It was a proxy setting for mobile data, it did not help block ads -- it was not the app, but my network setup. I thought the app was not applying hosts or it was not working anymore -- a issue with the app, maybe? -- something like that. I do not understand much about this, but a user has already helped me solve the problem.

But I do not think I reported the problem as "something to ROM"(or confusing), I made it clear that the app was not working, and not the ROM, maybe some developers have a brain too advanced to understand "simple things" by users who just use apps/ROMs etc.(me). Thanks.
[Android Apps and Games] Chaplan:
Describe your problem better next time.

I only helped you because it's a common problem and users come nagging about adaway being the bugged when in fact it's their setup.

Your problem would have been adressed faster if you reported it correctly.

Sharing steps to reproduce, eventually some logs to.

And stop flaming, [MENTION=4544860]osm0sis[/MENTION] is debugging far nastyer stuff, if you really had a problem with the app it would eventually be him the one to set you in the right path.

Check the thread a few pages back and what's going on here.

Be cool.
[Android Apps and Games] cc-r:
:good:thx:good:
[Android Apps and Games] arty93:
Thank you! i have systemless host enabled in Magisk, any host files that you recommend?
[Android Apps and Games] ktmom:
Search this thread.
[Android Apps and Games] peterlee928:
disclaimer: i dont use magisk

stevenblack host works well for me. i use it in place of the 3 default hosts. faster than the 3 default hosts and just as good (if not better) ad blocking.

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

http://sbc.io/hosts/hosts - stevenblack mirror (in case you want to see online and local dates... the host file above shows "n/a" for both dates... for me at least)
[Android Apps and Games] arty93:
Thank you. I will try the those out. So you use just this one in place of the 3 default ones?
[Android Apps and Games] peterlee928:
yes
[Android Apps and Games] Panja:
I have a Samsung T713, installed TWRP and SuperSU. Followed this tutorial: link

Installed AdAway 3.2 and also tried the latest dev build (feb 2017).

After I reboot my T713 the host file is back to its original state.

I have checked the box next to "systemless root" but still the host file will be "reset" after a reboot.

Is there a way to fix this?
[Android Apps and Games] NLBeev:
First thing to try.

Start with AdAway preferences and uncheck everything. Apply the hosts sources and enable AdAway; reboot.
[Android Apps and Games] githyanki:
Which version supersu?

Try without systemless.

Did host file size change before rebooting?
[Android Apps and Games] Panja:
Host file is 62 bytes at boot.

When I run AdAway the size increases to 1,73 MB.

SuperSU is version 2.82.

Systemless cannot be unticked. When I untick the box, close AdAway and reopen it, it is ticked again.
[Android Apps and Games] ktmom:
You are rooted with Chainfire's SuperSu, right? That box should be able to be disabled. Try removing Adaway, then reboot. See if it's checked with a clean install.

If you look in the settings of the SuperSU app, "move to system". If it states "not possible in systemless mode", you are systemless. So then make sure that box is checked.

What version supersu are you using? There's been lots of updates in the last couple of weeks culminating in the 2.82 release. I honestly don't know if that box is responding to a change in supersu. In Magisk, the Adaway systemless option will be greyed and unselectable in response to Magisk's systemless hosts option.
[Android Apps and Games] Panja:
Correct, I'm using SuperSU from ChainFire. It's version 2.82

The option "Install SuperSU inti /system - Not currently available in system-less root mode" is greyed out in SuperSU.

I have completely removed AdAway, rebooted and re-installed.

Systemless is ticked by default after a re-install. When I untick it and reboot the device, the box is ticked again after the reboot.

But AdAway seems to be working now!

I don't know what "fixed" the problem I was having but ad blocking seems to be working now, even after a reboot.

The host file stays at 1,73 MB now with all the entries in place.

Thanks to all that helped!
[Android Apps and Games] ktmom:
Fascinating. I think I'll clean flash and install supersu 2.82 later today to see if this is new behavior.
[Android Apps and Games] piperx:
It's been like this for awhile
[Android Apps and Games] ChazzMatt:
There's several 2.82 versions. Make sure you install the latest? None have SR numbering yet.

Edit: apparently there is also an SR version now. Point is there's like four labelled 2.82 as Chainfire cranked out several beta versions over a short period of time to fix the problems caused with previous release.
[Android Apps and Games] ktmom:
Ok. Two weeks ago I was running 2.79 SuperSU and 3.2 Adaway and you had to manually check the systemless option in Adaway. Is it a result of the dev release of Adaway or 2.82 SuperSu?
[Android Apps and Games] jcmm11:
Which 2.82? I strongly recommend the zip file from Chainfire's site rather than the play store version.

There's also an sr1 version, but I'd stay away from that as well for now.
[Android Apps and Games] Panja:
I used the zip from ChainFire's website.

The problem is fixed though. :)
[Android Apps and Games] piperx:
I haven't ran 2.79 in a long time, same behavior on Android o it's automatic
[Android Apps and Games] Panja:
Everything seems to be working now for me but some ad's are still being served. For instance here on XDA. I have changed to Steven Black host file already. Is there any other good one that I need to use?

Another question:

Is it also possible to block ad's in the YouTube app?
[Android Apps and Games] ChazzMatt:
hit search button up at top of this thread, and type in the words YouTube. ;)

That question is asked every few pages and there are answers.
[Android Apps and Games] NLBeev:
Nexus 6 N6F27E 7.1.1. SuperSU 2.8.2 SR1. AdAway systemless option can be checked or unchecked.

This option is for those who doesn't want to modify the system partition.

Couldn't it be a question of not enough space in the system partition?
[Android Apps and Games] Panja:
You are absolutely right.

I'll use that now. :)
[Android Apps and Games] du57:
hey guys i'm on ODP3 running supersu 2.82sr1 on a pixel xl. systemless checked obviously, but when it tries to apply it says it can't create the simlink and suggests I have an s-off issue. I know htc made the pixels but i've never come across this. has anyone else noticed this issue? never had a problem with this until odp3 and the new supersu,but figured I should ask here first.
[Android Apps and Games] fays91:
Hello possible future compatibility in systemless with Magisk ??
[Android Apps and Games] androcraze:
Please do a search in this thread for "Magisk".

There are soooo many posts about this already. The majority of Magisk users seem to get AdAway working.
[Android Apps and Games] ktmom:
No, your instincts are right, your problem had nothing to do with s-off. That's just a possible explanation used in that error message.

Could you capture a log (Matlog) while trying again?
[Android Apps and Games] du57:
Hope I did this right!
[Android Apps and Games] githyanki:
N/M
[Android Apps and Games] ktmom:
That log is pretty abbreviated. Could you start the log before launching Adaway and don't stop it until after duplicating the problem that gives you the error message for creating symlinks.

You could turn on the option for debug logging in Adaway preferences.
[Android Apps and Games] du57:
Thanks for the advice I'm not an expert at this!

Hope this is better now. Attempted to apply ad blocking twice.

Had to zip this the txt file was too big
[Android Apps and Games] ktmom:
So I experienced similar issues using 2.82 on an N6. Thing is, when I rebooted, the file was applied. Have you rebooted immediately after applying?

BTW, the systemless toggle stays checked when a hosts file is applied in systemless mode. To uncheck it, you have to disable Adaway, returning the file to the stock one. Even when there is an error, if Adaway thinks it's applied, you can not uncheck the systemless option in preferences without disabling Adaway first.

Using SuperSu, the box does not automatically get checked. It must be done manually. That was the behavior I expected.
[Android Apps and Games] JohnCorleone:
When Magisk was created by topjohnwu, I he had a HTC 10 at the time... Now this has become so big that I thread for each device with the modules would be great .oh but AdAway suddenly can't see root since I switched to v13 of Magisk
[Android Apps and Games] osm0sis:
Total non sequitur from that quoted post of mine, but sure.
[Android Apps and Games] LazerL0rd:
It can for me. Lol. Send me a log cat of magisk when adaway is supposed to ask for root.
[Android Apps and Games] cristianpavel:
WiFi vs 4g

Now after reading this thread an updating the hosts and all, AdAway works again. Both browser and apps. But only on WiFi. When I switch off the wifi, and browse on 3g or 4g, AdAway is like non-existent. Why the discrepancy ?
[Android Apps and Games] Pkt_Lnt:
Check this section at the very bottom of post #1.
[Android Apps and Games] cristianpavel:
Thank you. All my problems have been solved now. :)
[Android Apps and Games] ruadus:
Hello there,

I'm using Adaway since a long time and it's perfect, but since few days it seems not working and don't know why. I'm rooted and didn't change anything. Any clue?
[Android Apps and Games] ktmom:
Not much to go on there ☺

It could be a proxy interfering, or the hosts file no longer has entries (the default host source servers were having difficulty some days ago) or ....

What is the size of the /system/etc/hosts file? What app(s) do you have trouble with? What happens if you go to googleadservices.com in a browser?
[Android Apps and Games] ruadus:
Strange my hosts file is empty, only 33 bytes, that's why it's not working. But I applied 2 or 3 times the new hosts using Adaway and rebooted these last days.
[Android Apps and Games] ktmom:
Try adding http://sbc.io/hosts/hosts to preferences > hosts sources. You can uncheck the others as this list is a good starting point. See if it fixes your problem. If it does, there is probably maintenance or a problem with the default servers.
[Android Apps and Games] ruadus:
It works with that host, but with some app it says no internet, such Gmail, or some others.

---------- Post added at 09:39 AM ---------- Previous post was at 09:16 AM ----------

I white listed *.Google.* and everything seems working [emoji2]
[Android Apps and Games] du57:
Thanks for the thought but unfortunately I haven't been able to reproduce this on my pixel xl. My systemless checkbox isn't grayed out before or after reboot. I have to check it manually as you mentioned. I know there's some differences in how the n6 and pixel are rooted so perhaps that's more the issue at this point. I'm curious if anyone with a pixel(xl) on odp3 has had any success w adaway.
[Android Apps and Games] ruadus:
Since I applied this host http://sbc.io/hosts/hosts the avatar pictures of Tapatalk are not showing. Do you know what I can whitelist to get them back?

Thanks
[Android Apps and Games] peterlee928:
searching " tapatalk pictures" in this thread and reading one of those posts may address your issue ?
[Android Apps and Games] ktmom:
I may not have been clear. The systemless checkbox will never be greyed using SuperSu, only when using Magisk and systemless hosts is enabled there.

What you described originally as a problem, I also experienced when I clean flashed and switched to the newest SuperSu (2.82).

If I left the path in Adaway preferences the default /system/etc/hosts and just went with it, then rebooted, the hosts file was applied correctly.
[Android Apps and Games] krkhaha:
I cant swich on. Option for systemless. Please help.
[Android Apps and Games] ktmom:
You're running Magisk. Search the thread for Magisk.
[Android Apps and Games] Adriano-A3:
The same with me and I find nothing to solve this.
[Android Apps and Games] ktmom:
Here's the search
[Android Apps and Games] mondohow:
Are you using Magisk? Read here: https://xdaforums.com/showpost.php?p=72364090&postcount=9154

The way it's currently working with Systemless Host selected in Magisk =

Read it. Understand it. Embrace it. That's how it works with this version. Once you select Systemless host in Magisk there is usually nothing else you need to do.

The good news is that the code to fix this ui glitch and make this less confusing has already been fixed by PerfectSlayer. Most likely it will be included in the next update. Read more here: https://xdaforums.com/showpost.php?p=72426355&postcount=9185
[Android Apps and Games] du57:
ok thanks that seems to have worked!! I was under the impression that the target couldn't be /system/etc/hosts in systemless mode. Glad it was that easy of a fix! Thanks for the info and help!
[Android Apps and Games] Evo_Shift:
Thanks. Same issue. Reboot made everything work.