yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] gallegonovato:
Good afternoon:

I have Lineageos 17.1 with Magisk in its latest version. Systemless host active.

It happens to me many times when I remove some host source. That after I hit the check for updates button and I see how the number where it comes out the host sources that I have installed starts to decrease. And I go to where are the lists of hosts and I see in some that says Installed x hours ago, installed x minutes ago or installed for a few minutes.

It even happens when it seems that the uninstallation process is cut. Or when I remove the source.

To remove the font, I go to the font list. I enter the one I want to remove. And at the top right I click on the trash can icon. Then Adaway goes back to the host list, and there I click on apply at the bottom.

And sometimes it cuts off the message of installing such. Or it just just re-arranges the host sources. But as it cuts off for whatever....

Or same if I uninstall two fonts at once also happens.

And I go to the main screen of adaway. And I hit check for updates. And it starts to lower the number of installed fonts. And even if you dea to download does not put them all back.

I have to clear the adaway cache. Sometimes in Magisk give to install again magisk and / or Magisk manager. I reboot the phone. I go back to Adaway. I give the icon to check for updates and I see how to put back all lists of hosts.

Other times I have to run sd maid, or lte cleaner before.

Currently I have 32 host sources. and none from codeberg.

A hug

Pd: I take this opportunity to comment that just in front of the icon to download updates if there is a source. It says it in English, not in Spanish. It should say: Fuente desactualizada (for 1 source) or Fuentes desactualizadas (for more sources that one)

And when you are installing the sources. And then create the hosts. It says: Crear nuevo hosts , Copiar nuevo hosts

Y It should say: Creando nuevo archivo host ; Copiando nuevo archivo hosts o only put: Creando y copiando nuevo host . O Creando y copiando nuevo archivo host.

AdAway version: 5.4.0

Device: Nexus 5, Nexus 6p, Oneplus Samsung s9+

Android version: Lineageos 17.1 no google gaps. And no Google, all free software.

Root version Magisk 22

And a question that I forgot to comment on. Is the system easy to use or how to assist in Adaway translation ?. It is that if you allow me I would like to help.
[Android Apps and Games] Wolfcity:
About translation:

AdAway/TRANSLATING.md at master · AdAway/AdAway

AdAway is a free and open source ad blocker for Android. - AdAway/AdAway

github.com

Btw: Imho 32 host sources are far too much.

Some information about it:

https://xdaforums.com/t/app-root-nonroot-official-adaway-v5-5-0.2190753/post-84634843
[Android Apps and Games] DiamondJohn:
I updated to 5.5.0, added my allows in a few local files, exported my lists (including explicit host allows) , edited the file to remove the explicit allow by individual hosts, cleared my app data for adaway, reloaded my exported list without explicit host allows, but local lists, and now I get the following errors with AdAway just crashing and disapearing when I try to run an update hosts.

dogbin - emymecydex

03-19 21:46:05.185 10271 3150 3200 E AdAway : Unable to get commits from API. 03-19 21:46:05.185

del.dog

It seems to crash on my github hosts lists, which have never been a problem before. Also, the app just shuts down.
[Android Apps and Games] zgfg:
Your log looks pretty strange (btw, it would be easier for downloding and opening in text editor if it was attached)

Cannot see how your URL to your Github list looks like but I had some problems reported in:

For your hosts sources from Github, use a redirected githubusercontent.com URL, not the github.com raw address · Issue #2605 · AdAway/AdAway

First, let me explain how to add your own hosts source to your Github 'project' and to use it for blocking the sites by AdAway. The corresponding issue in AdAway on updating that source file will b...

github.com

For my Github lists I had to use URLs in the form:

https://raw.githubusercontent.com/zgfg/Etc/main/test-hosts.txt

not in the form:

https://github.com/zgfg/Etc/raw/main/test-hosts.txt

although both open in browser

The first is the actual link to the file.

The second one will be (dynamically) redirected to the first
[Android Apps and Games] DiamondJohn:
Just checked, and I AM using a githubusercontenet URL for my github ones. Also, it was working just before I upgraded.

Attached is the host sources that are not working as a backup JSON file. NB I have a few local files as well.

I also tried your "do not use" url, and it redirected to the recommended one (as you said), which is what I would of copied into my JSON file. And when I try one of mine, there is no redirect.

