yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] Garbonzo17:
You know what, I got it to work, but it's qwerky that it is still this way.

I had downloaded the json file from my g-drive, so it was in downloads... I just recalled that the older versions of adaway that used a txt (or conf or list or something, not a json file) that it needed to be located in the main folder of internal memory.

So I put it there and it works, but I also noticed as long as I go in by clicking on the phone (not recents or downloads or google drive from the side menu) I could then browse to downloads (or anywhere else local and it would find it... and even some google drive files, but not all.. its weird.

So it's NOT that the json needs to be in "internal memory" folder (/storage/emulated/0) but rather that for some reason the downloads shortcut doesn't work... it shows me all of the files in downloads, but the adaway-backup.json is greyed out.... yet if I go to OnePlus 6t (internal memory) and then pick downloads folder all are greyed EXCEPT the adaway-backup.json...

Anyway thanks for your help. Your image got me thinking about location... and eventually got me there.... so thanks! --gotta go do the Pixel now..
[Android Apps and Games] zgfg:
AFAIK, localhost 127.0.0.1 is related to the Web server being enabled by default (wouldn't make sense for 0.0.0.0)

However, there are issues with the local Web server

I personally switch off Web server and use redirection (also through Preferences) to 0.0.0.0 (that way you will actually get what you are asking for)

IMHO, default Preferences could be better changed in AdAway to: Web server off and Redirection to 0 0.0.0; but with the additional feature when somebody enables Web server, that AdAway then automatically changes the Redirection to 127.0.0.1

Even further, then it makes sense also to change the format of hosts sources (the same as recently introduced to Blokada), to list only the hosts/domains without prefixing them with 0.0.0.0 or 127.0.0 1.

AdAway would prefix them (when writing to the hosts file) with the IP (v4) address 0.0.0.0 or 127.0.0.1, depending on the active Redirection preference
[Android Apps and Games] zgfg:
As similarly also on the PC, I never use those those thingies likGallery, Recents, Documents, etc.

Instead, I always prefer File Manager (like MiXplorer) and look for the files in their 'real' folders like /Download, /DCIM/Camera, etc

Moreover, I loose temper when somebody asks that (s)he recalls seeing something in Recents, Documents, Gallery or so but where can (s)he find it now - these things should have been forbidden (actually, removed from the OS), because of causing more troubles then really helping with.

IMHO, people should be familiar to work with the proper paths for their files and folders

Not even to mention Windoze where file extensions are 'hidden' by default (just think how many 'lusers' sooner or later got headaches with)
[Android Apps and Games] Garbonzo17:
Agreed -- and if it was that simple I wouldn't find it weird.

Ideally I would like it to just work from within google drive where I keep a folder called migrate-settings that I use when I switch phones or roms.... the thing that still makes this strange is that I have a adaway-backup.json in that folder (two actually with different dates) and a sub-folder called "saved data" with one in there... and AdAway sees that one! Its bizarre. I thought it "maybe" was the fact that google-drive let me store 2 with that same name, so I deleted the older one.. still no go...

So, it sees the backup from a few weeks ago on google drive at /migrate-files/saved data but NOT the one in /migrate-files.

This is flakier than the download shortcut (which should work as it shows ALL the same files in my download folder)...

Oh, and whole-hartedly **** the "resents" on anything! thats just where adaway (and most things) drop you for the first time...
[Android Apps and Games] gallegonovato:
Good evening and thank you for your help.

So if I am clear or if I understood you well.

In redirection I have 127.0.0.1 but I use all host sources with 0.0.0.0.0 except the Adaway one.

So all the sources that I have that use 0.0.0.0.0 I have to check the redirection box that is just below where you put the url of the hosts list.

It would happen the same, if I change in preferences ipv4 redirection for 0.0.0.0.0 (instead of 127.0.0.1). I would only have to check the host redirection box, when I add a host list with 127.0.0.1 to make the Adaway host blocking work correctly.

I apologize if this is not what you are trying to tell me, but with my little knowledge this is what I understood when I read you.

A hug and thanks for your help
[Android Apps and Games] zgfg:
To learn understand how it works, you can play the following:

1) Disable AdAway (button at bottom on the main AdAway window), it must say: Default hosts file restored

- Reboot and then use some root explorer to open and inspect how /system/etc/hosts file looks like (textual file, should be almost empty, only definitions for localhost/localdomain)

2) Preferences, IPv4 Redirection, set to 127.0.0.1

