yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] DiamondJohn:
You will need to add it as a "prebuilt". There are many example of how this is done on github for previous versions of adaway

1 example I found eg (ignore the 1.patch file as also mentioned in the comments)

https://github.com/crdroidandroid/a...mmit/0fb2b8d97b7b83beb9fcc43393d0a7378af3c8d4

You can also get more help on the thread https://xdaforums.com/chef-central/android/guide-android-rom-development-t2814763
[Android Apps and Games] XAL2:
Hi everyone. I have an OP6 that's running the latest OB13. For some reason I can't update the hosts for anymore for adblocking in Adaway. It always gives me an error. Idk what I'm doing wrong.
[Android Apps and Games] jcmm11:
Need logs to find out what's wrong.
[Android Apps and Games] guest4711:
If you are using Magisk make sure you enable the systemless hosts magisk module.
[Android Apps and Games] XAL2:
Gonna be completely honest with you...... I have no idea how to take a log. That sounds gross lol but yeah. Thank you for the reply however what [MENTION=3279891]Guest4[/MENTION]771 suggested worked perfectly.

This worked perfectly thank you. Had no idea about that.
[Android Apps and Games] martyfender:
I would think that anyone using Magisk knows it is systemless, so I would think most users would want to use the systemless hosts.

I'm not sure why [MENTION=4470081]topjohnwu[/MENTION] doesn't enable the systemless hosts module by default, but maybe he has a good reason not to do so. Does anyone know if that is the case?

Thanks
[Android Apps and Games] githyanki:
Think he is wanting to keep magisk lean and not everyone needs the systemless module.
[Android Apps and Games] curiousrom:
Why? AdAway works fine without it on a S5 LineageOS 16.0 w/ Magisk v18.1.
[Android Apps and Games] guest4711:
If it is not working systemless it needs busybox in path AFAIK. And it will modify /system.
[Android Apps and Games] Kevin108:
I just installed Lineage OS 16 on my Pixel XL. I was getting an error that there was insufficient space to modify the hosts file. Writing a file elsewhere and creating a symlink was an option, but did not work.

I did some reading and found it to be more of an issue of write permissions. Remounting /system with RW permissions, then updating the hosts file with Adaway seemed to be the work-around.

I still have Root Explorer from my Droid X days and knew that mounting RW with it could be done with a single click, so that's the method I used. With that done, Adaway properly updated the hosts file and is now working as anticipated.

Hopefully this issue is resolved with a future update.
[Android Apps and Games] paaaulo:
Can you recommend a good anti tracking hosts file? I use StevenBlack.
[Android Apps and Games] andy356:
Energized Protection Ultimate list. It contains Steven Black and many, many others. It's the only host source I use.

https://raw.githubusercontent.com/EnergizedProtection/block/master/ultimate/formats/hosts