I didn't attach the full logcat as it was packed full of other stuff not related to adaway.

I guess I'll have to start out stock and slowly add host sources one by one, to see which one triggers the crash. But, knowing that its probably one of the github ones, cuts down the iterations I need to go through.
[Android Apps and Games] DiamondJohn:
Actually just had another look at the logcat, and opened the filter up to ANY lines with "AdAway" in them, and attached that file.

Now the following line looks suspicious, and happens just before the crash.

03-19 21:46:01.704 1000 2163 2278 W ActivityManager: Permission Denial: opening provider com.android.externalstorage.ExternalStorageProvider from ProcessRecord{96db508 3150:org.adaway/u0a271} (pid=3150, uid=10271) requires that you obtain access using ACTION_OPEN_DOCUMENT or related APIs

I checked in the app settings, and there are no permissions to allow/deny for AdAway, and no option box requesting to allow/deny permissions pops up.

I am running the latest Android 11 on a Pixel 4a device, rooted with Magisk v22.0

Now, come to think of it, I think when I first booted and tried AdAway, it was without all the files for allows (it had explicit hosts listed), but it did have files for blocks, so that probably would also crash...
[Android Apps and Games] DiamondJohn:
Arrrrgggghhhhhh... I tried uninstalling and going back a version, then reloading my sources backup JSON, and now that one craps out as well.... wait a sec....I got a suspicion that I maybe have to add the local files manually, and thats where it may grant the required permission.

So, back to the new version and add the local files manually, maybe one at a time. Thats a job for tomorrow. Its late here.
[Android Apps and Games] zgfg:
Yeah, you nust add local files manually

I had one added manually, when backed-up to json it was:

{

"label": "myAllowedList local",

"url": "content:\/\/com.android.externalstorage.documents\/document\/primary%3AMi%209T%2FBackup%2FAdAway%2FmyAllowedList.txt",

"enabled": true,

"allow": true,

"redirect": false

}

I copied myAllowedList.txt file to myTestListList.txt file.

I also copied/pasted and changed myAllowedList to myTestList in label and URL in the json file.

When tried to use, it caused crashes

When I manually added the same myTestList.txt file to AdAway, it was backed-up exactly the same to json but it worked

IMO, it's up to the Android Content provider
[Android Apps and Games] DiamondJohn:
I uploaded a JSON file I created with a bunch of small locally sourced hosts block & allow lists. Now knowing I have to manually select the files in AdAway, I simply opened up my host source list and then re-selected the file for the locally sourced file ones, and it now works. Using the JSON file was a good method, as it set up the basic structure for me to go in and manually fix the links, without having to re-type in the full name. It also highlighted which file it was expecting for each source item in the list. Interesting now that my block list sits at around 802K from the mid 700k's.

Maybe a warning / toast when restoring a JSON file, with locally sourced hosts might help people.
[Android Apps and Games] PerfectSlayer:
Your log is interesting! It means the reach the quota on GitHub.

GitHub refuses to serve hosts file for you because you abuse (get too many files too often in a short period) of their API.

We discuss about are we abusing GitHub usage few days ago: https://github.com/AdAway/AdAway/issues/2529#issuecomment-800513416 That is where I recommended to source maintainers that use GitHub to use GitHub pages instead of using raw.githbusercontent.com URL. That will prevent this kind of issue.

Whatever, if you wait a little, the error must disappear by itself. (except if you have a dozens of sources from GitHub, you will reach GitHub quota again)
[Android Apps and Games] DiamondJohn:
That may of been the error displayed, but I had not been refreshing much, and it hasnt happened again, when I was testing and refreshing a LOT more often. The actual CRASH of adaway went away when I manually selected the local files. I can duplicate the crash by adding a file via a JSON restore, instead of selecting the file from the UI. The attached more complete logcat shows the permission issue with local files.

PS: Isn't there code to fall back to the previously downloaded version?
[Android Apps and Games] gallegonovato:
Good afternoon @Wolfcity

Thank you very much for your help and time.

I don't understand why you tell me there are so many.

I think many Adaway users have more than me. For example, if I am wrong I apologize. But for example @DiamondJohn when he uploaded the backup of his Adaway. Between those that I install from the mobile and rn sources has more.

And the error that he commented that Adaway suffers I tested it recently and it does it with few sources also.

