yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] meiser:
The output is:

Usage: su [options] [--] [-] [LOGIN] [--] [args...]

Options:
--daemon start the su daemon agent
-c, --command COMMAND pass COMMAND to the invoked shell
-h, --help display this help message and exit
-, -l, --login pretend the shell to be a login shell
-m, -p,
--preserve-environment do not change environment variables
-s, --shell SHELL use SHELL instead of the default /system/bin/sh
-v, --version display version number and exit
-V display version code and exit,
this is used almost exclusively by Superuser.apk

The workaround could be to use /data/data/hosts and symlink /system/etc/hosts, but I'd prefer native system-as-root support. And I prefer to use the LOS su addon instead of Magisk as it's well integrated.

BTW, I just found upstream bug report: https://github.com/AdAway/AdAway/issues/1245

Regards,

meiser
[Android Apps and Games] jcmm11:
Workaround I was going to propose is close to what you stated, but not quite.

It's actually based on what we used to use for SuperSU and also on the way Magisk does it.

Instead of a symlink run a boot script that issues a bind mount. With SuperSU (and Magisk) the command would be

su -mm -c mount --bind /data/data/hosts /system/etc/hosts

Your version of su doesn't have -mm (or -M or --mount-master). Those options force the command (or shell) to run in the global namespace. If you're not in the global namespace then nothing other than the process that issues the command can see changes like a bind mount. To all other processes it would be as though no command had been issued.

So I don't know if your su runs in the global namespace by default or not.

Magisk actually integrates quite well also. As things stand you may well be stuck with a symlink. Which isn't systemless, but since you're running Lineage that really doesn't matter.
[Android Apps and Games] jasiorr:
Ok and how about this ?
[Android Apps and Games] ktmom:
That actually doesn't have anything to do with Adaway. If your mobile data goes through a proxy, then it bypasses the hosts file on your device and there's nothing Adaway can do about that. You can try going to your APN settings and removing the proxy there. If the proxy is set on SIM card, AFAIK, there's nothing to be done.

If the fundamental problem is that ads are displayed on mobile data but not on WiFi after enabling Adaway, and you're visiting the same sites on both mobile and Wi-Fi, then there is a proxy server somewhere.
[Android Apps and Games] DiamondJohn:
I had an issue with ads not being blkocked by my hoists file when on mobile data. The following may help:

https://xdaforums.com/showthread.php?p=79772639&highlight=dns#post79772639

https://xdaforums.com/showthread.php?p=79754171&highlight=dns#post79754171
[Android Apps and Games] painofkidvn:
When I enabled AdAway, facebook is unloadable, views in facebook dont show anymore. How can I add facebook as white list?
[Android Apps and Games] ktmom:
Use Adaway's log DNS requests feature. To white list, you need to disable ad blocking first, reboot, then log the requests generated by Facebook.
[Android Apps and Games] painofkidvn:
Thanks man
[Android Apps and Games] hackwerk:
NPO Start, the biggest TV app in The Netherlands, is not working anymore with the current AdAway lists.

The DNS Monitoring does not seem to work (I see no requests at all) so I can not find out what block is breaking it or what to Whitelist.

Can someone help please and put it in the Whitelist for everyone, or even send a shout out to the open blocklist provider?

Edit 1: Aha, I needed to Disable block, reboot and then Enable DNS Monitor. It seemed to be about adconfigDOTsterDOTnl and atconnectDOTnpoDOTnl. After Whitelisting, the app works again (with ads) BUT Casting to my TV is not!? Any ideas?
[Android Apps and Games] ktmom:
When you ran DNS logging, had you disabled ad blocking in Adaway then rebooted first? This is described in the link to DNS logging in the post just prior to yours.

If nothing shows up in the DNS log after doing the above, then SELinux may be the culprit. In a terminal app, you can check the status and maybe toggle it to see if you can use the DNS logging feature.

These commands must be run as root. YMMV I don't guarantee that every device will respond/respond properly. You could always check about SELinux in your device forum.

getenforce - returns the current state of SELinux

setenforce 0 - disables enforcement

setenforce 1 - enables enforcement

:/ $ su:/ # getenforce
Enforcing

:/ # setenforce 0

:/ # getenforce
Permissive

:/ # setenforce 1

:/ # getenforce
Enforcing
[Android Apps and Games] Johnn78:
In the previous version (upto 3.3.61) had two features which are not available from the v4 until the latest (v4.2.9).