- Enable AdAway (button on the main window) and wait until it says: Hosts files successfully updated

- Reboot and inspect how /system/etc/hosts file looks like, it will have thousand (s) of lines looking like: 127.0.0.1 yzytb.com (i.e., blocked hosts are redirected to 127.0.0.1)

3) Repeat steps from (1)

4) Preferences, IPv4 Redirection, set to 0.0.0.0

- Enable AdAway and wait until it says: Hosts files successfully updated

- Reboot and inspect how /system/etc/hosts file looks like, it will have thousand (s) of lines looking like: 0.0.0.0 yzytb.com (i.e., blocked hosts are now redirected to 0.0.0.0)

Steps can be made faster - avoiding reboots and looking instead to the 'copy' of hosts file created by Magisk, Enable systemless hosts on /data/adb/... (this is just the beginning of the complete long path) but then it would require good knowledge/understanding of how systemless mechanism works .
[Android Apps and Games] DiamondJohn:
There are differences even without the web server enabled. 127.0.0.1 looks for a local web server (ie browser waits for a failed response), whereas I think 0.0.0.0 goes nowhere and possibly a little quicker (obvious fail), maybe.
[Android Apps and Games] zgfg:
Sorry but AdAway does not work with Google Drive. Instead you have probably enabled automatic sync of files from your G Drive to your phone(s)

Then again, it's not under your control (and not AdAways fault) what happens when you update the json file to G drive, when you have two or more copies of the same file there (older ones), which of them is synced to your phone and where, etc, etc

What I said, forget Google Drive and create yourself e.g. a folder /myAdaway/Backup on Internal mem on your phone, and save there yourself the actual/correct version of AdAways backup json file

Then use exactly that path to navigate AdAway to read exactly that json file when you want to restore

Otherwise, instead of 'helping' you, all those mechanisms like G-Drive and its syncing (without the good knowledge and understanding of how they work) make your experience poor because you don't have under your control where the backup files are, why they are grayed out (wrong extensions), which of the several historical copies are really in use, etc

I.e., for what I was saying, G-Drive + its syncing falls under the same category of troublemakers like Recents, hiding file extensions, etc.
[Android Apps and Games] zgfg:
That is exactly why I suggested to disable Web server but also to force the redirection to 0.0.0.0

All that has already been discussed here in several rounds and I didn't want to repeat the long stories - users should search back and read 🤓
[Android Apps and Games] nxr_:
I've never managed to block EU cookie notices with AdAway, what am I missing? I added fanboy's list and i don't care about cookies to the filters.
[Android Apps and Games] PerfectSlayer:
I really wonder what are the quirks if we set those settings by default.

I mean, we have recurrent troubles with Amazon, Spotify, etc... I wonder what issues you could encounter with `0.0.0.0` as default and nobody to answer to your requests..?
[Android Apps and Games] zgfg:
I agree to be 0.0.0.0 (not 127.0.0.1 - which one is currently default?), but also Web server off (currently default On)

Btw, what would happen if redirection is 0.0.0.0 but someone turns Web server On (IMO, Web server requires localhost 127.0.0.1)?
[Android Apps and Games] Oswald Boelcke:
For more than two years I re-direct to 0.0.0.0 without any problems (and by the way with the built-in webserver disabled). I mainly changed the re-direct to 0.0.0.0 because 127.0.0.1 does indeed create traffic that I wanted to avoid.
[Android Apps and Games] osm0sis:
With 0.0.0.0 set, turning the web server on would have no effect on anything.
[Android Apps and Games] zgfg:
Yeah, but imho, web server would not be working

If so, I suggested that enabling Web server would automatically redirect to 127.0.0.1, while (to be default) disabling Web server would automatically redirect back to 0.0.0.0

Even without the field for manual definition of IPv4 redirection

And the similar for IPv6 ( :: vs ::1 )
[Android Apps and Games] Garbonzo17:
Yeah I am just going to stick with local, now that I know not to use the shortcut to downloads, and just go in through main internal storage first. But google drive DOES work! just not in any consistent way that makes sense... If I browse to the file 2 directories deep, it sees the file and imports it perfectly fine... but just not the one in the parent folder above... strange
[Android Apps and Games] osm0sis:
So then it shouldn't make a difference whether 0.0.0.0 or 127.0.0.1 are used in a hosts file then?
[Android Apps and Games] ipdev:
Since we are hijacking the dns call by modifying the local hosts file, it will be handled locally.

