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

I apologize if I offended you in any way or asked the wrong question.

The versions of fdroid and xda and github. They have different signatures. So if you have one on one side. It will give you error when updating. I have known that forever.

But the question that many people ask me, is: if you stop uploading new versions to Fdroid. Since many people is more comfortable to install from the application of fdroid. And update or install from it.

From your answer I understand that yes.

So I reiterate my apologies if I did something wrong.

Best regards
[Android Apps and Games] zgfg:
Sorry I am NOT DEVELOPER of AdAway and I don't know if f-droid AdAway version is or will be updated or no more

I'm user just like you and I use XDA/Github version🤓

Edit: On F-Droid I see only 5.3.0, 5.4.0 and 5.5.0 - hence (just my guess) minor versions like the latest 5.5.1 from XDA/Github do not go to F-droid (that needs the additional work for resigning, uploading, etc)
[Android Apps and Games] PerfectSlayer:
A quick comment here: F-Droid itself is in charge of building the application updates for its store.

As often, it is failing to do so (See the last build log: https://f-droid.org/wiki/index.php?title=org.adaway/lastbuild) and it may retry later.

Once built, I update the application backend to serve the update for the user who doesn't have installed the F-Droid store to let them receive the update. So all updates should come to F-Droid at mid-term.

Remember, you can't mix update from GitHub and F-Droid due to different apk signature, GitHub will always have the updates first and does not contains the Sentry opt-in only telemetry library.
[Android Apps and Games] dr4go:
@PerfectSlayer Thank you very much for all your efforts! As this app / functionality was the main reason to root, which is now also possible without it, I'm thinking of ditching root entirely in the near future.

Right now I'm using a shell script and Tasker to grab the hosts file and push it to a remote computer as well. I'm asking myself if that would be also possible without root rights, but I don't think so... Is it somehow possible to save the hosts file to a "public" accessible location like /storage/emulated/0/Download or the like?
[Android Apps and Games] zgfg:
I've seen on two other, not-rooted phones (Huawei) that MiXplorer can read System partition without root

I have root on my Xiaomi, but when I update Xiaomi.eu (every week), before rooting it again (patching by Magisk the newly installed boot.img and flashing it to get Magisk working again), my MiXplorer can also read System (but not Data - without root)

That way you could directly copy system/etc/hosts by MiXplorer to your Download folder and export it to your computer

However, if you don't have root, /system/etc/hosts file will be empty (only localhost IPv4 and IPv6 inside) and you cannot do anything useful with - disable AdAway, reboot, open the file and check its content

In the non-root mode AdAway does not write to the /system/etc/hosts file

I don't know if you could read the AdAway's DB with the blocked sites when running non-root mode - but certainly not with MiXplorer since it resides on Data, not System

However, you can grab the hosts sources by curl, make your script to merge from several hosts sources and use it on your PC (IMO, people were reporting here about doing exactly that, I think there is a thread on XDA with a script that grabs and merges a hosts file from the given hosts sources)

Sorry if I misunderstood your question
[Android Apps and Games] vip5912:
You can try adb for accessing hosts in /data.

After updating to LineageOS 18.1, I decided don't use root on my phone.

Sometimes I use AdAway to create new hosts (in /data/data/org.adaway/files) and copy it to /system/etc manually in TWRP recovery.

LineageOS OTA update does not touch modified hosts in /system/etc.
[Android Apps and Games] dr4go:
Thank you, nothing misunderstood.

1) I thought that in VPN mode the hosts file in /data/data/org.adaway/files would still be updated? Isn't that the case? Otherwise I'm screwed anyway. 😂

2) See, that is my problem. Without root an app can only access it's data, which is why I asked here to be able to copy it to somewhere else...

3) Yes, that I know, but to manage / filter / modify the list will be much more cumbersome... See... Ads mostly bug me on the phone, which is exactly why currently I'm analyzing that via the logs, blacklist, whitelist stuff in the App, flush the cache and re-try... Once okay, I'll push it to the server... via Tasker / shell... With curl I'd need to replicate the changes from Adaway every time.

1) Thank you, I will keep that in mind once non-rooted. Didn't think about that. 😊

2) That's also creative - however I intend to keep my bootloader locked next time so LineageOS or TWRP are out of question.
[Android Apps and Games] DiamondJohn:
Sorry, but my ears were burning...

https://xdaforums.com/t/hosts-adblock-root-script-diamondjohn-host-builder-script.3872728/