The first is that now is NOT possible to add host which begins with "http" while if I return to previous version (v3.3.61) then the Adaway can be synchronised with 4 http urls which I have.

The second is that in previous version, when the update of host was finished then it appears warning that 14/14 hosts has been updated & if I see that not all hosts has been updated (for example 12/14) then I make again update until to get 14/14. Now in this version, it doesn't tell you from how many hosts has the final host been made & if it isn't from all hosts (for example 12/14) then I won't understand it so that to update it again to get all hosts.

Any solution about these or it is better to return in v3.3.61 ? Thanks in advance !
[Android Apps and Games] Ch3vr0n:
The first is simply not possible because of Android code changes. The second is intentional, not all hosts file sources are constantly updated, the source isn't updated in a month then even if you update daily, it won't change anything
[Android Apps and Games] ktmom:
That problem is a function of android changes requiring the use of HTTPS. I think that started in Oreo, but maybe it wasn't enforced until Pie.

Doing a search, I found this conversion.

There is this, which the last poster was referring to. But I don't think that's what you mean.

You could post an issue on Adaway's github. But click on the issues tab first and make sure the concern isn't already listed. Based on the wording of the related issue, it rather looks to me like it might have been you already complaining on github [emoji6]
[Android Apps and Games] andy356:
See if another source can provide those hosts files to you. Steven Black hosts contains the http only MVPS, so I was able to replace it. Check if that's the case with your sources.
[Android Apps and Games] Johnn78:
But if I install the previous version of Adaway then I have the both features. The second is to warn you if some host hasn't been updated. I don't mean to exist update but to get the atleat the basic source which is the current . Somwtimes in some hostd doesn't get anything like to be invalid urls then in these times you aren't be warned in the latest version of Adaway.

---------- Post added at 09:39 PM ---------- Previous post was at 09:36 PM ----------