0.0.0.0 is 127.0.0.1 since "localhost" is "This network".​

As the saying goes..

Be it ever so humble, there is no place like 127.0.0.1 :)

Cheers. :cowboy:
[Android Apps and Games] DiamondJohn:
Not trying to throw a spanner into the works just for the sake of it, but have you checked that your host file is not re-directing 0.0.0.0 to 127.0.0.1 ? I have seen this entry many times in multiple host file sources.

Reading the WiKi on "0.0.0.0" they describe it differently

0.0.0.0 - Wikipedia

en.wikipedia.org

Although the following page agrees with what you are saying regarding it referencing "this network"

Reserved IP addresses - Wikipedia

en.wikipedia.org

And the following has more to read than what you could every ask for; but doesnt really answer the questions in my head; at least not simply and directly.

What is the Difference Between 127.0.0.1 and 0.0.0.0?

Most of us have heard of '127.

www.howtogeek.com

When I ping 0.0.0.0 on my desktop windows PC, it does not get resolved. From my reading of the above, it is any IP on this device, which is on this network. The real end question is how it is interpreted by apps when loading ads etc. Do they try and load a page at 0.0.0.0 or do they simply drop out early? I do not know. However, I personally will stick with 0.0.0.0 as it MAY be "a non-routable meta-address used to designate an invalid, unknown or non-applicable target" and hopefully will be treated as such, if not currently, then in the future
[Android Apps and Games] DiamondJohn:
On a completely unrelated topic.

And to be clear, my understanding of IPv6 is very loose.

Using the default hosts sources, one of which are StevenBlack Unified hosts from https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts I have seen the following blocked hosts in the resultant host file, in their alphabetical order/position.

0.0.0.0.0 fe
0.0.0.0.0 ff
0.0.0.0.0 ip6-localhost
0.0.0.0.0 ip6-loopback
0.0.0.0.0 localhost.localdomain
0.0.0.0.0 local

From my basic understanding, the above list are default headers (ie they are the header of more extensively complete hosts file). I think they are mostly related to standard default IPv6 redirects. They are in the "StevenBlack Unified hosts" as redirects in the "header" but would now be redirected to 127.0.0.1 or 0.0.0.0

127.0.0.1 localhost
127.0.0.1 localhost.localdomain
127.0.0.1 local
255.255.255.255 broadcasthost
::1 localhost
::1 ip6-localhost
::1 ip6-loopback
fe80::1%lo0 localhost
ff00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
0.0.0.0 0.0.0.0
[Android Apps and Games] uVSthem:
I'm trying AdAway on my Android TV and for the most part it is working. There are two apps which I am having issues with. On Vudu, it does not seem to block ads at all and with Paramount Plus I just get a black screen when I try to watch anything. The TV show never plays. Does anyone have an idea on how to fix these issues?
[Android Apps and Games] Silva:
Hi everyone,

Recently I got a OP8T and installed a custom ROM on it. But since I rooted my new phone, AdAway doesn't work at all. I tested both in stock ROM and custom ROM (I'm on Havoc OS). Whatever I do it doesn't seem to be working. When I enable it with the middle button it turns red, but when I come back in the app after exiting it it returns to grey. Even using DNS server mode to manually block ads it doesn't work. All the ads in all websites and apps are showing up.

I searched for this issue on the internet, YouTube, etc but nobody is talking about it. So I came here.

In my previous devices which also had the same custom ROM and the same android 11 was working well so idk why it doesn't now.

Thank you for your help
[Android Apps and Games] Wolfcity:
To ask the obvious: Sytemless hosts activated in Magisk?
[Android Apps and Games] Silva:
What is this thing?
[Android Apps and Games] Oswald Boelcke:
Screenshots e.g. in my post from 18 July here.
[Android Apps and Games] Silva:
Okay I see !! I usually don't install a thing in Magisk for AdAway. It always worked like this. I didn't know that, thank you so much bro
[Android Apps and Games] zgfg:
I don't know how did you come to the addresses:

0.0.0.0.0 fe

0.0.0.0.0 ff

...

0.0.0.0.0 (five zeroes) is not a valid address either for IPv4 neither for IPv6

Try to put: 0.0.0.0.0 to the Preferences, Root based adblocker, IPv4 redirection (or IPv6 redirection) it will not accept, popping up: Invalid redirection

By closest similarity, for IPv4 it must be 0.0.0.0 (for zeroes).

