yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] ScOULaris:
Alright, so I've tested all the combinations and it seems that enabling across-apps filtering is what is causing apps like Gmail and Facebook to lose connection after being idle for a while. Beta vs Stable makes no difference, nor does DNS Filtering on/off. When I leave filtering on only for browsers, the other apps have no problem keeping their background data active.

If there was some way to selectively turn off ad filtering on a per-app basis through the Firewall UI this could be easily remedied. Sorry for not providing any logs, but hopefully this post proves useful.

EDIT: Ugh, nevermind. Facebook just dropped it's connection again even without filtering enabled across all apps. I'm starting to think this is just a problem with the Facebook app on my phone.
[Android Apps and Games] ScOULaris:
Alright, just forget all of my ramblings. It looks like all of these issues are not related to Adguard at all. All signs point to either Doze or Google Sync-related issues with 6.0.1 on certain devices (like my 6P) in recent days.

https://www.reddit.com/r/Nexus6P/comments/3ybl8f/gmail_not_notifying_me_of_new_emails/

Please disregard my previous posts on the matter.
[Android Apps and Games] PaulQ602:
I hope this is okay to ask here... Reading through this thread, seems like there are problems with AdGuard and Marshmallow, particularly Doze and maintaining connections. Is it possible to run AdGuard so it is only blocking ads in Chrome browser and not involved in any other part of the phone's operation? I am wondering if this will help minimize the issues that are happening right now.

I have a 6P on 6.0.1, not rooted.

Don't get me wrong - sounds like these are really responsive developers who will get the issues worked out. I know Marshmallow is relatively new so it probably takes some time.

Thanks for your help!
[Android Apps and Games] 0.0:
Did you change the setting to not optimize Adguard? By changing the optimization setting, Adguard seemed to work better

To change, go to Settings > Battery > 3-dot menu > Battery optimization. Using the dropdown menu, choose "All apps" and find and select Adguard. Change to "Not optimized" option from dropdown menu
[Android Apps and Games] ScOULaris:
I don't think that the recent issues with Gmail ceasing notifications and Facebook losing connection are related to Adguard. I thought they were at first, but after further research I found that all signs point to this being an issue with those apps in particular on 6.0.1 within the last few days. For any apps that are losing their background connection over time, I recommend turning off battery optimization for those particular apps for the time being.
[Android Apps and Games] avatar_adg:
It may go down because of the TCP protocol implementation. Yet 27 Mbps is really small, in my case the speed is limited by ~100-120 Mbsp. You may want to try the latest beta (2.1.350RC), the situation is better there. But anyway we won't make 290 Mbsp right now until this issue is done: https://github.com/AdguardTeam/AdguardForAndroid/issues/228.

---------- Post added at 12:00 PM ---------- Previous post was at 11:54 AM ----------

Hm, seems we have a little Nexus 6P users club here. I don't have any issue with Gmail and Facebook, but it seems that I have a similar issue with Pushbullet.

---------- Post added at 12:10 PM ---------- Previous post was at 12:00 PM ----------

First of all, I am not sure the Doze issues [MENTION=4570464]ScOULaris[/MENTION] has are related to Adguard. I've tested it on mine 6P (6.0.1, not rooted) and Doze works good.

Yet you can make Adguard working with Chrome only and do not interfere with any other app at all. It would be rather hard though.

1. Go to "Settings" - "Advanced" - "Low Level"

2. Find "pref.net.exclusions" there

3. This setting value is a list of package names, fully excluded from filtering. In case of Android 5.0+ excluding means that app's traffic won't be routed through VPN so Adguard will not interfere with these apps at all.

4. Add all your apps one by one to that list.

---------- Post added at 12:14 PM ---------- Previous post was at 12:10 PM ----------

This "exclamation mark" issue seems to be something new, different from what [MENTION=4570464]ScOULaris[/MENTION] has. I'll appreciate if you send us the logs and post the ticket ID here.

---------- Post added at 12:16 PM ---------- Previous post was at 12:14 PM ----------

Do you mean the button color does goes from green to red and back?
[Android Apps and Games] ScOULaris:
Yeah don't worry about any of the connection issues I was having. They have nothing to do with Adguard. Check out posts on r/Nexus6P from the last few days and you'll see that it's most likely an issue with apps not reinstating their background data after coming out of Doze in 6.0.1 on certain devices. Sorry for all the confusion caused by my previous posts.