A hug
[Android Apps and Games] dr4go:
Small question as I'm thinking to not root my next phone anymore... Is it possible to have the non-root version of this app with Netguard at the same time? Afaik both use a VPN, but it's there a way to achieve that? Thank you in advance... Long story short I'm interested in a firewall and an adblocker while being unrooted.
[Android Apps and Games] celestialspring:
AFAIK we can only have one active VPN connection on Android.

Happy to be educated if this is not the case.
[Android Apps and Games] gallegonovato:
Good afternoon:

I was updating the hosts list this morning. Hitting the refresh button. And I got that there was a new version of Adaway.

But I use Adaway downloaded from fdroid. And there is still version 5.4 there https://f-droid.org/es/packages/org.adaway/

And I have disabled all the options to automatically update, check for new versions and so on.

And the github version over the fdroid version will crash if I update. Because of the different signatures if I'm not mistaken. So I wait for it to come out on fdroid. Or I don't know if they will stop uploading to fdroid and better to download from github?

A hug
[Android Apps and Games] zgfg:
Better uninstall f-droid and install v505 from xda/github.

You will then properly receive updates

In v505 there is mainly the fix for Allowed lists (local and remote)

Basically, you can Backup from Preferences before uninstallation

Upon installing, do basic configuration and Restore your source hosts lists, manually blocked and allowed sites
[Android Apps and Games] gallegonovato:
Good afternoon

Thank you very much for your help and time.

I will download the new version :)

By the way I don't know if it gives you failure, like me: https://github.com/AdAway/AdAway/issues/2619

Thank you very much and receive a warm hug
[Android Apps and Games] Vicalvi:
Friends, is it mandatory for the app to work properly, leave the notification icon visivil in the notification bar in the non-root version? Because I disabled it here through the Android settings and the app seems to continue working normally.
[Android Apps and Games] celestialspring:
For Redmi I find it helpful to leave it on. May be the OS of your phone is less aggressive in killing background apps.
[Android Apps and Games] dlwhdrlf:
The app works very well but is there a way to avoid websites detecting that I'm using an adblocker?
[Android Apps and Games] Nergal di Cuthah:
Webserver option may help with that on some sites but also breaks other sites/apps
[Android Apps and Games] zgfg:
White list particular sites. Open Allowed, click to + and add one by one. If you need many, you can make and use your own Allowed hosts file.

In any case you need to know the sites/URLs you want to allow/whitelist

You can also use public whitelist (Allowed or unblock list) like a one by EnergizedPro (unblocking 11K sites):

https://raw.githubusercontent.com/EnergizedProtection/unblock/master/basic/formats/domains.txt

If using non-root/VPN mode instead of hosts/root, you can whitelist particular apps (although, you asked here for sites)
[Android Apps and Games] gallegonovato:
Good afternoon:

A question if I may.

In version 5.5.0 in the host list you have.

Which are to block by host. Is it necessary to have marked block or allow?

It is that in version 5.4 I had checked the first box that came out.

But I don't know if in this new version I check or uncheck allow. Will it put everything in allow?

And one more question, active web server or not?.

I use afwall+ to block connections. And I only give permission to the application that I want to connect to the network at that time. So my question is if I activate the server is adaway connected often?

Best regards and thanks for your help
[Android Apps and Games] gallegonovato:
Good afternoon @zgfg

I wanted to ask you a question if I may.

I am using the 1 hosts pro source, steven's and https://oisd.nl/?p=dl

I was thinking of putting the energized hosts on it

I don't know what you think about?

The drawback I see is that it updates every few minutes or every hour. And it would keep updating. And it would pull device and create a lot of cache in adaway.

Or I do not know if you know of any so strong that blocks many things.

A hug and thanks for your help
[Android Apps and Games] zgfg:
Not using Energized Pro myself, cannot advice
[Android Apps and Games] nreuge:
Regarding using app with no root: host sources updating is very very long and during this, wifi traffic is completely blocked, that's very disturbing...

Apart from that, the app is amazing!
[Android Apps and Games] v12xke:
Yes. Just uninstall that version completely and start over with the GitHub version. I have never had an issue with the Github version updating itself, or crashing, ever.
[Android Apps and Games] Wolfcity:
For me updating the host sources (the 3 standard ones) in VPN mode takes about 3-5 seconds, most of the time I use the setting for automatic update and don't realise updating at all. No problems regarding WiFi or anything else.