For IPv6, 'delimiter' is not s dot but double colon, like 0:0:0:0:0:0:0:0

And btw, I've tried various combinations for IPv4 and IPv6 redirections, each time I searched through the resulting hosts file, and 0.0.0.0.0 (five zeroes) was never found in the file

What exactly are your settings for IPv4 and IPv6 redirections?

Is IPv6 support enabled?

Also, under Hosts sources, for StevenBlack, do you have Applied redirection enabled or not

If you really have addresses like 0.0.0.0.0 (five zeroes) in your hosts file, reset AdAway and try enabling one by one of your hosts sources and after each change inspect the resulting hosts file
[Android Apps and Games] DiamondJohn:
the five zeros are obviously a typo. I manually entered them and suffered the "I know how to spell banana, I just dont know when to stop...."
[Android Apps and Games] zgfg:
Ok, then coming back to your original post (with one zero removed🤓)

If you:

- set IPv4 redirection to 127.0.0.1 (localhost, as @ipdev suggested)

- enable IPv6 support

- set IPv6 redirection to ::1 (proper localhost for IPv6)

- for StevenBlack hosts source, enable Apply redirected hosts

Then you should have all local addresses in your resulting hosts file as they were originally in the StevenBlack's header - see the screenshots

You can test/experiment:

- download StevenBlack hosts source to the phone (by Curl or ADM)

- remove in the downloaded file all except the 'header'

- in AdAway temporarily disable all other hosts sources and add your downloaded/edited SB hosts file to be the only and local source (File, not URL)

- apply the redirection changes as above

Edit:

One line fron the original SB header will be missing:

0.0.0.0 0.0.0.0

but I don't see the point of 'redirecting' 0.0.0.0 to itself

Besides, hosts file is for DNS resolving of donain names to IP addresses, and 0.0.0.0 is already an (IPv4) address, not a domain name
[Android Apps and Games] DiamondJohn:
Thanks. I actually already have my headers sorted. In a way, I was kinda expecting (almost hoping...) that someone would slap me down and correct/confirm to me that these funky hosts are actually irrelevant on a client, and are more appropriate for a router's host file. It was also a chance for others to understand how to sort it out (I corrected mine a different way, which would not be appropriate for everyone else) And dont forget, my preferred redirect is 0.0.0.0 (I counted that time ;))

One thing that did stick out to me, is that I forgot to include a couple of other lines (for fe & ff I think thats all I missed). I thought I would of copy-pasted it from my actual source, but clearly I did not. I have no idea where the previous ones came from, as I have been running with the below for few weeks now.and the two missing ones are in the middle and not simply dropped off from the end. Maybe I was spelling banana ... na. ... n... again.

127.0.0.1 localhost
127.0.0.1 localhost.localdomain
127.0.0.1 local
255.255.255.255 broadcasthost
::1 localhost
::1 ip6-localhost
fe80::1%lo0 localhost
fe00::0 ip6-localnet
::1 ip6-loopback
ff00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
0.0.0.0 fe #00::0 ip6-localnet
0.0.0.0 ff #00::0 ip6-mcastprefix
0.0.0.0 0.0.0.0

From memory, I extracted these from one of SB's (and confirmed in others as well) larger hosts files.
[Android Apps and Games] DiamondJohn:
Completely OT.

I currently script on my phone using wget, but am trying to get curl working in the shell on my A11 Pixel 4A. Its not available, and the only reference I could find to get it working was a no longer available Magisk module. You have any more info on how I could get curl?
[Android Apps and Games] zgfg:
I have curl (screenshot) - I thought it installed by BusyBox NDK module but looking now to /system/xbin, it was not

