19

[APP][ROOT/NONROOT][OFFICIAL] AdAway v5.12.0

 1 year ago
source link: https://forum.xda-developers.com/t/app-root-nonroot-official-adaway-v5-12-0.2190753/page-842#post-86880661
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

[APP][ROOT/NONROOT][OFFICIAL] AdAway v5.12.0

Adaway doesn't work for some reason.
Im on a OP 8T running android 12 c.16.

See attached image, anyone can tell me what is the issue and how to solve it?

Go to Magisk / Settings (Gear icon at top right corner) / Systemless host (Tap on it).

anova93

Member
Oct 11, 2015
Hello, recently moved to a new phone and installed this on a rooted custom rom. Everything works/blocks fine and pretty much like it did on my old phone, except for some reason I just can't get the dialog prompt for reboot to pop up after a host update or editing the whitelist. This is regardless if the 'hide reboot dialog' option is checked or not within the settings. I can't seem to find anything in this thread or on github about it, so does that mean it's just a phone specific issue? Have also tried re-installing a few times to no avail.

DiamondJohn

Recognized Contributor
Aug 31, 2013 6,056 5,938 Sydney
Hello, recently moved to a new phone and installed this on a rooted custom rom. Everything works/blocks fine and pretty much like it did on my old phone, except for some reason I just can't get the dialog prompt for reboot to pop up after a host update or editing the whitelist. This is regardless if the 'hide reboot dialog' option is checked or not within the settings. I can't seem to find anything in this thread or on github about it, so does that mean it's just a phone specific issue? Have also tried re-installing a few times to no avail.

I dont use AdAway anymore, but are you sure that the host file was updated? and not the same as last time. Is it possible that adaway does not prompt for a reboot, when there is no change to the resultant hostfile? IDK.

rodken

Senior Member
Jan 11, 2010
It's aggressively blocking ads on Amazon app. Bad.

Start from here and work your way down to the successive posts.

gallegonovato

Senior Member
Feb 25, 2021
Good afternoon:

I wanted to ask you a question since there is no way. At least for me. Adaway works well with Gitea or Codeberg for example.

And my question is that it has to have links or hosts. For Adaway to recognize them as it does with Github for example.

Is that many creators are moving to other platforms. And of course they would also like their work to be suitable for Adaway.

Best regards and thanks for your time

Nergal di Cuthah

Senior Member
Sep 20, 2013 1,745 Google Pixel 6 Pro
Good afternoon:

I wanted to ask you a question since there is no way. At least for me. Adaway works well with Gitea or Codeberg for example.

And my question is that it has to have links or hosts. For Adaway to recognize them as it does with Github for example.

Is that many creators are moving to other platforms. And of course they would also like their work to be suitable for Adaway.

Best regards and thanks for your time

As long as it's formatted correctly and announces its updates any url will do. 4 out of my 5 aren't git or codeberg but are urls of their own

Attachments

  • Screenshot_20220510-153335.png

    Screenshot_20220510-153335.png
    228.4 KB · Views: 36
Disable the Webserver in AdAway.

I don't see that option. I'm on latest version 5.12.0.

Which version of Adaway has that please tell me so that I'll install version.

Nergal di Cuthah

Senior Member
Sep 20, 2013 1,745 Google Pixel 6 Pro
I don't see that option. I'm on latest version 5.12.0.

Which version of Adaway has that please tell me so that I'll install version.

Open preferences
Tap root based ad blocker

gallegonovato

Senior Member
Feb 25, 2021
Good morning @Nergal di Cuthah

First of all ģthanks for your help and time.

The ones you comment me you have in github and as you say a different format.

But for example from gitea https://git.nixnet.services/Narsil/hosts . I can't get them to work. First it recognizes them, in theory. It comes out installed for x amount of time. Then if I restart the phone, puts updated for x time, but if you give to update or search for updates laz lists of hosts. Sometimes it removes it from the global computation, and when you hit update it adds them back. And for example gitlab does not happen to me. For example https://gitlab.com/Jorgu81/hosts (without problems).

And from Codeberg I have the same problem as with Gitea. And I spoke with Codeberg and they told me that changes could be made for proper operation.