Warning, it's a super massive black hole of IP addresses. 22 MB in size. AdAway might seem like it's hung when applying it, but it's not. Just wait for 10-15 minutes and it'll happen. Play a game or something meanwhile.
[Android Apps and Games] amadeusz.odi01:
To big for adhellb3 :) :((

Wysłane z mojego SM-G975F przy użyciu Tapatalka
[Android Apps and Games] badmojr:
https://1hos.cf/ OR: https://1hos.cf/mini
[Android Apps and Games] wodgey:
I can't find the answer to this question searching, so am obviously missing a blatantly obvious search term.

I'm hoping to uninstall magisk after installing adaway, so I can re-lock my bootloader. Is this possible? Will adaway still function without the su binary or magisk framework installed?
[Android Apps and Games] daywalk3r666:
no adaway needs root....use blokada for non root adblocking
[Android Apps and Games] thezinq:
Why this app isn't getting updated in XDA Labs?
[Android Apps and Games] Portgas D. Ace:
This has been discussed before, please search this thread for keywords like "labs" or "project ownership".
[Android Apps and Games] thezinq:
Ok I'll look for it [emoji106]
[Android Apps and Games] powergo:
Why I can't add this in ver4.2.3 ?
[Android Apps and Games] maplestrat:
Just added list to my device , Adaway 4.2.3 no problem, only took a little longer than adding other lists
[Android Apps and Games] Enthused9801:
Try adding the list to host sources. ;)
[Android Apps and Games] powergo:
If i add the url add bottom disabled

see the photo

https://xdaforums.com/attachment.php?attachmentid=4724911&d=1552749630

other url easy i cant add only this url can't
[Android Apps and Games] jcmm11:
According to that image you're trying to add it to blacklist under "Your lists". You want to add it to "Host sources"
[Android Apps and Games] guest4711:
Sorry, cant see the full url on your screnshot. But probably the string does not begin with the proper protocol ("https://")
[Android Apps and Games] jcmm11:
That was going to be my first guess until I looked at the image a bit closer ??
[Android Apps and Games] powergo:
With https or without same add button ? disabled
[Android Apps and Games] githyanki:
Did you try what jcmm11 said? Your asking the host source in the wrong place.
[Android Apps and Games] premier69:
Can't get it to work.

Hello. I have a rooted Mi max 3 with rooted OEM Android MIUI 10.2, Android 8.1. I can't apply to hosts. I have tried the 3 alternatives the app has in the settings but none will work.

I can't select the "enable systemless mode", i figure my theory to be that i am for whatever reason not allowed to modify the host partition?

through the settings i can't open the hosts file when i click on it.

is this S-On or S-OFF the issue? Because i sure hope not, I have no idea how to use the adb thing from Linux Mint.

And I thank you for reading this post and hope this can be solved for a less cluttered ads experience
[Android Apps and Games] martyfender:
If you are using a newer version of Magisk which now has a systemless hosts module, it is not enabled by default. go to Magisk Manager settings, click on enable systemless host and you should see toast that the systemless host module has been added. Just like any Magisk module, you must now reboot for it to be enabled and you problem should go away. That is the only time that I have seen that message in Adaway.

You must also see and grant the root prompt in Adaway for this to work. I you don't get a root prompt in Adaway, something else is wrong like a faulty Magisk install, for example. After root is granted, you should see a toast saying root is granted each time you open Adaway, and often only when you try to update the hosts or the app checks for updates to the hosts.
[Android Apps and Games] guest4711:
You are right. Did not recognize the context. ;)
[Android Apps and Games] powergo:
Ops yes you alright and i'm high wrong, thanks to all replys
[Android Apps and Games] andy356:
Well now. This was fun; to read the quoted reply and see the problem getting solved without me. Such serendipity. :)
[Android Apps and Games] boscos:
I installed adaway 4.2.3 on my OP 5T running open beta 26. The latest version does not block ads. I tried unchecking install systemlessly, but once I exit and enter the app, the option is automatically checked. The last version 3 works fine.
[Android Apps and Games] Doomkopf:
That's what I was complaining about also. I then just used it systemlessly since I found no solution
[Android Apps and Games] AndroPhobia:
Is this app the reason that i cant open any adfly pages?

(There are more questions like this so ignore it)
[Android Apps and Games] marciozomb13:
Why don't you disable the app and test it?
[Android Apps and Games] -TheKoolAnie-:
Same here, latest version is also not working for me so I'm not using 4.2.2

Ps : Poco F1 with Havoc OS Pie
[Android Apps and Games] martyfender:
Are you using https host sources? It is my understanding that you must with v4+.

Also, if you are using newer versions of Magisk, do you have the systemless hosts module installed? Where are you seeing ads, in Chrome or other browser?
[Android Apps and Games] boscos:
I did not make any changes apart from 'systemless' and 'automatically check for updates'. Magisk 18.1 without the systemless host module. I seen ads in XDA on chrome.
[Android Apps and Games] madbat99:
You must tick systemless host in magisk manager, which installs the systemless host module. Also, turn off data saver in chrome.
[Android Apps and Games] martyfender:
And I will add this: just like any module you install in Magisk, you must reboot for it to be enabled. You just click on it in settings and you should see a toast: added systemless hosts module, then reboot.
[Android Apps and Games] Sh0X31:
Any host list aviable?
[Android Apps and Games] Portgas D. Ace:
Sure, just search this thread for "hosts" or "list" and you'll find numerous.
[Android Apps and Games] boscos:
What if I don't want to make use of the systemless option? Like in v3..
[Android Apps and Games] babywin:
Are the daily auto updates working?
[Android Apps and Games] Portgas D. Ace:
Yes.
[Android Apps and Games] gaja22:
Someone can tell me how to set ultimate list from Energized, please?
[Android Apps and Games] dirtyreturn:
Hey, here you go.

https://raw.githubusercontent.com/EnergizedProtection/block/master/ultimate/formats/domains.txt