Since all my other modules are not related to, and since I use nhterm = Terminal app from Kali Nethunter (I installed long ago as a standalone app, found on their app store - I don't have Kali sudo, packages, the whole their system, just that terminal apk), it must have come with the app

Try:

NetHunter Terminal | Kali NetHunter App Store - Android App Repository for Penetraton Testing and Forensics

© 2010-2019 Kali Linux, F-Droid, and Contributors

store.nethunter.com
[Android Apps and Games] DiamondJohn:
Busybox does not have curl, but it supplies wget which has a very well known issue (noted on the web, and in some of my downloads) with selected secure web pages. I can work around it by passing the problem pages through a free online proxy.

My previous Oreo phone running HavocOS that I built from source (LOS based, and I did not explicitly add it) has curl installed, but it is not on my pixel 4a. I think I would try and build from source the curl binary, so its available within a standard shell, and not have to run within another APK. Getting the Magisk module I linked above working would be the best scenario. Thanks anyway.
[Android Apps and Games] DiamondJohn:
OK, my bad, the module IS in the magisk repo, its called "Cross Compiled Binaries" and after (reading a few posts above mine) following the steps it works now.
[Android Apps and Games] Aelliaria:
My banking app isn't working properly with AdAway. (After login the screen stays white). If I turn of AdBlock off, it does run. I tested the different hosts turning them off 1 by 1 to see if some host source was causing the problem but even with all hosts turned off but AdBlock on (so there is no ad blocked) the app isn't working.

Something in AdAway is blocking my banking app from loading the main page

Could someone maybe help me with this?

Thnx in advance!
[Android Apps and Games] Oswald Boelcke:
Do you have the AdAway inherent webserver disabled?
[Android Apps and Games] Aelliaria:
Muchísimas gracias
[Android Apps and Games] tavocabe:
Hello guys, I've having a bit of a trouble setting up the latest version of AdAway, can not get it to ask for root permission, I've already disabled magisk hide and reinstalled magisk too so not sure what else I could try. It's not appearing in magisk root permission app requests. CAN anybody suggest something?
[Android Apps and Games] Nergal di Cuthah:
Did you install systomless hosts magisk module
[Android Apps and Games] Lughnasadh:
Have you enabled Systemless Hosts module in Magisk? If not, do so. You may need to clear cache & data of Adaway and set up again afterwards.
[Android Apps and Games] tavocabe:
I did have it installed, try getting AdAway to ask for root after removing the module and still can't get it to work
[Android Apps and Games] Nergal di Cuthah:
Just to cover all bases, did you choose vpn when setting up adaway?
[Android Apps and Games] tavocabe:
Yes, I had to in order to advance in setup screen, didn't let me choose root as it appeared as not rooted. Then, in preferences, root is grayed out
[Android Apps and Games] Nergal di Cuthah:
That's the problem, try the above Idea of installing systemless host and deleting the data for adaway, that should allow you to choose root behavior
[Android Apps and Games] zgfg:
Go to Settings, Apps, find AdAway and simply Delete Data. Then, start again and this time immediately choose root - you cannot change it later, only when initializing AdAway.

If you miss, then you (obviously) have to uninstall AdAway or Delete Data to force the initial setup again

Have the Systemless hosts enabled in Magisk in advance and upon enabling it, reboot

Omce you setup AdAway, do reboot again
[Android Apps and Games] tavocabe:
Sorry I don't understand what the problem is. I tried getting root permission with systemless host installed and uninstalled, both ways failed to detect root. Also already tried clearing AdAway data. Not sure what is going on as I have other root apps working with no problem. Is there anyway of adding app to magisk list of approved root request?
[Android Apps and Games] tavocabe:
Thanks, already got it to work. It never crossed my mind you couldn't change VPN/Root in app preferences only when initial setup. Why is even displayed then?
[Android Apps and Games] m0han:
for offering the choice to both root and non-root users during initial setup, i guess.
[Android Apps and Games] gallegonovato:
Good afternoon:

I would like to propose a change in the Spanish translation. I tried to do it from github but it does not allow me to enter the translation, I get an error.

The suggestion is :

When there is an outdated source. It puts it in English. Instead of putting:

1 fuente desactualizada

0 fuentes desactualizadas

A hug and thank you for your time
[Android Apps and Games] DiamondJohn:
I did a bulk compare with the resultant blocked hosts between AdAway and another host builder using the standard host sources for Adaway in both. I found that AdAway appears to have missed the following host levelrate.de which is in https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&mimetype=plaintext

I tried re-downloading all, and the same occurred. If I ping it (on my desktop), it does resolve to an IP. But that IP is blocked by my desktop firewall.; which is set to block just about everything

C:\Java\x86\Android\android-sdk\platform-tools>ping levelrate.de

Pinging levelrate.de [64.190.62.111] with 32 bytes of data:
General failure.
General failure.
General failure.
General failure.

Ping statistics for 64.190.62.111:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

I plan on testing a much longer lists, with "questionable" entries, but the above one seems ok
[Android Apps and Games] zgfg:
Added your:

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

to the hosts sources and for me it correctly blocks: levelrate.de

Screenshots from AdAway attached - last two show searching in the Blocked list and search in the hosts file.

Plus a screenshot from browser - it cannot open levelrate.de anymore