As for disabling filtering for individual apps with the Firewall UI, you're saying that the Filtering icon should toggle to red when disabled? That might be the issue... I'm slightly red/green colorblind! To my eyes the toggle isn't changing at all when I tap on it.
[Android Apps and Games] avatar_adg:
Oh, that explains everything.

We have a feature request to make an alternate color scheme for users with color blindness. I've added a comment about red/green blindness there:

https://github.com/AdguardTeam/AdguardForAndroid/issues/151
[Android Apps and Games] Koboldchen:
It's hard to reproduce this issue. Sometimes my phone totally loses Internet connection, sometimes Internet resumes a few seconds after screen turning on. But always the exclamation mark is shown at the network icons (for the few seconds or always).

Probably Greenifys its "aggressive doze" causes the connection lost instead of Adguard. I will also have a look on this.
[Android Apps and Games] avatar_adg:
One more question: which version of Adguard do you use? And if it is a stable version - do you use "filter dns requests" feature?
[Android Apps and Games] Koboldchen:
I use the latest beta version, 2.1.350. I'm on local-proxy-mode, so no dns-filtering.
[Android Apps and Games] avatar_adg:
The local proxy with manual setup right? Got it. Then the only way to understand what's wrong is to analyze the logs.
[Android Apps and Games] avatar_adg:
Release candidate #3: version 2.1.356

Hello dear xda users! We've just released then next beta version:

https://github.com/AdguardTeam/AdguardForAndroid/releases/tag/v2.1.356

This version is a third release candidate and it is very likely that this version will become the next release. But I am afraid of making it a final version right now, as we have very long new year vacations.

Release notes (without changes from the previous beta):

