2.11.81: Cosmetic filters don't work

Discussion in 'Technical Support (AdGuard for Android)' started by bobthebob, May 18, 2018.

  1. bobthebob

    bobthebob New Member

    Joined:
    May 18, 2018
    Messages:
    6
    Hi,

    I just purchased AdGuard for Android. Well, I'm a bit disappointed now because it seems it doesn't work when using Chrome browser as intended and I have no benefits over using the free AdAway. But AG is working inside other apps.

    Here you are promoting the feature that AG will apply cosmetic filters, e.g. removing blank spaces or frame where the blocked ads would show up.
    Now I just opened the same google search request as in your blog article above and see what's happening:
    Screenshot_20180518-045841.png

    Same with other pages, e.g. 9gag.com:
    Screenshot_20180518-045835.png

    Info:
    • I'm on Android 7.1.1 with root access.
    • AG's HTTPS cert is installed.
    • Chrome's "Data Saver" option is turned off and the above websites are no AMP versions.


    Another thing: The traffic consumption statistics shown in AG are zero for all apps but for "Android OS", is this normal?
     
  2. vasily_bagirov

    vasily_bagirov Administrator Staff Member Administrator

    Joined:
    Jul 1, 2014
    Messages:
    6,892
    What filtering mode do you have chosen in settings? Try switching to "High-quality" if you haven't already.

    Doesn't seem right to me. How long has it been like so?
     
  3. bobthebob

    bobthebob New Member

    Joined:
    May 18, 2018
    Messages:
    6
    E: Why was my thread moved to custom filters? I was using the "inbuilt" filters (and those are applying cosmetic corrections too, right?). I am not using any self created filters. Thus it's a problem with AG itself I thought.

    But back to topic:
    -I tried both modes, fast and high quality filtering.
    -I am using AG now for one day now since purchase. The stats are like this since the beginning/installing of the app.
    -I just tried deleting app data and reinstalling the app. Same result as before:
    1) AG is filtering/working within apps.
    2) Chrome is working too, but the empty frames are not removed.
    3) The statistics still only show increases of "Android OS".
     
  4. Alex302

    Alex302 Filters Developer Staff Member Administrator

    Joined:
    Jul 20, 2012
    Messages:
    23,971
  5. bobthebob

    bobthebob New Member

    Joined:
    May 18, 2018
    Messages:
    6

    Attached Files:

  6. Alex302

    Alex302 Filters Developer Staff Member Administrator

    Joined:
    Jul 20, 2012
    Messages:
    23,971
    HTTPS filtering is not enabled. In this case quality filtering is impossible.
    upload_2018-5-22_14-49-8.png
    When HTTPS filtering enabled you will see something like that
     
  7. bobthebob

    bobthebob New Member

    Joined:
    May 18, 2018
    Messages:
    6
    Hmm, but it is enabled in the settings and AG shows that (or thinks it is enabled). Tried both variants: installing cert. to user and after that to the system cert. store.
    HTTPS filtering is also enabled for Chrome itself (Apps Management tab), but it must be an overall error, otherwise the statistics would show something for other apps too.

    I just tried everything again from scratch: I cleared my cert. store, restarted phone, AG showed HTTPS cert is not installed, installed it, disabled/enabled AG protection, exact same result as before: The blocked ads' empty frame will not be removed, statistics don't change.

    Any further ideas why that is happening?
     
  8. bobthebob

    bobthebob New Member

    Joined:
    May 18, 2018
    Messages:
    6
    Push. Anything else? Should I provide any other system logs? Otherwise I have to make a refund request.

    Thanks.
     
  9. avatar

    avatar Administrator Staff Member Administrator

    Joined:
    Oct 26, 2010
    Messages:
    13,121
    Hi! According to what I see, in your case, outgoing connections are detected as if they were originated from "Android OS", and this is simply wrong and might mean that something is wrong with the firmware.

    Just in case, try switching to the "proxy" filtering mode and check if it changes anything. You can do it in settings -> advanced -> filtering mode.
     
  10. bobthebob

    bobthebob New Member

    Joined:
    May 18, 2018
    Messages:
    6
    Hi Andrey,

    thanks for your answer. I just wanted to tell you all that I've been able to test AG now on another android phone (took a while to get one) with LineageOS 14.1 and it's working :) So it must indeed be some bug on my phone running OmniRom (Android 7.1).
     
  11. Kurkulav

    Kurkulav New Member

    Joined:
    Jul 16, 2018
    Messages:
    1
    First time posting. Hopefully I am not saying anything stupid. OK, I found this problem too, not cosmetic filtering. Let's go piece by piece as Jack "The Ripper" would say.

    Phone: Galaxy S8 (Magisk root)
    Firmware: Samsung Oreo 8.0 (Official unmodified)
    AdGuard: Latest nightly version, proxy (root auto) mode, HTTPS filtering enabled and AdGuard certificate moved to /system.

    I was using DNS filtering with Cloudflare Secure DNS. This I found that due to your iptables rules to redirect DNS traffic my phone thought that I was in a captive portal and started to show an annoying exclamation mark on the WiFi signal icon. After reading some posts I found out that disabling Android OS filtering in Apps Manager the exclamation mark was gone. And then is when cosmetic filtering stopped working.

    As today (right not after reading these posts in the thread) I am using DNS filtering with Cloudflare (anycast) servers and I reenabled Android OS filtering again. As result cosmetic filtering is working again and the exclamation mark didn't appeared yet.

    I hope this helps shedding some light upon the problem.

    Update: Exclamation mark is back and no cosmetic filtering too, at least in Google News.

    Cheers.
     
    Last edited: Jul 17, 2018
  12. avatar

    avatar Administrator Staff Member Administrator

    Joined:
    Oct 26, 2010
    Messages:
    13,121
    No cosmetic filtering on Google News is likely to be okay due to no HTTPS filtering of that app on Android 7+.
     
    Kurkulav likes this.