https://raw.githubusercontent.com/AdroitAdorKhan/Energized/master/core/delta-patchset/blacklist
[Android Apps and Games] gaja22:
Thank you but host don't update.
[Android Apps and Games] ridobe:
I just did this a half hour ago and it worked fine. What did you do?
[Android Apps and Games] gaja22:
I add the (first) link as host.
[Android Apps and Games] guest4711:
No, you did not add the link, you did add the shortened text XDA labs displays. The link is https://raw.githubusercontent.com/EnergizedProtection/block/master/ultimate/formats/domains.txt
[Android Apps and Games] gaja22:
And now ?
[Android Apps and Games] badmojr:
https://github.com/EnergizedProtection/block/blob/master/README.md
[Android Apps and Games] gaja22:
I took the mirror link, same issue.

https://energized.pro/ultimate
[Android Apps and Games] guest4711:
Now you should refresh the hostsfile.. (Download files...) That's not done automatically after adding a hostlist.
[Android Apps and Games] gaja22:
This screenshot was done after refresh.
[Android Apps and Games] babywin:
My daily updates seems not working anymore with 4.2.3

Am I the only one with this issue?

N910G Android 6.0.1 stock rooted
[Android Apps and Games] TotallyAnxious:
https://github.com/r-a-y/mobile-hosts

Enjoy.

Adguard lists converted to work with adaway.
[Android Apps and Games] andy356:
https://xdaforums.com/showthread.php?t=2190753&p=79105970
[Android Apps and Games] Bakica:
No daily updates since 4.2.x in my case [emoji22]

Meizu m2 note, lineage os 14.1, Magisk 18.1
[Android Apps and Games] babywin:
I think this is certainly a bug, but seems like we are the only ones with the issue.

I hope to see more people reporting NO daily updates on 4.2.x
[Android Apps and Games] Zilla0617:
I have the same issue
[Android Apps and Games] babywin:
I really hope a developer's answer to this issue.

Please continue reporting NO daily updates bug on 4.2.x

Thanks a lot
[Android Apps and Games] Pkt_Lnt:
Until someone posts a logcat these reports do not help show why no updates. Saying "me too" is not a proven troubleshooting method. :D :cyclops:
[Android Apps and Games] babywin:
Can I submit a logcat of something that isn't happen? If I can, please explain it to me and I will do it right now
[Android Apps and Games] Pkt_Lnt:
Disable daily update setting, start logcat, enable daily update setting.

That should trigger an update, if it does not, the logcat should show why.
[Android Apps and Games] babywin:
Something like this...???

I'm ussing CatLog
[Android Apps and Games] guest4711:
Yes. As far as I see your installation is current, there are no updates (to be downloaded and applied). So what's the problem?
[Android Apps and Games] babywin:
The auto daily updates isn't triggered anymore. It seems that works one time and then a bug prevent the subsequents daily updates.

With 3.x I have a notification of successful hosts updates every day. That isn't happen in 4.2.x not even once.
[Android Apps and Games] mobbdeep:
I have to manually check for updates in the app myself and just about every day, there's available updates. There is no "auto updating" anymore. This is what everyone who is having this issue is trying explain. We shouldn't have to go into the app and manually check for updates of host files and whatnot and that's what myself and others are having to do.
[Android Apps and Games] githyanki:
Perhaps a message in app about when the next auto update will run would help. At the very least you could have logcat running while it was supposed to happen to see what the error is.
[Android Apps and Games] thezinq:
Can anyone help me!
[Android Apps and Games] martyfender:
IF you are using Magisk, have you enabled the systemless hosts module in magisk and rebooted? To enable it, go to Magisk Manager settings, click on systemless hosts, you should see a toast that the systemless host module has been installed. You then must reboot for the module to be enabled.

In older versions of Magisk, it didn't have this module, there was a toggle switch to enable this feature.

When updating from the older version of Magisk, this module is not installed by default.
[Android Apps and Games] imshell8:
good

is very good！
[Android Apps and Games] thezinq:
Yeah I have already enabled seamless hosts
[Android Apps and Games] jcmm11:
The easiest way to fix this is to upgrade to a Canary version of Magisk (magisk.img is no longer being used).

The other option is to resize magisk.img and make it larger so the hosts file will fit. See the imgtool section https://topjohnwu.github.io/Magisk/tools.html
[Android Apps and Games] fusk:
Anyone else have issues with 4.2.3 not asking for root with magisk 18.2?
[Android Apps and Games] mko000:
I did, but with Magisk 18.1. Somehow the confirmation dialog was in the background or something.