Do you use very large sources or a lot of them?
[Android Apps and Games] gallegonovato:
Good afternoon @zgfg @PerfectSlayer

Problem and failure in Adaway 5.5.0 with a host source, which in Adaway 5.4.0 gave me no problems.

Say that all my host sources use 0.0.0.0.0 , but I have this https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&mimetype=plaintext that does not.

I have been using this source since Adaway 4 . And I never had problems with it.

But in version 5.5.0 it does not update me. I get updated for a few minutes every time. And on the Adaway home page when I hit the check for updates icon. It disappears from the total number of hosts but it doesn't mark me to update. It only adds it back to the total number of hosts when it finishes downloading updates. Or I hit the download icon.

I don't know if there is any vrsion with 0.0.0.0.0 from that source. But on another mobile I tried on the old version of 5.4.0 from Adaway. And it doesn't give me that problem. With the same fonts in a mobile that in another. But in the one with 5.5.0 I get that failure.

I am not using anything from codeberg. And it happened the same when you had a codeberg font, so that you understand me in a few words.

Magisk, Magisk Manager in last version. Lineageos 17.1.

Best regards

Pd: I found the same host in 0.0.0.0.0 format.

https://raw.githubusercontent.com/StevenBlack/hosts/master/data/yoyo.org/hosts

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

Let's see if it fails like this.
[Android Apps and Games] zgfg:
I actually use the same: https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&mimetype=plaintext

I never paid any attention that it blocks to 127.0.0.1 while the other ten hosts sources I use all block to 0.0.0.0

But I NEVER had any problem with that whatsoever, neither now with 5.5.0, nor earlier

My settings are as on the screenshots and IPv4 Redirection redirects everything to 0.0.0.0, hence in my resulting hosts file everything is blocked to 0.0.0.0, and I never had any problem with updating (I know how your problem with Codeberg looked like, but again I have no problem with yoyo)

PS: I changed my IPv4 redirection from 0.0.0.0 to 127.0.0.1, forced updating of all, now I have everything blocked with 127.0.0.1 in my resulted hosts file, and again no problem anywhere (updating, checking for update, all ok)
[Android Apps and Games] gallegonovato:
Good afternoon @zgfg

First of all thank you very much for your help and time.

At the end I checked the box below the url of the host source. I let it finish installing. And then clear Adaway cache. And I didn't look at it again.

And then at night I do not know how I look and already put updated for 6 hours (I think it was).

But just in case change the url to has 0.0.0.0.0

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

Although the same also found https://raw.githubusercontent.com/StevenBlack/hosts/master/data/yoyo.org/hosts but this if I go to the numbers that puts inside has a few less than that of 127.0.0.1 and the other of 0.0.0.0.0

But this way with that of 0.0.0.0.0 and checking the box that comes out when you hit block. Perfect.

It must be a communication failure between Adaway and the url of the hosts source.

I don't know if you can tell me, or if there is any other Adaway thread. What fonts do you use? Or some so complete as 1 host pro or so.

Best regards
[Android Apps and Games] zgfg:
You mean "hosts sources", not "fonts" - fonts are Ariel, Times New Roman, etc 🤓

My Adaway's json exported backup is attached, showing 11 hosts sources in my use
[Android Apps and Games] gallegonovato:
Good afternoon

Thank you for your time and help.

About the fonts, it's the head when I switch from my native language to English jejeje. I will try to figure it out.

Oops I use 31 source hosts. Which are:

https://raw.githubusercontent.com/badmojr/1Hosts/master/Pro/hosts.txt

https://raw.githubusercontent.com/r-a-y/mobile-hosts/master/AdguardMobileAds.txt

https://raw.githubusercontent.com/biroloter/Mobile-Ad-Hosts/master/hosts

https://raw.githubusercontent.com/bogachenko/filterlist/master/hosts

https://raw.githubusercontent.com/bogachenko/filterlist/master/hosts

https://raw.githubusercontent.com/bongochong/CombinedPrivacyBlockLists/master/newhosts-final.hosts

https://raw.githubusercontent.com/DataMaster-2501/DataMaster-Android-AdBlock-Hosts/master/hosts

https://hostfiles.frogeye.fr/firstparty-trackers-hosts.txt

https://hostfiles.frogeye.fr/multiparty-trackers-hosts.txt