Thanks for everything and hug
Can we get any option to whitelist an app in future? If see that would be great, for me amazon crashes when adaway is ON so have to pause adaway and use it then resume it back ON

+1 Yes I would love to see separate section for per app ad blocking.

zgfg

Senior Member
Oct 10, 2016 7,144 4,598
+1 Yes I would love to see separate section for per app ad blocking.

If you use VPN/non-root mode then you do have the option to whitelist apps.
In that case AdAway controls to which apps it opens the virtual VPN DNS resolving channel or not

In the host/root mode AdAway only writes/updates into the hosts file.
Apps use the Android API to read from the hosts file - AdAway has no control over that and no info which app asks to resolve the host name from hosts file - AdAway does not even need to be running (if you leave it running in background for the root mode it will only periodically check the hosts sources and update the hosts file from, but it usually requires manual reboot to take in effect, specially if using Systemless hosts since Magisk will remount the updated hosts file only when rebooting - all together, I use AdAway in root mode but with all updates turned off and AdAway is not automatically started and does not run in the background, not eating battery, resources or anything )

Last edited: Yesterday at 11:58 AM

Reactions: ipdev

I can't suddenly no more links open in Twitter. When adaway is disabled it works. I'm only using the three default sources.

Edit : it works again. Did api-26-0-0-26-6-1.twitter.com and t.co add to the whitelist.

Nergal di Cuthah

Senior Member
Sep 20, 2013 1,745 Google Pixel 6 Pro
Good morning @Nergal di Cuthah

First of all ģthanks for your help and time.

The ones you comment me you have in github and as you say a different format.

But for example from gitea https://git.nixnet.services/Narsil/hosts . I can't get them to work. First it recognizes them, in theory. It comes out installed for x amount of time. Then if I restart the phone, puts updated for x time, but if you give to update or search for updates laz lists of hosts. Sometimes it removes it from the global computation, and when you hit update it adds them back. And for example gitlab does not happen to me. For example https://gitlab.com/Jorgu81/hosts (without problems).

And from Codeberg I have the same problem as with Gitea. And I spoke with Codeberg and they told me that changes could be made for proper operation.

Thanks for everything and hug

Well, both of those links lead to the landing page and not a host file. I couldn't find the actual file but i only glanced at the pages. If you can link to the actual files. i have limited knowledge though, but will try and help.

ciaoant1

Member
Feb 18, 2015
I have a strange issue (I am using the non-root version of the app, if that makes a difference):

When I use Google maps, it doesn't seem to get the live updates regarding traffic. When I disable AdAway, it works. I don't know what to whitelist, and I even tried to whitelist the app, but...the app does not appear in the list of user apps!

Any suggestions on what could be wrong?

PS: I found this bug report, but no resolution:
github.com

Smithsonian Eclipse 2017 - Google Maps and GPS function blocked by Adway · Issue #928 · AdAway/AdAway

App has a feature to show map from Google Maps, and current location. Map doesn't load and app doesn't get location. Disabled Adaway and app functions perfectly fine. https://play.google.co...
github.com

shremi

Senior Member
Aug 22, 2011
Can anyone help me whitelist. I have tried everything but i think it's the trackers that get blocked not the actual page.

Thanks

Nergal di Cuthah

Senior Member
Sep 20, 2013 1,745 Google Pixel 6 Pro
Good morning @Nergal di Cuthah

First of all ģthanks for your help and time.

The ones you comment me you have in github and as you say a different format.

But for example from gitea https://git.nixnet.services/Narsil/hosts . I can't get them to work. First it recognizes them, in theory. It comes out installed for x amount of time. Then if I restart the phone, puts updated for x time, but if you give to update or search for updates laz lists of hosts. Sometimes it removes it from the global computation, and when you hit update it adds them back. And for example gitlab does not happen to me. For example https://gitlab.com/Jorgu81/hosts (without problems).

And from Codeberg I have the same problem as with Gitea. And I spoke with Codeberg and they told me that changes could be made for proper operation.

Thanks for everything and hug

Ok to get the host to work from the 1st link go to raw version such as https://git.nixnet.services/Narsil/hosts/raw/branch/master/Google/HostsGoogle
And it shows update time and gives me 2k hosts