Anyway, I went into Magisk Manager and switched AdAway on for superuser privileges.
[Android Apps and Games] thezinq:
No I haven't faced any issue with this combination...
[Android Apps and Games] babywin:
it seems that everyone is omitting the problem of daily updates
[Android Apps and Games] PerfectSlayer:
Okay, that's what I supposed and one of the reason I wanted to add telemetry.

Few notes about it:

I used Android X work manager library in alpha / beta versions. It is in charge to schedule the trigger the update worker. A known bug (now fixed) might request you disable and re-enable automatic update in order to properly schedule the update worker.

Telemetry shows that update worker starts only for 1% of users but I don't know if they have enabled auto-update or not (I just add a log when auto-update starts to check the mechanism as I have some doubts). It seems really low… More over, a lot of install errors appear during auto-update. Some are "no connection" but I don't have more details for the others. If I don't have more logcats, I might need to temporary add more details in telemetry to debug this issue.
[Android Apps and Games] martyfender:
deleted

---------- Post added at 06:24 PM ---------- Previous post was at 06:22 PM ----------

I had to click on the disable ad blocking button to get the root prompt, then click on the enable ad blocking button.
[Android Apps and Games] fusk:
I tried that, also always grant root, no bueno.
[Android Apps and Games] martyfender:
Have you tried uninstalling Adaway and reinstalling it?
[Android Apps and Games] JGradyO:
I wanted to contribute telemetry, so I uninstalled XDA/AFH 4.2.3 then put on the fdroid variant (no reboot between uninstall & reinstall).

Even though I have "beta" selected in Magisk Manager, I'm on 18.1 and it calls me up-to-date.

So, with Magisk 18.1 and AdAway 4.2.3, I got prompted for root access properly. I know it's not what you asked, but it is a data point...

Nitrogen Pie, Nexus 6
[Android Apps and Games] babywin:
As nobody seems to fix the daily auto updates... I've just back to use 3.3 again.

Thanks for the ones who cares.

4.2.x is currently a NO NO for me
[Android Apps and Games] Oswald Boelcke:
Don't you think you're slightly impatient? You first reported your issue on 2019-03-19 i.e. 3 days ago. Latest from @PerfectSlayer's post that you've replied to, you see that he's the issue on his radar screen but also clearly expressed his requirements to be able to analyse the issue.

Developers on XDA spend their leisure time and work for free in order to provide great things for the benefit of the XDA community. I firmly believe then it's just fair to allow a fair amount of time to fix an issue (even if it lasts weeks). I'm reading between your lines and I recognised the capital letters. Why didn't you just quietly reverted to v3.3?
[Android Apps and Games] babywin:
You are right.

My mistake.

Sorry.
[Android Apps and Games] cujo6801:
For anybody who read my post on here earlier today it was a joke just a joke... sorry if anybody took it seriously...

---------- Post added at 11:42 PM ---------- Previous post was at 11:35 PM ----------

Sorry for going on about this but I just find it so hard to believe that somebody took it seriously

where I got a warning for posting.... something

where someone thought I was looking for trouble...

I mean no where did the person reference my name or the terminology of somebody being fat how could you not know I was a joking...

Again sorry for the OT
[Android Apps and Games] teamevil:
I have a problem. I went to install adaway and I get a message that says not enough space on system partation. That never happened before. I used to just install and enable adblock, reboot and that's it. The message it told me to use a different target host file and I did that and tried again but it wouldn't go thru. Can anybody help me on this matter?
[Android Apps and Games] Wolfcity:
It seems it's time to make a sticky for this.;) [MENTION=8126387]martyfender[/MENTION] posted this answer a few pages back, a search in this thread would make you find more results:

As you've tried to change the hosts path you may have to uninstall/reinstall AdAway before doing the above mentioned steps.
[Android Apps and Games] IronTechmonkey:
For what this is worth regarding the "not enough space issue". All previous reports I've been able to find mention magisk systemless but I'm seeing the same thing in LOS 16 (Android 9) with LOS SU. I don't recall if LOS SU is systemless but I have never seen this issue in previous LOS ROMs with LOS SU. I'm wondering if this has to do with Motorola has slot A/B Madness which is the biggest difference between this device and previous ones.

[EDIT] This issue affects more apps that Adaway, so not an adaway issue except for new complications creating host file for a certain cohort of device users.