I treid from here via shortening url (https://www.shorturl.at/) to convert the http url to https so to be acceptable but not any result although I have enabled from the rpreferences the redirecting host file.
[Android Apps and Games] valeriee:
Do you guys enable the automatic updating option? Does it drain much battery? Thanks
[Android Apps and Games] andy356:
The main operations are downloading hosts files and creating a single hosts file on your phone after much text processing. It takes a fraction of the energy you would spend watching a YouTube video.

[MENTION=2822685]PerfectSlayer[/MENTION] This does raise a question. Would it be possible to add the ability to change the update interval to more than one day? Daily might not suit everyone. There is already an issue on GitHub for this. https://github.com/AdAway/AdAway/issues/284

---------- Post added at 07:37 AM ---------- Previous post was at 07:33 AM ----------

That won't work. The hosts file ultimately resides on an http website. I don't even know if AdAway can process URI redirects like that.

I'm VERY sure that redirection setting does not mean what you think it means. Please disable it. It's labeled as a security risk.

What are these 4 URIs? Maybe people here know the HTTPS alternatives to them.
[Android Apps and Games] PerfectSlayer:
Yes, I thought about it. But since I enable the http cache and a settings to prevent using metered connection for automatic update, I don't see the point. Most of the time, there will be no network access so no update.

Moreover, the update will happens any time within the day when the device is in use (no pressure to wake up the device for update).

Keep in mind the "check of updates" does not mean download all files, process them and install host file. It will start looking a the cache, may check for an online update and may apply it if needed. If fact, it's the word "daily" which is misleading. It may worth to replace "check for updates daily" by "keep hosts up-to-date".

Yes, that is what I fear. Nobody will agree on what is the right time to update and I will end with a list of 10 delay choices where I try to simplify the app settings (check the screens for an example).
[Android Apps and Games] andy356:
What about a setting that just takes the number of days before next update check as user input? The default value could still be one day.

In my case, 4 of my hosts sources are updated every few minutes (probably automated), so I inevitably get updates once a day. The text processing takes a long time too. I have a 32 MB hosts file... It takes 10 to 15 minutes to apply. :silly:
[Android Apps and Games] ktmom:
I'm not attacking or judging you, just a question. Do you know that you really need a host file with that many entries?

I wonder because that size file will slow everything on you device that uses the internet. I've never needed more than the Stephen Black hosts source.

Your file is nearly 27 times larger than mine.
[Android Apps and Games] andy356:
I have no clue. I don't know either way. (╥_╥)

I would love a magic DNS resolver or an ISP that blocks all ads for me.

Regarding slowing down internet, I'm pretty sure it doesn't. The hosts file is read into the Java cache, and then just resolves domains to the loopback or the black hole address.
[Android Apps and Games] :
AdGuard DNS? On Android 9 and up you don't even need a third party app to use a certain DNS provider.
[Android Apps and Games] andy356:
I was kidding. Real life DNS providers have to be very conservative about what they block, to be able to cater to all users. The way the internet is designed, you can never let go of a hosts file.
[Android Apps and Games] jcmm11:
I also use only Stephen Black's list. Try it. If you're not happy with the results you can always go back to what you have.
[Android Apps and Games] andy356:
Don't worry, I know it's overkill. The giant hosts file is my last line of defense, such as when I can't firewall an app with ads and trackers that needs internet connection for core functionality, so I don't mind it being bloated.

Steven Black's list is the only one I use in uBlock Origin, where size does affect the browser's speed.
[Android Apps and Games] Claudio4780:
Only only Stephen Black's list or inclusive of the original Adaway lists ??
[Android Apps and Games] ktmom:
Only Stephen Black's in my case
[Android Apps and Games] Johnn78:
I found another one http file & the current are :

http://www.malwaredomainlist.com/hostslist/hosts.txt

http://www.hostsfile.org/Downloads/hosts.txt

http://winhelp2002.mvps.org/hosts.txt

http://sysctl.org/cameleon/hosts

http://sbc.io/hosts/alternates/gambling/hosts

---------- Post added at 02:30 AM ---------- Previous post was at 02:27 AM ----------

Can you refer your 4 host files which creates 32 Mb file ?
[Android Apps and Games] andy356:
Bruh.

1. Just put an s in front of it. This URL has been HTTPS for a long time now.

2. Same. Same.

4. Is still http and I don't know of any aggregator that includes it.

5. You needed the http URL before AdAway 4. Now it can parse GitHub links properly. https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/gambling/hosts

Bonus: 5 contains 1 and 3 so you can get rid of them. No point downloading them separately since duplicates are ignored.

You're left with 4. My advice is to remove it. Use other sources from https://firebog.net/ instead. That's where I got a bunch of my sources (I have far more than 4, by the way).

---------- Post added at 07:00 AM ---------- Previous post was at 06:38 AM ----------

[MENTION=2822685]PerfectSlayer[/MENTION] In the host sources section, you can single tap on check boxes and long press on the entries. Since the single tap action is free for the entries, might I suggest expanding on single tap to show the entire URL for that entry? Another tap could shorten it again.
[Android Apps and Games] Johnn78:
About NOT slow your internet if you have big host file (mine is ~20 Mb), you should find your host file (usual etc/hosts) & from properties/permissions you should uncheck the "Other" from "Read". Now restart the browser (if you have opened). Usual in every restarting of your device, this setting is lost & you should redo it from the beginning so that to NOT have slow internet.
[Android Apps and Games] jcmm11:
Only Stephen Black's in my case as well
[Android Apps and Games] toti8430:
Hi, I have a problem with the latest version of adaway 4.2.9 installed on a google pixel 3 with android 10. I am using the latest version of magisk 19.4. At this point I wonder if adaway works on android 10?
[Android Apps and Games] Lagarde:
I'm on a Pixel 3 with android 10 and it's working great. Not sure what the difference between our setups is, but I know it CAN work on Android 10.
[Android Apps and Games] jcmm11:
Make sure you've applied systemless hosts in Magisk settings and rebooted afterwards. If that's correctly applied you should see an entry for 'Systemless Hosts' in the module section of Magisk.
[Android Apps and Games] toti8430:
Thanks. Now works ;)

---------- Post added at 12:26 AM ---------- Previous post was at 12:24 AM ----------

Thanks. Now works :)
[Android Apps and Games] osm0sis:
I'm thinking maybe [MENTION=2822685]PerfectSlayer[/MENTION] could look into having AdAway check to make sure the systemless hosts module exists, and if not, either direct a person to set it up in Magisk Manager or create it itself.

It feels like at least half of all troubleshooting posts here are related to that.
[Android Apps and Games] martyfender:
Click on the systemless host options in Magisk Manager settings, you should see a toast that it is enabled. Now you need to reboot for it to take effect.
[Android Apps and Games] crxvti:
How to change the language? Thanks in advance
[Android Apps and Games] Camerado:
Nothing, system language is used.
[Android Apps and Games] mangojack01:
iWont send.