https://raw.githubusercontent.com/jerryn70/GoodbyeAds/master/Hosts/GoodbyeAds.txt

https://raw.githubusercontent.com/jmdugan/blocklists/master/corporations/google/non_localized

https://gitlab.com/Jorgu81/hosts/raw/master/HostsGoogle

https://gitlab.com/Jorgu81/hosts/raw/master/FC

https://gitlab.com/Jorgu81/hosts/raw/master/Mozilla

(With this one I have been using it for a long time and it has never failed in any version of Adaway. And today in the morning either. I just updated Adaway and removed it from the total number of sources, and it says installed a few minutes ago. And I didn't touch anything. And the source goes perfect :)

https://gitlab.com/Jorgu81/hosts/raw/master/Blocklist

https://raw.githubusercontent.com/kowith337/PersonalFilterListCollection/master/hosts/hosts_leftover_aggressive.txt

https://hblock.molinero.dev/hosts

https://raw.githubusercontent.com/nickspaargaren/no-google/master/google-domains

https://raw.githubusercontent.com/hoshsadiq/adblock-nocoin-list/master/hosts.txt

https://raw.githubusercontent.com/notracking/hosts-blocklists/master/hostnames.txt

https://hosts.oisd.nl/basic/

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

https://raw.githubusercontent.com/bongochong/CombinedPrivacyBlockLists/master/newhosts-final-Dual.hosts

https://sebsauvage.net/hosts/hosts

https://someonewhocares.org/hosts/zero/hosts

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

https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-gambling-porn-social/hosts

https://winhelp2002.mvp.org/hosts.txt

And ZeroDot1 and ZeroDot1 optional

And the phone is working fine. And ludo fennec from fdroid. With ublock origin and the list of filters of this.

And when I finish uploading things and I get permission from a developer I will put some of the ones I'm creating in my github.

Best regards

Pd: some of them when I put them here duplicate them. And it does not allow me to delete them. I don't know why... Sorry for that.
[Android Apps and Games] Bradford1040:
That was really nice, I am still in the learning stages on adding the right host files to adaway, and having a list like this was helpful 🙏
[Android Apps and Games] gallegonovato:
Good afternoon @zgfg @Bradford1040

I forgot to mention that I also use the ones that Adaway comes with by default

And those of ZeroDot1 and ZeroDot1 optional

@Bradford1040 There is no need to say thank you. We are here to help each other. If any of them help you or you find it useful you can post it.

I still have some in the back, written down there. Just in case. But right now I use those.

I apologize if I duplicate some of them. But I don't understand why xda did it. If any link does not work, please let me know if I put it wrong.

A hug
[Android Apps and Games] DiamondJohn:
When using a host source from the web, some of them are actually final host files which include the line

127.0.0.1 localhost

Are these safe to use as a blocklist? does AdAway remove this line (and similar IPv6) from the blocklist before building the final hostfile?
[Android Apps and Games] zgfg:
I have IPv4 Redirection to 0.0.0.0 and I don't have IPv6 Redirection enabled

When I searched in AdAway, Blocked for localhost it listed:

localhost.localdomain

ip6-localhost

(observe that localhost was not found/listed)

When I opened hosts file I found:

127.0.0.1 localhost

::1 localhost

(that is ok)

0.0.0.0 localhost.localdomain

(that is not ok)

and did not find ip6-localhost

(strange, why searching in Bllocked listed that)

I think it depends also on how your original /etc/hosts file looks like before you enabled AdAway - I think my had:

127.0.0.1 localhost

::1 localhost

(and that was preserved)

Screenshots attached
[Android Apps and Games] zgfg:
I also wanted to explore more by using nslookup from BusyBox, but it ignores hosts file and goes directly to DNS servers - look at the screenshots for resolving 0.1mono.biz (Blocked in AdAway, hence redirected to 0.0.0.0 in my hosts file) and localhost.localdomain (see my previous post, this one is incorrectly blocked/redirected by AdAway to 0.0.0.0)
[Android Apps and Games] krkhaha:
Guy's I can't open this ads when I use adaway. What can I do if I want open it. I want use adaway but not for this ads. Someone's can help me?
[Android Apps and Games] Prathamesh 27:
Hosts to block spotify ads?
[Android Apps and Games] Portgas D. Ace:
By purchasing Spotify Premium. As far as I know, AdAway can't block those ads.