Also, one of the alternate locations /data/data is writable but symlink creation fails (as if HTC S-On although this is Moto X4) so I'll have to try creating the symlink in TWRP as instructed.
[Android Apps and Games] osm0sis:
Is it just me or does Chrome's Data Saver appear to respect a modified hosts file now?
[Android Apps and Games] TotallyAnxious:
It's either that or just more sites have https. Though I read somewhere https now works through data saver. Anyways it does seem like that.
[Android Apps and Games] jcmm11:
A quick test seems to show it's not just you (used apkmirror to test) I wonder if it's Android version dependent (I'm on Pie, March update)
[Android Apps and Games] TotallyAnxious:
Oreo, January/February update (Verizon ****ed the marketing and sort of fused them)
[Android Apps and Games] seniorstew:
I getting this message. I've tried un installing and re installing.. Any ideas? Oneplus 6t stock rom.
[Android Apps and Games] martyfender:
Yes, I agree that it should be stickied in the OP. I have posted these steps many times throughout this thread and in other threads. As with others, I do get tired of posting the same thing, over and over, again.

---------- Post added at 11:08 PM ---------- Previous post was at 11:04 PM ----------

Seriously? Just a few posts back is your answer.
[Android Apps and Games] seniorstew:
Tried that.. Same issue. I also tried changing the host path as will.. It says system link created but its not not installed after I reboot
[Android Apps and Games] psychoela:
Same here, already tried but still not work.
[Android Apps and Games] PerfectSlayer:
Hi all,

Good to know. If it is confirmed, it will remove a lot of new user complains ^^'

If you have a short sentence to add to the "Problem? Read this:" section of the OP, send it to me and I will add it =)

About the auto-update problem, I might have found the issue. I made a new build (4.2.4) which I'm currently testing.

It might take few days in order to properly test it (I need to wait a whole day to trigger update and my hosts sources must also be updated…).

This will include few other bug fixes and updates (have a look the changelog if you are curious).

If you build and try this version, keep in mind you have to disable and re-enable automatic update.

I also start a 4.2.5 version to improve GitHub hosts source hosting support.

Hosts file could now be hosted as Gist and modified date will now work (it does some requests to GitHub public API).

It was requested a long time ago and I should be available soon :fingers-crossed:
[Android Apps and Games] freefdhk:
thank you, my mobile need that to disable some ads.
[Android Apps and Games] IronTechmonkey:
Bumping to add information and keep the details together.

- Even the attempts to create a symlink in recovery fail due to issues reading busy box configuration file.

- In LOS 16 w/LOS SU no app tested so far has been able to successfully write to /system/etc. Total commander seems to stumble on the R/W remount.

At present the only possible way to get a host file on the device seems to be to push it via ADB but even the potential success of that is questionable. Any other ideas would be appreciated.

[EDIT] From within TWRP the system/etc folder is nested inside another folder named system so the hosts file is /system/system/etc/hosts.

Attemtps to Symlink to that location also fail but using TWRP's file manager to copying the desired hosts file to /system/system/etc/ got it working. Understandably, Adaway cannot manage it until the ROM is tweaked but Adaway confirms it is there and up to date.
[Android Apps and Games] martyfender:
Does this problem occur only In LOS 16 w/LOS SU, or does it also occur on the stock rom for the device? Is the file system F2FS?

Thanks
[Android Apps and Games] IronTechmonkey:
Never rooted stock or ran previous versions of Android or LOS so there's no comparison to be made there. Within LOS it seems that system has no mount point (viewed in app Aida64) as it does in LOS 14 and 15 on other devices where it is formatted ext4

This is most likely related to Motorola's handling of slot A&B for seamless stock updates, compounded by TWRP and LOS improvising to work properly within that context, with a touch of encryption possibly adding a degree of difficulty.

Also, having seen deeper into the problem and found that the last-resort method of putting a host file in place did work I don't want to clog the Adaway thread further with this. I may create a thread for it though.
[Android Apps and Games] mobbdeep:
After doing a fresh re-install of Adaway after having issues with auto updating and this time I enables logging and whatnot within the app and I still have to manually update the host files myself. I'm sure my logs are being sent to OP so there you go. :)
[Android Apps and Games] thezinq:
Can you please tell me in depth that how can I increase the img size?
[Android Apps and Games] madbat99:
Seeing alot auto update complaints. Can't say I've ever let anything auto update anything else on my device, ever. To each his own, I guess.
[Android Apps and Games] k2828:
some website are not visitable with adblocking on. is there a way too circumwent this like on PC?
[Android Apps and Games] jcmm11:
magisk imgtool resize /data/adb/magisk.img <new size in MB>
[Android Apps and Games] thezinq:
How to increase the size?