XDA App is crashing on me..

Attempted postin deleted.

---------- Post added at 01:46 PM ---------- Previous post was at 01:41 PM ----------

Try Nebulo DNS.

Google it.

Nebulo in conjuncion with Adaway kills everything.

Root required.

SU prefered over Magisk.

Magisk has lost the plot.

Stick with basic root.
[Android Apps and Games] ktmom:
As a generic authoritative statement, this is just flat wrong.

Your device (2014 release) may work well with superSu. But that app is now owned by CCMT, and not updated since ChainFire left development years ago.

Magisk is the premier root solution, open source, and capable of working in a variety of devices, including updates to deal with modern system as root (SAR) changes developed by Google on the last several OS release.
[Android Apps and Games] andy356:
[MENTION=6798520]mangojack01[/MENTION]

I'm aware of Nebulo DNS, but it is in beta right now.

I prefer to use Personal DNS Filter from F-Droid. It has DNS over TLS/HTTPS support as well. I just disabled the adblocking part.
[Android Apps and Games] discodestroyer10:
Hi, is there any way to disable Adaway in certain app? I'm talking about Google News.
[Android Apps and Games] PoochyX:
Sadly no

([emoji3590]09-09-18[emoji3590])
[Android Apps and Games] zgfg:
You can't whitelist an app in AdAway, but you could in DNS66 (it does not even require root).

But you can check where Google News wants to connect and then whitelist that domain(s) in AdAway
[Android Apps and Games] ktmom:
To add to [MENTION=7786725]zgfg[/MENTION] comment, the instructions to whitelist are here.
[Android Apps and Games] PoochyX:
Anyone know if net scheduler wakelock is removed by disabling scheduler receiver

([emoji3590]09-09-18[emoji3590])
[Android Apps and Games] paulr24:
So this app recently stopped blocking ads completely for me recently, is anyone else experiencing this issue? I'm running stock Android 9.0 on the OnePlus 6T, rooted via Magisk. I was on a way older build of AdAway when the issue first started, so I flashed the latest build but still no luck.
[Android Apps and Games] zgfg:
Have you checked in AdAway Settings where it looks for the local target hosts file (proper path depends on your ROM) - and have you checked by AdAway and/or from like MiXPlorer the content of hosts file (is it almost empty by default or is it filled)?

Also, from AdAway Hosts section in Settings, check from which on-line hosts source files it reads, and e.g. when it was last updated from (some of the old hosts sources are dead and some have moved from http to https)

Eg, I'm using the following hosts sources:

Adaway hosts

https://adaway.org/hosts.txt

StevenBlack's hosts file

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

WinHelp 2000

https://raw.githubusercontent.com/E...assets/active/filter/winhelp2002.mvps.org.txt

Dan Pollock's hosts file

https://someonewhocares.org/hosts/hosts

hpHosts’s Ad and tracking servers

https://hosts-file.net/ad_servers.txt

Long-lived malware domains

https://mirror.cedia.org.ec/malwaredomains/immortal_domains.txt

Malware domains

https://mirror.cedia.org.ec/malwaredomains/justdomains

Malware domain list

https://www.malwaredomainlist.com/hostslist/hosts.txt

Peter Lowe’s server list

https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=1&mimetype=plaintext

Hosts File

https://www.hostsfile.org/Downloads/hosts.txt
[Android Apps and Games] ktmom:
You don't say what version of Magisk. Double check that the systemless hosts module is still listed as enabled in Magisk manager. Then as suggested above, make sure the hosts file had applied properly by checking the size in a root enabled file explorer.
[Android Apps and Games] koliberk:
Hi,

I have small issue each time I have new version installed.

My sources are deleted after app is updated to new version.

Is there a way to save settings from AdAway and copy this settings to new version after update?

I have OS 9.0.8 on OP 5T
[Android Apps and Games] PoochyX:
You could use titanium backup and restore adaway data when needed...

View attachment 4826563

([emoji3590]09-09-18[emoji3590])
[Android Apps and Games] ktmom:
There is an export feature in the 3-dot menu on either the "your lists" or "hosts sources" pages within the app.
[Android Apps and Games] koliberk:
Thanks for pointing this, it saves data to file adaway-backup.json
[Android Apps and Games] PoochyX:
Why you need so many host files