It runs on either an android device with busybox, or directly on a linux box.
[Android Apps and Games] zgfg:
1,2) Keep root on the phone but Wipe data for AdAway (native Settings, Apps), set AdAway to non-root mode and check does it still write to /data/data/org.adaway.com/files hosts

If so (I believe yes), dissble Magisk and try copying that file from PC, by ADB, as @vip5912 suggested

3) It was @DiamondJohn and his script (I even thought but wasn't sure), see his answer

Btw, on the phone (rooted) or not (I even use it in parallel with AdAway root), open native Settings, find Private DNS and set it e.g. to: dns.adguard.com

Then you don't need any adblocker app, but you cannot whitelist or blackist anything yourself

Private DNS setting should be available on A10 and higher - but it cannot work in parallel with AdAway in the non-root VPN mode (or DNS66, Blokada and other adblockers relying on the private VPN, non-root approach)
[Android Apps and Games] jawz101:
To add to what @PerfectSlayer said, as I understand F-Droid's build process (which is very little), F-Droid build servers look at an application's git repository- specifically at the version tags. So if Perfectslayer makes 100 commits on GitHub but never creates a new version tag, F-Droid build servers won't build a new version.

That being said, I don't know if Perfectslayer builds or tags a new version after EVERY commit. Probably not. So F-Droid may be a little behind simply because of how often the developer chooses to tag a change as a new version of the program.
[Android Apps and Games] PerfectSlayer:
Yes, there are two kinds of build on GitHub :

The releases, the apk I shared on each new version,

The dev builds, the apk related to each commit (also known as continuous build),

You can find the GitHub releases here : https://github.com/AdAway/AdAway/releases and the dev build at each commit action result page :

View attachment 5279503

(The dev build are non-signed debug variant built by GitHub action servers where release builds are signed release variant manually built on my computer)

And when there is a GitHub release (always associated with a new version tag), F-Droid will make a build for this tag.

Now you know everything about the automated build I set in place! :)
[Android Apps and Games] DiamondJohn:
oops....I realised after I walked away from the computer, that I only knew of root methods to install busybox on a phone. I think it was dr4go who originally asked. Of course you could build it on a linux box, and transfer to the phone, as I think I read you have TWRP.
[Android Apps and Games] dr4go:
Nope, no root - no TWRP... anyway that's kind of offtopic here and I intend to use a curl script anyway if nothing better pops up.