[Fixed] Critical error caused by slow write operations [url=https://github.com/AdguardTeam/AdguardForAndroid/issues/238]#238[/url]
[Fixed] Random timeout error while downloading large files: [url=https://github.com/AdguardTeam/AdguardForAndroid/issues/255]#255[/url]
[Fixed] Adguard breaks WebSocket protocol: [url=https://github.com/AdguardTeam/AdguardForAndroid/issues/248]#248[/url]
[Fixed] Wildcard's "*" character does not match a new line: [url=https://github.com/AdguardTeam/AdguardForAndroid/issues/253]#253[/url]

Apk is available here in Downloads section: http://xdaforums.com/devdb/project/dl/?id=15937.

As always, we are looking for beta testers. Beta testers get access to all premium features in exchange for their feedback. Click

here

to learn more about our beta testing program.
[Android Apps and Games] ScOULaris:
Sweet. Gonna update now. :good:

Also, disabling Battery Optimization for Adguard has fixed my issue with Facebook intermittently losing its data connection when on cellular data, so it looks like it was putting Adguard on standby because it saw it as an app that wasn't being launched frequently. At least that's my current understanding of how Battery Optimization works on a per-app basis in Marshmallow.

I'm gonna keep an eye on it, though. Seems like my battery is draining a bit faster now while idling than it did with Battery Optimization enabled for Adguard, but it could be my imagination.
[Android Apps and Games] avatar_adg:
Nice, thank you! I've informed our support service that turning off battery optimization may help in case of the random connection losses in Marshmallow. Also I don't yet understand why does it help. According to the documentation Adguard should not be determined as idle:

The third condition applies to Adguard as it generates a permanent notification.

Also please keep in mind, that the battery saver issue is not yet fixed:

https://github.com/AdguardTeam/AdguardForAndroid/issues/247
[Android Apps and Games] ScOULaris:
Yeah, I'm not sure why it's getting suspended, but I'm pretty confident in saying that it is. I've been running it with Battery Optimization off all day today, and Facebook connects every time now. Before I switched it off, it was very easy to reproduce the connection loss when using mobile data.
[Android Apps and Games] avatar_adg:
I've got an idea why does that happen:

https://github.com/AdguardTeam/AdguardForAndroid/issues/256

There're lots of *possible* and *maybe* in the description, but it's better than nothing:)
[Android Apps and Games] EQ2000:
Would be nice if we could disable vibration for the notification if we temporarly want to allow otherwise blocked app.
[Android Apps and Games] avatar_adg:
We have a similar request to make notifications soundless:

https://github.com/AdguardTeam/AdguardForAndroid/issues/205

I've added "vibrationless" there too, thank you!
[Android Apps and Games] jondy:
Just wondering if I can continue beta test with my beta key. Recently upgraded my LG G3 to Marshmallow and I can't use they key from LP. Thanks :))
[Android Apps and Games] avatar_adg:
Of course you can. Seems that new firmware appears for us a new device, and the key is now bound to the "old" one. You should go to AG personal account and unbind it: https://adguard.com/en/login.html

---------- Post added at 06:06 PM ---------- Previous post was at 06:05 PM ----------

Just keep in mind that in any case you should change update channel to "Beta" in the app settings.
[Android Apps and Games] ScOULaris:
The latest beta has been working great for me so far with Battery Optimization turned off. Blocking with DNS filtering turned on seems faster in this version than it did in the stable build, so I'm guessing the improvements you made with that are paying off.
[Android Apps and Games] avatar_adg:
Heh, the difference with DNS filtering in beta and stable is that now it works:) (in stable it worked for Wi-Fi only).
[Android Apps and Games] ScOULaris:
That would do it, haha. I'm on mobile data throughout most of the day at work.
[Android Apps and Games] ScOULaris:
Well... darn. Facebook is suddenly losing connection again when on mobile data even with Battery Optimization turned off for Adguard. I've found one post from a month ago about people having this issue while on mobile data, so it might not even be related to Adguard. I dunno. There's nothing left for me to test, so I'll have to just live with needing to kill the Facebook app whenever it happens. Not a huge deal.

I submitted a bug report through the Facebook app describing the situation.
[Android Apps and Games] avatar_adg:
Could you please send me the current log? I think INFO-level log should be enough at least to understand why Facebook app is not connecting (I bet it is somehow caused by ipv6 availability, but can't say it for sure until I see the log).

You can send it through "app" - "send feedback" and then post here the ticket ID you'll get in an autoreply.

Or you can send the log file to me directly (am at adguard.com). Logs locations are listed here: https://kb.adguard.com/index.php?/K.../collecting-a-full-log-on-adguard-for-android
[Android Apps and Games] ScOULaris:
Just submitted Feedback through the app, but I have yet to receive an autoreply email with a ticket ID.

EDIT: Just got it.

Ticket ID: MLA-829-79789
[Android Apps and Games] avatar_adg:
Thank you! I have an idea about it, could you please check the test build?

Here is a link:

https://static.adguard.com/android/release/adguard_issue256.apk
[Android Apps and Games] ScOULaris:
Running the test build now. Should I turn battery optimization back on for Adguard for this experiment?
[Android Apps and Games] avatar_adg:
If I made the right guess, it does not matter.
[Android Apps and Games] ScOULaris:
Just had a Facebook disconnect on the test build and submitted feedback through Adguard right afterward. I'll edit this post with the ticket ID when it arrives in my email.

Ticket ID: ODB-740-49159
[Android Apps and Games] avatar_adg:
Thank you for the log!

Now the log is clean, no errors there.

Before my change:

Adguard gets the connection from facebook app, checks if endpoint's IP address is reachable (that IP was used previously so it considers that it's reachable immediately) and puts it through the filtering process. While filtering it appears that the IP is not reachable and the timeout exception is written to the log.

After the change:

Adguard now clears reachable endpoints cache on network reconnect. So it checks if IP address is reachable, it appears that it is not, so Adguard does not try to filter the traffic and just bypasses it.

In the end you get the same result, because for some unknown reason, connection to the endpoint facebook app tries to use, always times out.

Two things left to try:

1. Do not restart the facebook app. Just wait a minute and try refreshing the feed again.

What I want to check with this: maybe at that time your mobile connection is not stable. We use a small connection timeout, maybe it is simply not enough?

2. Try reproducing the same error without Adguard.
[Android Apps and Games] ScOULaris:
Alright, I'll try option number 1 the next time I get a disconnect. After that I'll disable Adguard and see if the issue occurs without it. I have a feeling that it might since I've seen a few people complaining about this issue on a random Facebook thread from a month ago. Like I said, it only happens while on mobile data. It never disconnects while on Wi-Fi, Adguard or not.
[Android Apps and Games] ScOULaris:
Alright, just switched from Wi-Fi to mobile data and caused Facebook to disconnect. I waited a few minutes without restarting the app, and it still failed to connect. So then I disabled Adguard without closing the Facebook app, and the connection reestablished itself. So hopefully you can glean something useful from that info.
[Android Apps and Games] starbase64:
I buy a lot of apps, but I'm basically no subscriptions.
[Android Apps and Games] thedicemaster:
if you increase it to 3 years it turns into a lifetime subscription.

no more yearly payments, just 1 payment for 1 device(and the license is transferable to new devices)
[Android Apps and Games] starbase64:
thanks, I'll think about it
[Android Apps and Games] silvertrain78:
Small UI complaint:

I was adding/editing the pref.net.exclusions list, and the highlight field is the same color as the text (green), which makes it look like a solid block. Can the colors be differentiated?

Thanks
[Android Apps and Games] avatar_adg:
You're right, thank you!

Filed a report:

https://github.com/AdguardTeam/AdguardForAndroid/issues/260
[Android Apps and Games] Koboldchen:
Here you go, ticket ID is HWZ-864-68199. Happy new year ;) .
[Android Apps and Games] avatar_adg:
Thank you!:)