([emoji3590]09-09-18[emoji3590])
[Android Apps and Games] koliberk:
Just to be safe online :) , ads & popups drive me crazy!
[Android Apps and Games] Sebastiaanlabr:
Hi guys. Adaway is not blocking all the ads anymore on my device. I have the OnePlus 6. Especially in my browser. I don't know what is wrong. Mabey it's a r/w-issue. I face this on every rom lately.
[Android Apps and Games] PoochyX:
Bro Firefox and ublock origin is your friend

([emoji3590]09-09-18[emoji3590])
[Android Apps and Games] Sebastiaanlabr:
Just tried that. Apkmirror.com still showing some ads.
[Android Apps and Games] PoochyX:
Your not using it in medium mode

([emoji3590]09-09-18[emoji3590])
[Android Apps and Games] Sebastiaanlabr:
But is it normal nowadays? Or is it just my setup that ads in the browser are not blocked anymore?
[Android Apps and Games] PoochyX:
Ublock origin blocks third party script ads host files can't do that I use a light host file engergized spark with miniminguard for app protection and ublock origin in medium mode with a dark mode plugin for internet browsing

([emoji3590]09-09-18[emoji3590])
[Android Apps and Games] Sebastiaanlabr:
And how to use minimum mode? And why ads are no longer blocked in the Xda-app for example?
[Android Apps and Games] zgfg:
For me AdAway (on the rooted phone) and dns66 (on a not rooted phone) fully block ads in XDA - as attached

Same hosts sources used on both phones, listed in post #13816

https://xdaforums.com/showpost.php?p=80320753&postcount=13816
[Android Apps and Games] ktmom:
Start with using the DNS logging feature on a problem app/site. Then check to see if those domains are actually in the hosts file. It's possible that there is a problem updating the hosts source(s).

EDIT:

Assuming you're using Magisk, make sure the systemless hosts module is installed. It should show up in the Magisk Manager modules list. If it's missing, enable the module in the Magisk Manager settings.
[Android Apps and Games] PoochyX:
Big host files consume alot of ram and slow down the browser

([emoji3590]09-09-18[emoji3590])
[Android Apps and Games] zgfg:
On Huawei P9 and Mate 9 (both phones from 2016 and 2017, but with 3 GB and 4 GB RAM, resp), no slowliness in browser at all. Also, updating from my (long) list of hosts sources takes a minute or so.

But on the old device with like 1 GB RAM, updating from 5 or 6 hosts sources may take 5 minutes or more

EDIT 1:

Contents of hosts sources are 70-80% common. Hence your hosts file is updated from 10 sources instead of from 3 sources, it won't be 3 times bigger but maybe only 40% bigger.

This is because AdAway (similarly dns66) merges from all sources, and therefore if your 10 sources contain 8 times the same malware domain, it will be merged/listed only once

Therefore it doesn't slow down browsing

It only slows (and substantially if you have small RAM) updating from the hosts sorces - but you do it at most once a day

EDIT 2:

Also, each hosts source file on the Net contains its timestamp when it was last updated

Therefore, AdAway compares its on-line timestamp against its local copy of the timestamp and if it finds that particular hosts file was not updated since the last time, it skips over

Hence, if you have that list of 10 hosts sources, only 1 or 2 sources file may be updated every few days
[Android Apps and Games] DiamondJohn:
I think the "how much" will be very ROM, device and network specific. Under the right conditions, it could be argued that some web pages with excessively large ads, will be sped up, as they are not downloading and rendering overly bloated ads. Also the interruption of pop-ups/overlays could be reduced (advertising scripts could be hosted on blocked hosts). And personally, I am willing to experience some slowdown (not that I have) if it means I am also protected from malware & tracking sites, by a larger host file with better blocking.

I personally have always used a large host file (even on my original 512mb phone), and did not notice any excessive slowdown. But that is probably a lot of luck. The best thin to do is probably to test their device, under their usage and see if a larger host file is OK for them.
[Android Apps and Games] PoochyX:
Or simply just use Firefox with ublock in medium mode for the browser and a lite host file to protect your apps from ads and minminguard if xposed is available (even tho using paid or patched versions of apps prevents ads anyway) as some apps ads can't be removed with a host file nor minminguard such as textnow and showbox which alternative methods have to be used to remove those ads such as patcher app for showbox and a patched textnow for textnow....

([emoji3590]09-09-18[emoji3590])