The issue is to manage the hosts file in Android (I'd like to keep using AdAway for that) and then being able to push the generated hosts file somewhere by shell script I already use (NAS in that case). Again: without root and twrp.
[Android Apps and Games] DiamondJohn:
Not sure if its there already, or it would need to be added to AdAway. But if you could access the AdAway internal data via a content provider, that may enable you to access and build your own host file. Thereby using AdAway to do the download and combine of sources.

The script I posted uses curl, but also does all the combining etc and fallback and multi-threaded etc etc for you. Downloading hosts (eg AdAway and my script) is MOOOORE than a simple curl command. I also realised after walking away that there is some non-root busybox installers.
[Android Apps and Games] Sacob:
I'm on a Oneplus and it's not a notification. is there nothing i can do?

View attachment 5280255
[Android Apps and Games] celestialspring:
It's an Android notification to tell you vpn is running. I don't think this can be removed. It is a 'feature'.
[Android Apps and Games] Yaxie:
Hello everyone, with Adaway, can I block certain website from redirecting me?

I'm visiting a website but every 4 or 5 clicks, it redirects me to a certain page, where I have to click skip the ad or wait 8 seconds.
[Android Apps and Games] Sacob:
is this a vpn?
[Android Apps and Games] Wolfcity:
To say it simple the non - root version of AdAway uses the VPN API but does not connect to a VPN server.

So basically it's no VPN but behaves like one.
[Android Apps and Games] mad4some:
Today I was setting up a custom 11 rom on my OP8T that was previously running the same rom along with latest adaway without any issues. Today, no matter what I did adaway kept turning off all by itself. I tried a slightly older version and same result, I also wanted to grant file and storage permission to adaway but the "permissions" setting was greyed out and I could not access it :unsure: Am I correct that it needs this permission to operate correctly?....and why would it be greyed out? Many thanks :cool:
[Android Apps and Games] Claudio4780:
Last evening the latest v5.5.1 became available via F-Droid...
[Android Apps and Games] gonzo1963:
Good evening,

Is there a solution to make it work?

Regards
[Android Apps and Games] Wolfcity:
If AdAway can't download from all standard host sources there must be something that blocks the connection. VPN, Firewall or similar things installed?
[Android Apps and Games] TerrySpeed:
Maybe you need to enable systemless partition on Magisk?
[Android Apps and Games] argonaut459:
Pardon my silly question.

Does AdAway block ads in other apps (like instagram, YouTube), miui, etc or just on homepages that I open via browser?

The Homepage is not really clear or specific about that, and 800 pages of Thread are a mouthful to go through.
[Android Apps and Games] zgfg:
AdAway only blocks ad sites through DNS. Ads in YT are pushed through the same connections the YT uses itself - you must use modified YT app, Vanced YT to block ads in YT
[Android Apps and Games] argonaut459:
So no general "in-app" blocking of ads. That's kinda sad, but expected as such, as it was not mentioned on the homepage.

Thanks for the quick help.
[Android Apps and Games] Sacob:
ok, but i have a rooted device.. should i still have this message?
[Android Apps and Games] DiamondJohn:
Yes it does block in app ads. However, YouTube specifically delivers their ads using the same host as their videos are delivered on.
[Android Apps and Games] Wolfcity:
If you've installed AdAway as root app no. It doesn't depend on if you're rooted or not, it depends on the way you've installed it. You're asked how you want to install it during the installation process.
[Android Apps and Games] gallegonovato:
Good afternoon:

First of all thank you for continuing to make Adaway a wonderful application.

I wanted to ask you two questions.

The first one, although you already gave me the answer some time ago. I wanted to look into the possibility of making Adaway accept hosts from other more proprietary sources. Like codeberg, notabug, 0xacab.org/, etc...

The second one is if the hosts from https://0xacab.org/twann/filters work for you.

Thanks for your time and help.
[Android Apps and Games] Sacob:
so maybe i should reinstall it. does the root method triggers the safetynet validation?
[Android Apps and Games] Wolfcity:
Yes, reinstall and take care that you choose the root install method.

As far as I know AdAway doesn't trigger safetynet validation at all. There's only a handful of root apps (Titanium backup for example) that could trigger safetynet.

Don't forget to activate systemless hosts module in Magisk and reboot before using AdAway.
[Android Apps and Games] DiamondJohn:
Simply clearing AdAway data will trigger it to re-ask on your next startup.
[Android Apps and Games] EngineerMind:
What exactly does that module do?
[Android Apps and Games] zgfg:
On the most new phones (particularly A10 and newer) your system is read-only (despite of rooting the phone).

If not familiar with, read in this thread, in Magisk general thread, Magisk documentation, google, etc, about the systemless root

In that case, Adaway cannot write to /system/etc/hosts, and instead Magisk will provide /data/adb/modules/hosts/system/etc/hosts file.

AdAway will write to that file instead, and Magisk will mount that to the real /system/etc/hosts file, to make ad-blocking working

For the non-root AdAway mode it's not needed, then Magisk uses virtual VPN instead of writing to hosts file
[Android Apps and Games] EngineerMind:
Thank you for the explanation.

So, Magisk will do this "mount" to update the real host file when my phone reboots?
[Android Apps and Games] zgfg:
Yes
[Android Apps and Games] ReyStunner:
Same issue. How do I disable webserver??
[Android Apps and Games] Oswald Boelcke:
I hope the attached screenshots are self-explaining. Please refer to SS #4 - #6: At "Local web server" untick "Enable web server".

Spoiler content hidden.
[Android Apps and Games] gonzo1963:
Good afternoon,

I have nothing of what you mention installed.

It is in the only smartphone in which this happens to me with that version of AdAway.

Could it be that there is some problem in Android 4.4.4?, it is the only smartphone with that version of Android in which I have AdAway installed.

Regards
[Android Apps and Games] Wolfcity:
I don't think the Android version (4.4.4) has something to do with it. As long you stay with versions below 5.x.x it should work. If you're rooted with Magisk have you installed the systemless hosts module which is inbuilt in Magisk? If you've done that maybe a newer version of 4.x.x AdAway will work, like AdAway 4.2.9:

Dropbox - File Deleted - Simplify your life

www.dropbox.com

Or try an older build like 3.3. (it's for Android below 4.1 but who knows?)

AdAway-3.3-180307.apk | by PerfectSlayer for Generic Device/Other

Final 3.3 release

androidfilehost.com
[Android Apps and Games] horsefingers:
After 3 weeks without internet access after uninstalling AdAway, haven't found a solution yet. This was my original post.

Any help?
[Android Apps and Games] Nergal di Cuthah:
Are you asking why those localhost entries are there, I didn't understand your initial post then or now, so i'm trying to clarify what your question is (other than you have no internet access) are you the one I asked to check your vpn setting on android settings? If so what was your reply I forget. But that's where I would look. Maybe reinstall adaway as vpn and then change vpn to something working or off then uninstall adaway.
[Android Apps and Games] EngineerMind:
From what I understand, Adaway is able to do its job on "non-root" device by configuring your device to use a VPN (adaway's vpn).

So, if you uninstall Adaway and vpn is still on, you will not get internet because there is nothing on the vpn channel anymore. So, make sure your device is not configured to use a VPN (turn VPN off).
[Android Apps and Games] Sacob:
I was on root method after all ahaha

I managed to go to user certificates and remove the one that this app prompted me to install. the warning is gone now :)
[Android Apps and Games] horsefingers:
Yep, you told me to check my VPN settings, and this what I answered:

Went to Settings > Wireless & network > VPN

It says "No VPN networks" and there is the button "Add VPN network".

Doesn't seem to be anything unusual there. VPN is disabled.

How to reinstall AdAway as VPN? When I reinstall (or clear AdAway data) I just get a pop-up message if I want to help with telemetry.

AdAway 4.3.6

Android 5.1

VPN mode comes only in AdAway 5.x and I can't install those versions on Android 5.1.
[Android Apps and Games] Nergal di Cuthah:
I missed that part, then adaway, in my opinion, is definitely not the issue here; as on an unrooted phone with adaway 4.x adaway does nothing.
[Android Apps and Games] horsefingers:
That's the point. AdAway can not "touch" the host file if it isn't rooted, but the problem begun when I uninstalled it. I didn't install or uninstall another app.

It's pretty wierd and I dont' t know what to do, and don't want to do a factory reset either.

I think this is a message from God "come on, dude; it's time to buy a new phone".
[Android Apps and Games] Lorog:
Hi, I have latest v5.5.1 and I got an issue with the "DNS logs" view, it's always empty.

What am I doing wrong?

Does the fact that I use a Private DNS server have to do with it?

Thanks

edit:

ok never mind, I've just found this!
[Android Apps and Games] horsefingers:
Fixed! I just connected to another wifi network, then connected to my main one, and the phone connects to internet perfectly now.

But now I'm having an issue on a 4.4 rooted Android that I use for testing. AdAway stopped blocking ads here suddenly.

On the main screen it shows this:

View attachment 5287353

In the hosts sources section shows "Unknown update status" on the 3 default sources, even if I check for updates:

View attachment 5287365

And finally, this is what my hosts file shows.

Seems like AdAway can modify it, but it just adds comment lines, and that's why the ads are not blocked:

View attachment 5287367

Surelly the solution should be something easy to do.

I tried to change network, reinstall AdAway, enabling/disabling ad-blocking, rebooting, etc, but couldn't make it works again.

Any suggestion?

Android 4.4 (rooted)

AdAway 4.3.6
[Android Apps and Games] ipdev:
Had a little time to clean flash a device and do a quick test.

I got the same results as you.

Did not have time to test further.

I have not used system-root in quite awhile.

Post 13,537 - Link

Quick testing was done on Nexus 7 (2013) WiFi.

Files used:

razor-ktu84p-factory-2482a7d5.zip

(Google Factory Rom) SDK19 (Android 4.4.4)​

twrp-3.5.2_9-0-flo_ipdev.img

SR5-SuperSU-v2.82-SR5-20171001224502.zip

AdAway-4.3.6-200726.apk

Will test a bit more tomorrow night and see what I need to do to get it working.

Cheers. :cowboy:
[Android Apps and Games] Avishay.a:
Hi,

I have OnePlus 6T, until recently with an old Android version and an old Adaway version, and ad-blocking worked perfect.

Yesterday I did a Factory Reset and updated the phone to the latest version which is OxygenOS 10.3.9 - Android 10.

I've installed TWRP and Magisk , so the phone is rooted.

After installing Adaway 5.5.1 ad-blocking does not work at all, in any app nor chrome.

Someone have any idea or clue why?

Thanks!
[Android Apps and Games] Nergal di Cuthah:
Did you remember to install the systemless hosts addon in magisk
[Android Apps and Games] Avishay.a:
I didn't know I should, but I've installed now, and it doesn't seem to help.

Any other step I should do?
[Android Apps and Games] Lughnasadh:
Did you reboot afterwards?
[Android Apps and Games] zgfg:
You must reboot afterwards and better then reset AdAway and reboot again
[Android Apps and Games] Avishay.a:
Finally I found the missing setting.

Except from installing Systemless Hosts, I had to install also 'self-signed certificate'.

In case someone will stumble upon the same problem.

Btw, was it written somewhere and I missed it that I have to install these 2 things?
[Android Apps and Games] zgfg:
Certificate is not related to systemless hosts but needed for internal Web server

However, Amazon, XDA and probably some other apps/sites have troubles with that, hence suggesting you to go to Preferences, Root based AdBlocker and disable the Web server (then you can also remove the celf-signed certificate)
[Android Apps and Games] Lagarde:
Having some weird issues after switching over to the VPN version (need to be unrooted for the moment) and am hoping someone can help. Did some searches and didn't see this specific problem mentioned, so I apologize if it's been asked already.

Anyway, what's happening is that the first time my phone goes to sleep after a reboot, AdAway stays in "Ad-blocker VPN starting" mode forever. Even if I go into the app and try to pause/start it, nothing happens. It's like all the buttons are dead. If I reboot or force-close the app, it works on the next try...until the phone goes to deep sleep. AdAway is excluded from battery optimization already, so that's not it.

Anyone run into this and know how to fix (without switching to the root version)?
[Android Apps and Games] zgfg:
Check on AdAway Github, there was one or two VPN starting issues reported.

Actually, I reported one a year or so ago but the app was not frozen, just stayed forever in VPN starting and on switching the bearer VPN sometimes stopped working

However,.I have no more the non-root VPN Installation, hence don't know is it the case anymore

Btw, if freezing when going to sleep, you can try by disabling Battery optimization
[Android Apps and Games] Lagarde:
Battery optimization is already disabled. I'll check github and see if there's any updates to those issues, thanks.
[Android Apps and Games] krilok:
Hello...

I just updated my Poco F1 to the latest Resurrection Remix rom (Android 10), and Adaway seems to have stopped blocking ads. It was working well until this upgrade, but even though systemless hosts addon in magisk is active, and Adaway confirms hosts are updated and blocking is done correctly, I still get ads on apps I didn't get them on before.

I've tried everything I could think of; reinstalling Adaway (latest version and even some older ones I had access to), unistalled Magisk completely and installed it again, tried with both web server on and also off, but blocking doesn't seem to work at all. As a last resort, I've even deleted the default hosts file and allowed Adaway to create a new one, but again, same result.

I've been using Adaway for several years on all my devices, and it's the first time I come across this issue, so, any ideas what the problem could be? Any help would be much appreciated... Thanks.
[Android Apps and Games] ipdev:
The VPN mode has some issues. ;)

I do not get stuck in VPN Starting.

I still have to toggle the VPN off and on to get it work when it does not start/switch networks properly.

You could try turning off automatic updates and see if that helps the unresponsive UI or getting stuck VPN Starting.

Preferences -> Automatic updates

Turn off Check for update at startup and Periodically check for update under Application updates and Hosts updates​

Note:

The app UI is unresponsive when actively checking for updates.

I check for hosts updates to test if the VPN is running correctly.

If the VPN is broken, it will get stuck checking for updates.

I have to close and reopen the app to toggle the VPN off and on.​

Cheers. :cowboy:
[Android Apps and Games] PerfectSlayer:
Hi all,

I'm still having a break but I put my hands in the code base from times to times to think about anything else than work.

So no big update here. I mainly rework the DNS log feature that needed love for a long time.

It could now be easily accessed from home screen and clearly states usage and limitation. I hope users will find it easier to use.

About VPN issues, the last updates bring a fix with IPv6 and a watchdog to enable in settings in order to mitigate VPN disconnections. It is quite hard to fix as I can't really reproduce and I don't get many logcats around here. But don't hesitate to discuss all together your problem here, a pattern might emerge.

Take care

Changelog:

Improve navigation by moving DNS logs to home screen

Improve DNS logs usage by explaining usage and limitation

Update dependencies

Update translations

Download:

AdAway 5.6.0