I've filed a report on github:

https://github.com/AdguardTeam/AdguardForAndroid/issues/262

What do I see from the log:

16:14:19.753 - Adguard was started

19:44:16.999 - Adguard was still alive, did a background update check

... Something happened, Adguard process was killed

20:00:15.199 - Adguard was started again.

22:20:XX - You've restarted protection a few times

What were you seeing on your side? When network connection was lost?
[Android Apps and Games] exodius48:
[MENTION=6150471]avatar_adg[/MENTION] Hi, can you make Adguard invisible? Because some websites detect Adguard and it won't load. :(

Its very important feature.
[Android Apps and Games] Koboldchen:
It happened tonight again (LNV-620-39563). What do you mean with what am I seeing? I suppose the Internet connection gets lost while the phone is sleeping. Last time I used the phone this night was around 2 am, first time this morning around 11:30 am. After turning it on it shows the exclamation mark in the Wifi-icon.
[Android Apps and Games] shaarky:
Hi, any plans for anti-adblock filter rules? :)

Testing one day so far, but it is really awesome app.

Sent from LG H960 using great, old Tapatalk Pro
[Android Apps and Games] avatar_adg:
There is no "wi-fi is gone" record in the log, so to find the cause I should know when exactly have you seen the issue to find something suspicious in the log.

Thank you! I'll check the log now.

---------- Post added at 04:11 AM ---------- Previous post was at 04:00 AM ----------

@Koboldchen

Repost of my comment from github:

If nothing helps then the only thing left is to analyze system logs. There I'll see why the app was killed:

https://kb.adguard.com/index.php?/K...2/0/how-to-get-logcat-log-from-android-device
[Android Apps and Games] avatar_adg:
[MENTION=5210243]exodius48[/MENTION] [MENTION=717281]shaarky[/MENTION]

Just report such websites here or to github:

https://github.com/AdguardTeam/ExperimentalFilter/issues

We don't have a separate filter for anti-adblock scripts.

Our current policy on this:

1. If the anti-adblock message is annoying or does not allow user to use the website, we fix it in our main filters.