Can anyone help me whitelist. I have tried everything but i think it's the trackers that get blocked not the actual page.

Thanks

For me it opens the page, but it seems the content is missing. It shows only menu entries. For you too?

Top Liked Posts

  • Further on boxes, check, and colors.

    It first appeared that the buttons on the Blocked and Redirected lists were always the same. While experimenting, I've been able to produce Blocked list buttons of empty white box and red checked box. I can toggle them.

    This leads to the quesion of what do the changable colors on the blocked list buttons mean?

    Similar on the redirected list.

    Finally, when I use the search feature, there doesn't seem to be a way to turn it off, i.e. restore all entries to the display. But save that problem for later.

    If I can get a good explanation of things, I will write a help page.

    Next topic is how the allow, block, and redirect lists interact. For example, which order are they searched? When a wild card is on one list, will it catch an exact match to an entry on another? How do the "pre loaded" (source) lists take precedence, and how can entries be overridden since they don't seem to be deletable from the user lists.

    Answering to one of your questions:
    Allowed is stronger than blocked

    First off all, if you don't have any hosts source, than all sites are allowed.
    Hence you actually don't need to put anything to the Allowed list

    But as the name says, this is an ad blocker. Hence the purpose is to use the hosts sources that will BLOCK certain sites

    But once you start using someone's hosts source (by default, I'm talking about the blocking lists), you have no influence on which sites will be blocked by the hosts source or not

    If it blocks to less, you will another hosts source to your list, and later maybe more and more hosts sources there

    However, at some moment you may find that you can no more shop at eg Amazon, because one (or more) of your hosts sources blocks the Amazon. You could spend time to find which hosts source blocks the Amazon and remove it from your hosts sources list. But the Amazon may soon appear in another hosts source...
    Or, you may otherwise like that hosts source that blocks the Amazon because it blocks a zillion of other sites you really want them to be blocked

    Hence you better put Amazon to your own Allowed list. Then you don't need to worry about in which of your hosts sources Amazon is blocked (or might become blocked in the future, upon the hosts sources updates)

    AdAway first reads and compiles the list of Allowed sites. Then it goes to the blocked lists. Whenever it finds the Amazon site (that you did put to the Allowed list) in any of the blocked lists, it will ignore it, knowing that you specifically asked to allow that Amazon site

    That's the use case behind the Allowed list. And the reason why it is, and why it must be stronger than Blocked list.
    And the same policy (allowed is stronger than blocked) applies also to other ad blockers

    .... What's your chrome score...

    i don't use brave browser. my chrome score below.

    I can't suddenly no more links open in Twitter. When adaway is disabled it works. I'm only using the three default sources.

    Edit : it works again. Did api-26-0-0-26-6-1.twitter.com and t.co add to the whitelist.
    why do adaway and all similar apps not block all ads? like it's better than nothing obviously but I have tried adaway, block this and blokada and all of them suck at blocking ads... plus I use vivaldi browser which has its own adblocker inside the browser and it's no better 🤬

    the only decent ad blocker is Adguard, I use it on the computer and my tablet and it's amazing but on my phone I can't because I have oneplus and it keeps turning off due to "battery optimization" 🤬

    the question is why is there such a difference between adguard and the other ad blockers? 😕 (and I'm not even talking about cookie messages and other annoyances which are blocked in adguard but not in the other ones obviously)

    It's by design, ie, due to the different technologies used for blocking

    AdGuard is much more sofisticated, it acts like a firewall, filtering out a bad traffic from the good traffic on the sockets level

    On the other side, Blokada or AdAway work similarly like a private DNS that does not allow to resolve a DNS host name to the IP address, for the host names (sites) on the blocked list

    That way AdGuard can block ads ('bad' traffic) coming from the given IP address, while at the same time allowing the 'good' content coming from the same IP address

    On the other side, AdAway and Blokada can only block you to resolve the known 'bad' sites (DNS host names) to the corresponding IP addresses

    Hence if you put a certain host name to the blocked list (Blokada, AdAway), then the app (or browser) will not be able to resolve that hosts name to the IP address and no connection will be established at all - hence no ads ('bad' traffic) but also no wanted/'good' content from that site.
    On the other side, if you don't put that host name (site) to the blocked list, then the app/browser will be able to resolve the host name to IIP address and then both the good and bad traffic from that IP address will be allowed

    As you see, that's the main difference - Blokada and AdAway divide the sites to blocked and allowed (old names: 'black' and 'white', now forbidden as not politically correct, but I need them now to better visually describe the differencies in technologies), while AdGuard allows also the 'grey' sites where some traffic from those sites is allowed and some not

    Also, Blokada and AdAway cannot prevent to establish a connection (and therefore cannot block any traffic from that site), if an app goes to some hard-coded IP address (they only block on the DNS level - not allowing to resolve the 'bad' host names to their IP addresses)

    Such IP address does not need to be hard-coded in the app. The app establishes the connection to its server (you don't block that), but then the server (while providing a 'good' content) provides also the IP address where the app will then go to pick-up the ads.
    Again, Blokada or AdAway cannot block that because the DNS resolving step is omitted

    I did spend time skimming and selectively searching this thread with no joy trying to find a consise explanation of the colors and meanings for the presence/absence of check marks in the user lists.

    When I look at the allowed list, items have either an empty white box or a red box with red check. Since it is the "allowed list" I'd expect unchecked white box items to be tests that when successful (match) allows the address to be passed through the proxy.

    When I see a box with a red check, I get confused, and think that red check also means allowed. This is enforced because at the bottom of the list with the three list types (blocked - allowed - redirected) I see a red check + allowed. This implies that red check on a list item would make it allowed. But that conflicts with the idea that the list is of allowed and disallowed items, where all items checked or unchecked items are allowed. ???

    Further research reveals that the red in the three list types (blocked - allowed - redirected) identifies the list being displayed, and is not a block or allow legend!


    May I politely suggest...

    1. Change the color to the three list symbols at the bottom page footer to all white. Then divide the footer into three parts, and reverse video the active third (where previously you set the symbol color to red).

    2. On the Blocked list, change the (constant) symbol White Checked Box to Red Circle-Slash ('general not' or 'forbidden').

    3. In the Allowed List, change the red check box to an red circle-slash (forbiden) and change the white box to be a green plus. (Remember some people have red-green color blindness, so it's not enough just the change the color).

    4. On the Redirected list, change the (constant) symbol White Checked Box to white redirection arrows.

    5 . Consider floating a legend line to the top or bottom of the DNS requests list "tap symbol to add url to Blocked/Allowed/Redirected lists".

    Likewise, float a legend line on the Blocked, Allowed, and Redirected lists.
    Further on boxes, check, and colors.

    It first appeared that the buttons on the Blocked and Redirected lists were always the same. While experimenting, I've been able to produce Blocked list buttons of empty white box and red checked box. I can toggle them.

    This leads to the quesion of what do the changable colors on the blocked list buttons mean?

    Similar on the redirected list.

    Finally, when I use the search feature, there doesn't seem to be a way to turn it off, i.e. restore all entries to the display. But save that problem for later.

    If I can get a good explanation of things, I will write a help page.

    Next topic is how the allow, block, and redirect lists interact. For example, which order are they searched? When a wild card is on one list, will it catch an exact match to an entry on another? How do the "pre loaded" (source) lists take precedence, and how can entries be overridden since they don't seem to be deletable from the user lists.

    When you first open the blocked list you will see the current list that is being blocked.

    In the upper right, there is a search icon and switch window icon.
    The switch window icon will switch between the current list and you personal blocking list.

    The hosts sources, blocked, allow and redirect lists are setup the same way.
    Only the entries that you select will be used.

    The selected entries will be the ones that have the check mark.​
    When AdAway builds your current blocking list it:
    • Combines all the entries from the blocking hosts sources and your personal blocking list.
    • Removes duplicate entries.
    • Removes all the entries that are in your allowed hosts sources and your personal allow list.
    • Set the new current list to use for blocking.
    ---

    You can use an asterisk * in the Allow lists.
    You can not in the Blocking lists.

    ---

    See attached screenshots for example.

    Hope it helps more than confuse. 🙃

    Cheers. :cowboy:

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK