yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] kos25k:
Hello dudes and happy new year.

Can someone please tell me what to whitelist on adaway,so to use XDA app? I tryied many times with dns recording method,added these hosts to whitelist,rebooted but same happens.View attachment 5178091
[Android Apps and Games] zgfg:
I don't have anything whitelisted and the app works.

I think you need to disable Web server in the settings (for Amazon, too - too much troubles with that option, IMO would be better to be disabled by default)
[Android Apps and Games] kos25k:
Thanks bro,this actually worked,i now reply you within xda app for 1st time hahaha..Maybe this option was responsible long time now on chrome saying something about safety certifications and monitoring issues...Now is ok thanks again!!!
[Android Apps and Games] XtraWater:
Versions 5.1 has an update. But update couldn't install. Do we have uninstall current version first or is this a bug?
[Android Apps and Games] zgfg:
Please scroll back, it was discussed two or three days ago - problem for those with F-Droid version
[Android Apps and Games] paul c:
uninstall the f-droid version then install the one downloded from the first post
[Android Apps and Games] XtraWater:
Thanks that worked. Indeed I had previous Verdun installed from f-droid
[Android Apps and Games] mlush:
Yes,

Disable WebServer option.
[Android Apps and Games] p0izn:
And I will answer: https://schakal.ru/hosts/hosts.txt - about 80k of records. Works fine, using it as my single source
[Android Apps and Games] PerfectSlayer:
Hi all,

You were right, there was an issue with the built-in updater that fails to detect the F-Droid build variant.

There is a detailed comment here about this issue. I am mad at me to have spend so many hours to find a so silly bug... But at least, it gave me the opportunity to play with frida, a small touch of python and ssh port forwarding for adb server 😅

And as usual, F-Droid did not seems to build the latest versions... I need to find why but I don't think I will find the time until next week.

Changelog:

Fix F-Droid store detection

Thanks:

Special thanks to TheLonelyGhost, bdtipsntricks, faraz-b bege10, Nathan-Nesbitt, HatMan22, User_99 and gallegonovato for theirs helpful bug reports.

Download:

AdAway 5.2.1
[Android Apps and Games] Anatart:
Thanks for the great app. Does blocking still work while connected to a VPN?

Also Test web server has "Running and certificate installed" however when I tap on it and open firefox, I get "secure connection failed". Is it working correctly? I had reinstalled Adwaway but not the certificate.
[Android Apps and Games] zgfg:
Phone can have only one VPN at a time. If you use non-root VPN, and if you need VPN for some apps - whitelist those apps from AdAway settings

Generally there are problems (XDA app, Amazon, etc) with Web server - better disable if you don't really need that
[Android Apps and Games] McFlypants:
Sorry to go back to 2016 to quote you, but that helped me!!
[Android Apps and Games] Anatart:
So root based blocking means the host file is edited, and that means even when connected to VPN the blocking should be applied? I'm just unsure because I'm unsure if host file is even considered when all connections are set to go through the VPN.

Out of curiosity what is the point of the local server anyway, so that a request gets a response instead of no response when the host entry is set to resolve to 127.0.0.1?
[Android Apps and Games] nadeemakhtar1994:
1. Even after updating hosts everyday , it shows that 1 outdated source on homepage

2. Updating hosts more than once shows 'failed to download host sources'
[Android Apps and Games] zgfg:
Open the Hosts Sources. For each hosts source there must be URI and then info for how long is it up-to-date and how many hosts are blocked by that source

E.g, https://adaway.org/hosts.txt

Up-to-date for 9 days

9k hosts

If the number of hosts is missing, it means that AdAway cannot reach that URI

Tap on it, copy the URI for that hosts and try to open the URI in browser.

If the browser cannot open (error 401, 404, "This domain is on sale" or so), it means that URI is wrong, or (more likely) that the hosts source is no more on that address (moved to the new URI, or no more maintained)

All URIs must be https, AdAway does no more support (unsecure) http URIs
[Android Apps and Games] DiamondJohn:
One question that has always been in the back of my mind, is there anyway to check how many UNIQUE hosts are being sourced from a host source? i.e. how many hosts within that specific file, are not being blocked by another file.
[Android Apps and Games] zgfg:
If you sum up all those numbers, it exceeds the total number of Blocked hosts

I don't know if the smaller numbers (you are looking for) are listed in the AdAway log.

But if the same domain is blocked by several of your hosts sources, then to which of them to count that domain would depend on the timeline of updating the corresponding hosts sources
[Android Apps and Games] DiamondJohn:
No, I am not asking for which are duplicated, but the complete opposite. i.e. which are NOT contained in any other file/source. There would be no confusion of what is not contained in any other file. I am not saying it would be simple (and hence it remained as a question I never asked nor a feature I even hinted at), but definitely possible and logical.
[Android Apps and Games] zgfg:
Maybe the dev can say is it logged somewhere or how (but I don't know of what use would those numbers be for the AdAway app to take care of them)

Btw, I don't know something else - but I suppose it works. Suppose that the hostA was listed only in sourceA, hence AdAway added hostA to the hosts file.

Later, when sourceA (only that source) is updated and if it no more lists the hostA, does AdAway recognizes (by use of some flags in its DB or so) that hostA must be now removed from the hosts file (since at that time it does not re-read all other sources)

From such tags AdAway could count then also the 'unique' numbers you are looking for
[Android Apps and Games] PRL77:
It worked fine until today when I was asked to reboot into safe mode for some troubleshooting and that broke a lot of stuff, including settings. Now I get this:

View attachment 5182827

It was off so I turned it on and rebooted. But still no go.

View attachment 5182819

What else could it be?
[Android Apps and Games] andy356:
Well, it's probably because my hosts file is ~60 MB. But that's the difference I'm seeing. With version 4, this didn't result in a humongous app data folder. This is only the case with version 5.

@PerfectSlayer ^
[Android Apps and Games] zgfg:
As always in similar cases for any app:

- Settings, Apps, AdAway, Wipe cache and try again

- Or Wipe Data and set-up the root method, hosts sources and go again
[Android Apps and Games] maor23:
Hey there, i need some help.

I downloaded it and gave root access, but forgot that i have a game i need the ads there. I tried to uninstall it and reinstall the game but it can't find any ads now. How can i resolve it please?
[Android Apps and Games] Actarus0013:
Hello,

Is AdAway compatible with the latest version of Miui under android 11?

Thank you in advance.
[Android Apps and Games] zgfg:
Using with Xiaomi.eu 21..6, no problem, why
[Android Apps and Games] PRL77:
I should have included in my post that I already uninstalled and reinstalled AdAway. I imagine this would Wipe Cache and Wipe Data? I'm not sure what you mean by "set up the root method, hosts sources". I tried disabling and removing the Systemless Hosts module in Magisk.
[Android Apps and Games] ipdev:
Remember to reboot after enabling the systemless hosts module.

Make sure AdAway is granted root access in Magisk.

It is possible your Magisk install got borked and this is a symptom of Magisk, not a problem with AdAway.

Cheers. :cowboy:
[Android Apps and Games] PRL77:
I did reboot after systemless and reinstalled AdAway, it asked for root permissions, granted, double checked it was checked as such in the list of apps granted. Still the same error, though. Other apps talks about have root no problem. The FAQ says to:

Try changing the target hosts file in preferences from /

data/data/hostS to /data/hosts or /system/etc/

hosts and apply AdAway again.
[Android Apps and Games] ipdev:
Magisk can appear to be working and still be broken.

Any time this happened to me, AdAway was the first symptom. Other root apps seemed to be working fine.

Did you recently update magisk or a module?

Cheer. :cowboy:
[Android Apps and Games] zgfg:
After rebooting to Safe mode all modules are automatically disabled!

Go to Magisk Manager Settings and enable again Systemless hosts (enable also Magisk hide - it also gets disabled by booting to Safe mode), then reboot

That is the new Magisk functionality, to help users ehen they get bootloop because of an errant module - to recover, boot to Safe mode, then boot normally, modules will be disabled and you can manage them from the Magisk Manager

From Adaway 5.x, options to change the hosts file path are no more available - functionality is covered by Magisk symlinks and Systemless hosts

(Also, there is no more Systemless hosts in option AdAway itself - use the same from Magisk.

Things are cleaned to avoid clashes between the AdAway and Magisk)
[Android Apps and Games] PRL77:
I did not, but the safe mode boot broke and changed a lot of stuff. It broke all my widgets and changed default apps for everything. So perhaps it broke Magisk, too, along with disabling the systemless module.
[Android Apps and Games] zgfg:
See my post, right above yours

#15735
[Android Apps and Games] PRL77:
I enabled both systemless and hide, and rebooted. Same error in AdAway.
[Android Apps and Games] celestialspring:
Doesn't go past the first screen where you choose between vpn or root.

My phone is not rooted.
[Android Apps and Games] nadeemakhtar1994:
The latest adaway beta versions have some serious problem. I am currently on 5.2.1.

1. Always shows 1 source outdated even though I update everyday.

2. On updating more than once getting error of failed to establish connection.

View attachment 5183953View attachment 5183955View attachment 5183957
[Android Apps and Games] PoedelPCS:
long not used app, but as I had to root my XiA0Mi Mi9 now I gave it another try - yes I know you can use it without root. I spent 2 hours now to get the AMAZ0N app working without success. I searched this thread for all posts with amazon in it and tried everything wiht rebooting the phone after setting the new host file. Nothing worked.

If I was the dev and read that many problems concerning the amazon app I would adjust the lists that it works out of the box - no offence! This is great work. It's just my approach.

Stay healthy!
[Android Apps and Games] zgfg:
Did you disable Web server in AdAway and do you have redirection to 0.0.0.0 (not to 127.0.0.1)
[Android Apps and Games] x.trinity:
Is there any way to gain all functional AdAway on non rooted device? Yes,it can be installed but when I perform an update, it reports that a system host file can't be modified, which is understandable, and I can't run AdAway to connect to the DNS server.
[Android Apps and Games] zgfg:
For non-root, you must use VPN method. Uninstall and configure again (you must use 5.x, not the old v4), on first screen choose VPN
[Android Apps and Games] x.trinity:
It's ver.5.2.1 which is quite understandable.

There is no VPN on first screen..
[Android Apps and Games] zgfg:
When you are installing first time, you have to choose

Uninstall or go to Settings/Apps, Clear Data, and configure again

If you don't believe, read Changelog for 5.x, or just read this thread back - it's been discusding here about the VPN for months
[Android Apps and Games] DiamondJohn:
Just for future reference. I just got anew phone, and did not root it day one, but did install adaway, so went with VPN mode. So, does that mean that oif I do decide to flip over to Magisk hosts, I would need to re-install the app also?
[Android Apps and Games] zgfg:
As I said, Clear Data for the app in Settings, open the app and you will go again through the beginning, choosing Hosts or VPN

Before you do that, you can Backup your Black and White list (Preferences Backup/Restore), hence you can keep them even when you swithch from VPN to Hosts or vice versa
[Android Apps and Games] x.trinity:
Oh yes, thanks...but at first launch there werent such offerings like VPN or Hosts..but after deleting cache/data Ive got everything working..
[Android Apps and Games] thomas140:
I cannot use the XDA Developers app to view thread at all when turn on Adaway. It comes up with error.

Error Loading Page

Domain: Undefined

Error code: 3

Description: SSL error: The certificate authority is not trusted.
[Android Apps and Games] SubwayJrd:
Disable the Webserver in AdAway, and do a search next time, been mentioned even a few posts above your own.
[Android Apps and Games] thomas140:
Ya, I know that. If I pause Adaway, then no issue with XDA. But is there any way to unblock it?
[Android Apps and Games] SubwayJrd:
Nope, you didn't read what I said. There is NO reason to disable Adaway, disable the WEB SERVER inside Adaway.
[Android Apps and Games] thomas140:
Ahh, now i got it. It is under setting- Root based ad blocker, untick the web server. Thanks again. I misunderstood it as the pause button previously. Thanks again.
[Android Apps and Games] gaww:
I got the same thing, but only after changing it from VPN to hosts. I changed it back and no trouble.

Should hosts work ok with the above setting?
[Android Apps and Games] gaww:
Nevermind - just did web server off - works ok.
[Android Apps and Games] PieceKeepr:
I have tried to figure this out for a few days now and haven't succeeded. I have Express VPN running on my PC, phone and tablet but the tablet is not rooted. I am using AdAway in VPN mode on the tablet and searching this thread seems to indicate that the two should work OK together, but they don't.

I have set AdAway to ignore Express VPN and have set Express VPN to ignore AdAway but I can only get one to run at a time. If Express VPN is active it shuts AdAway down and if I activate AdAway it disconnects Express VPN. Is there a setting that I am missing or am I mistaken about beng able to use both at the same time? The tablet is a Samsung Galaxy Tab A (SM-T510NZKGXAR) if it matters.
[Android Apps and Games] m0han:
a quick search shows posts by others:

... wouldn't allow me to any longer use my OpenVPN: https://xdaforums.com/t/app-root-nonroot-official-adaway-v5-2-1.2190753/post-83943087

Android allows only one active: https://xdaforums.com/t/app-root-nonroot-official-adaway-v5-2-1.2190753/post-83961339
[Android Apps and Games] PieceKeepr:
That I did not know. Thanks.
[Android Apps and Games] ttesty:
@PerfectSlayer @Vankog:

Can you add the CA cert member in:

static void tls_fn(struct mg_connection *c, int ev, void *ev_data, void *fn_data) {

if (ev == MG_EV_ACCEPT) {

struct settings *s = (struct settings *) fn_data;

struct mg_tls_opts tls_opts = {

.cert = s->ssl_cert,

.certkey= s->ssl_key

?

Getting this now:

=============================================

depth=0 CN = localhost.mydomain.com

verify error:num=20:unable to get local issuer certificate

verify return:1

depth=0 CN = localhost.mydomain.com

verify error:num=21:unable to verify the first certificate

verify return:1

depth=0 CN = localhost.mydomain.com

verify return:1

Verification error: unable to verify the first certificate

=============================================

I overwrite localhost.crt and localhost.key with a CA signed certificate, which works, but can't verify its trust path because you're not accepting it. Maybe have a ca.crt option.. doesn't accept the bundled ca in localhost.crt.

javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
[Android Apps and Games] PerfectSlayer:
Could you provide some logcats and screen captures of the issue?

I don't have a device to reproduce.

What about registering your CA in Android Security settings? Does it solve the issue?

Because I am not sure there is a lot of users which will use custom certificate + CA option..!
[Android Apps and Games] appye:
Hello, is Fdroid expected to catch up on it's own eventually or should I be uninstalling 5.2.1 directly from developer? I don't mind being a few days or even weeks behind, but I don't want it to lag by months...
[Android Apps and Games] celestialspring:
I was able to resolve the issue by clearing app cache immediately after install. I had to force kill the app.

My apologies, in my haste i mentioned that I wasn't able to install. The app was installed but would not go past the first screen where one chooses the mode of operation.
[Android Apps and Games] ttesty:
No luck... The CA's own cert was imported into the OS, as was the App User Certificate (also processed by the CA with the locally generated private key combined into a P12 file). Both of those certs appeared in Android settings. Then restarted libwebserver_exec.so. The problem is that the Mongoose web server itself isn't passing the full certificate chain..... because of the missing CA field....

openssl s_client -debug -connect localhost.mydomain.com:443 -servername localhost.mydomain.com

Certificate chain

0 s:CN = localhost.mydomain.com

i:C = GB, ST = Greater Manchester, L = Salford, O = Sectigo Limited, CN = Sectigo RSA Domain Validation Secure Server CA

That's all that's in the chain..

---

No client certificate CA names sent

Peer signing digest: SHA256

Peer signature type: RSA-PSS

Server Temp Key: X25519, 253 bits

---

SSL handshake has read 2061 bytes and written 406 bytes

Verification error: unable to verify the first certificate

---

New, TLSv1.3, Cipher is TLS_AES_256_GCM_SHA384

Server public key is 2048 bit

Secure Renegotiation IS NOT supported

Compression: NONE

Expansion: NONE

No ALPN negotiated

Early data was not sent

Verify return code: 21 (unable to verify the first certificate)

================================================================================

Maybe a quick change you could make by adding a parameter for a CA file or having a file like localhost-ca.crt checked and using it if present?

I'm seeing the certificate chain in the Bromite web browser (https://localhost.mydomain.com) - it lists 3 items for CA trust path - localhost.mydomain.com, Sectigo RSA, USERTrust RSA. Maybe Bromite isn't asking the Mongoose web server for the path?
[Android Apps and Games] ttesty:
@PerfectSlayer

From the Mongoose Web Server, I'm getting the following as expected (CA cert unknown). It would be helpful to set the listening host - like localhost.mydomain.com, but probably not relevant here. Some apps make a fuss about trust paths - if they aren't received.

2021-01-17 18:50:36 I mongoose.c:2633:mg_listen 0x3 accepting on http://localhost:80

2021-01-17 18:50:36 I mongoose.c:2633:mg_listen 0x5 accepting on https://localhost:443

2802144368:error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown:../../src/ssl/record/rec_layer_s3.c:1544:SSL alert number 46

2021-01-17 18:50:39 E mongoose.c:353:mg_error 0x6 tls hs: rc -1, err 6

2802144368:error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown:../../src/ssl/record/rec_layer_s3.c:1544:SSL alert number 46

2021-01-17 18:50:44 E mongoose.c:353:mg_error 0x6 tls hs: rc -1, err 6

2802144368:error:14094416:SSL routines:ssl3_read_bytes:sslv3 alert certificate unknown:../../src/ssl/record/rec_layer_s3.c:1544:SSL alert number 46
[Android Apps and Games] ttesty:
@PerfectSlayer

What seems to have fixed this a bit is making the user certificate (imported CA) a system certificate.

i.e. I used a magisk module to move/setup user certificates into /system/etc/security/cacerts.

I used the bundle CA CRT that I imported and things improved. Tried before and after using curl:

===============================

* successfully set certificate verify locations:

* CAfile: none

CApath: /system/etc/security/cacerts

* TLSv1.2 (OUT), TLS handshake, Client hello (1):

* TLSv1.2 (IN), TLS handshake, Server hello (2):

* TLSv1.2 (IN), TLS handshake, Certificate (11):

* TLSv1.2 (IN), TLS handshake, Server key exchange (12):

* TLSv1.2 (IN), TLS handshake, Server finished (14):

* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):

* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):

* TLSv1.2 (OUT), TLS handshake, Finished (20):

* TLSv1.2 (IN), TLS change cipher, Change cipher spec (1):

* TLSv1.2 (IN), TLS handshake, Finished (20):

* SSL connection using TLSv1.2 / ECDHE-RSA-CHACHA20-POLY1305

* ALPN, server did not agree to a protocol

* Server certificate:

* subject: CN=localhost.mydomain.com

* start date: (removed)

* expire date: (removed)

* subjectAltName: host "localhost.mydomain.com" matched cert's "localhost.mydomain.com"

* issuer: C=GB; ST=Greater Manchester; L=Salford; O=Sectigo Limited; CN=Sectigo RSA Domain Validation Secure Server CA

* SSL certificate verify ok.

===============================

Oddly, openssl still complains as before:

openssl s_client -debug -connect localhost.mydomain.com:443 -servername localhost.mydomain.com

Verify return code: 21 (unable to verify the first certificate)
[Android Apps and Games] Ravuri yaswanth:
Amazon app was not working with adaway, Can you specify which links i have to keep in wishlist
[Android Apps and Games] zgfg:
No links. Search, read back - every few days asked the same and answered: Disable Web server option
[Android Apps and Games] SebaS-DG:
Hi!, I choosed root metod in miui 12 EU and at the second step show me this:

Syncing

Failed to sync:

Filed to install new host file.

and something I cant read
[Android Apps and Games] Nergal di Cuthah:
Did you install magic module "systemless hosts" and reboot before trying to update?
[Android Apps and Games] SebaS-DG:
nop, should I try it?

Edit: worked, thanks!
[Android Apps and Games] Nergal di Cuthah:
Yes you need that in order to do rooted adaway
[Android Apps and Games] zgfg:
Of course - you must enable in Magisk Manager and reboot

On the modern phones system is read-only and AdAway cannot write to the hosts file - yozu must use systemless hosts
[Android Apps and Games] PerfectSlayer:
Hi all,

I successfully test the new hosts source parser and it is promising.

But as usual, I will hand it over to you all and you will find a way to break it 😅

I also bundle few bug fixes in this new version, especially one crash at startup if you remove the SAF (storage) permission when you use a hosts file as source. Enjoy!

P.S.: Yes, the two last versions are still missing on F-Droid. There is nothing I can do. If you want more details, you can check this issue. Keep in mind you will need to manually install a 5.2.1+ version (once available) in order to fix its built-in updater notification if you use the F-Droid builds.

Changelog:

Add new unique source parser with parallel processing

Add an option to disable app update check at startup

Fix crash with source file when SAF permission is removed

Fix metered status vpn on Android 11

Thanks:

Special thanks to andy356, fusionneur and sr1canskhsia for their bug reports.

Download:

AdAway 5.3.0
[Android Apps and Games] BrimoFan123:
I have Adaway installed from F-Droid repository.

Main screen shows Update Available but installation is failing:

View attachment 5193911

What is wrong here?
[Android Apps and Games] zgfg:
Read the post right above yours
[Android Apps and Games] BrimoFan123:
Interesting that on F-Droid repository it is still this "broken" 5.1 version available.

Downloaded 5.3.0 from https://github.com/AdAway/AdAway and installed.

Tahnks a lot.