2. If this message is gentle, we add it to experimental filter (that's temporary, see below).

In the nearest future we will introduce a separate "Annoyances" filter which will contain the anti-adblock rules from point 2 along with some web annoyances (like cookie warnings and such).
[Android Apps and Games] exodius48:
So its not posible to make adguard unlock all websites automatically?

Btw, there is best antiadblock script https://github.com/reek/anti-adblock-killer

I'm using it on my windows 7 x86 , would be nice if you can implement it to adguard for android.
[Android Apps and Games] avatar_adg:
It is never done automatically. This is true for any filter, for instance the reek's userscript and filter are composed manually, based on users feedback.

We can't just integrate a third party userscript into Adguard and say that it's our feature.

What we can do is to allow you install any third-party userscript in Adguard, just like it's done in desktop AG. This feature is in our TODO list, but it will take some time to implement this. I can't even give you an ETA on this, maybe the second half of 2016.
[Android Apps and Games] :
Are you planning to add support for external filter subscription and autoupdate feature to Android version Adguard?

Currently it has import feature, but when external filters are updated, I need to remove all of them once, and then import one by one manually.
[Android Apps and Games] kunal1540:
Is this okay for Adguard to use this much data... I mean I am on Wi-Fi so I didn't notice much but what about these stats then??
[Android Apps and Games] KbaB.BroS:
Probably because all your data traffic is being filtered through Adguard, therefore the system thinks Adguard use that much
[Android Apps and Games] kunal1540:
That's what I thought but I would like [MENTION=6150471]avatar_adg[/MENTION] to confirm...
[Android Apps and Games] thedicemaster:
it has come up several times already in this thread.

to get an accurate indication of data usage you need to look at the firewall(it does mix Wi-Fi and mobile unfortunately)

all traffic is going through adguard before leaving/entering your phone, so all data usage and internet-related battery usage gets assigned to adguard.

if you disable adguard and repeat your recent app usage pattern you'll find at least as much data being used by several other apps instead.
[Android Apps and Games] avatar_adg:
This feature is planned on Adguard 3.0:

https://github.com/AdguardTeam/AdguardForAndroid/milestones

---------- Post added at 03:01 AM ---------- Previous post was at 02:59 AM ----------

Yep, that's right, I confirm:

https://kb.adguard.com/index.php?/K...ndroid-battery-and-traffic-consumption-issues
[Android Apps and Games] shaarky:
Is opt in for beta still possible? Wrote to vasily_bagirov PM, but got no reply.

Thank you.

Sent from LG H960 using great, old Tapatalk Pro
[Android Apps and Games] thedicemaster:
he's on vacation for a few more days.

so you can wait until next week, or ask avatar.
[Android Apps and Games] jithgr:
White Banner

Hi I'm from India and has been using Adguard on my moto g3. While using apps like Hindu or Businessline, i'm seeing white blank areas in the bottom app where the ad usually appears. Ads are'nt visible, but white areas. Is there any way to disable this?

Thanks in advance:D
[Android Apps and Games] avatar_adg:
We have ridiculously long new year vacations in Russia, he'll get back to work tomorrow:)

---------- Post added at 07:18 PM ---------- Previous post was at 07:17 PM ----------

In case of apps ads it always depends on the app itself (specifically - on the type of Ads SDK they use).

We should look at these apps specifically. Could you please give me the links to these apps on Google Play?
[Android Apps and Games] jithgr:
https://play.google.com/store/apps/details?id=com.mobstac.thehindu&hl=en&referrer=utm_source%3Dgoogle%26utm_medium%3Dorganic%26utm_term%3Dhindu+app+for+android&pcampaignid=APPU_1_t4SSVqqyK4KJuAT1r7KgBw

Thanks for the reply. Kindly find the above link for Hindu app, where i have white banner at the bottom portion
[Android Apps and Games] avatar_adg:
We'll check it, thank you!

You can watch progress on github:

https://github.com/AdguardTeam/ExperimentalFilter/issues/1266

Or just wait until I return here with the result.
[Android Apps and Games] NahbiCris:
cool

thanks i will try it.
[Android Apps and Games] krishna442:
The best ad filter available.
[Android Apps and Games] ScOULaris:
Got my fingers crossed in hopes that the devs will be able to push out their HTTPS filtering update sometime this month. These constant Clash of Clans ads on YouTube are killing me.
[Android Apps and Games] neo5468:
Is it recommended to turn Adguard off, when you put device to sleep, or can I leave it on the whole time? Is there any battery difference? I use proxy mode.
[Android Apps and Games] catman51:
I never turn it off.
[Android Apps and Games] HorstiG:
[MENTION=6150471]avatar_adg[/MENTION]

OT

Счастливый Новый год
[Android Apps and Games] avatar_adg:
Спасибо!

Btw, you are just in time, today is another weird Russian holiday - Old New Year:)
[Android Apps and Games] FloGatt:
AdGuard does not work on my Samsung Galaxy S6 Edge with latest official Android 5.1.1 when I want to use it as a proxy. I have set the proxy correctly on my WiFi profiles but it does not block ads. Can you give me a hint?
[Android Apps and Games] avatar_adg:
Which browser do you use? Some browsers ignore proxy settings.
[Android Apps and Games] FloGatt:
I tested it with Chrome.
[Android Apps and Games] avatar_adg:
Do you have data compression enabled in Chrome?

Do you use any third party VPN service?

And the last one: on which website have you checked it?
[Android Apps and Games] FloGatt:
No data compression and no third party VPN. I visited e.g. xda-developers.com, cnn.com, distrowatch.com.

---------- Post added at 02:31 PM ---------- Previous post was at 02:22 PM ----------

After turning WiFi off and on again, AdGuard works! :) I am sorry for not trying this earlier. Thank you very much for your support.
[Android Apps and Games] avatar_adg:
Great, thanks) Usually proxy settings are applied without reconnect, now I know that it is not true sometimes.

---------- Post added at 04:37 PM ---------- Previous post was at 04:36 PM ----------

@jithgr

The issue seems to be resolved:

https://github.com/AdguardTeam/ExperimentalFilter/issues/1266#issuecomment-171415751