yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] zgfg:
Could you be more specific. E.g., make a simple example to prove the claim (you can create local files to be stored on the phone and used as hosts sources)

I have 12 hosts sources defined as a blocked lists.

And one hosts source for the allowed list.

Plus one site manually added as blocked and two as allowed - and everything works fine

However, you have to be aware of the rules.

E g , there are different formats for hosts sources used for allowed lists from the hosts sources used for blocked lists

For example, entries like:

0.0.0.0 my.domain.com

cannot be used in allowed list - AdAway will ignore them, since the proper format for entries in the allowed list are:

my.domain.com

And vice versa...
[Android Apps and Games] cuocsongxanh:
Hi guys

Does anyone know how to block an app like games with adaway?
[Android Apps and Games] joefuf:
Specifically, I am trying to add the ad services sites used on SlickDeals. Here is a paste of my backup JSON that I try to restore. I see that you can only have them in Allowed or Redirected. I have tried both methods, but I still get the error when browsing.

Specifically, in the case of tkqlhce.com, I see that it is part of the Blocked list. Can I remove it somehow?

Is there something else that I need to do?

As far as your host sources, can you share those? Or are there other sources I should use instead of the stock options?
[Android Apps and Games] richardmace:
My opinion on Adaway (for what it's worth).

While the application is very effective at blocking domains, I'm not sure how effective it is in blocking ads. For instance, I prefer to use Firefox to access, for example, Facebook. With just adaway activated, I see those annoying in-line 'sponsored' ads. The Firefox add-on uBlock origin blocks those ads, Adaway doesn't.

Can someone point me to a website that the app effectively the blocks ads on? I can't find one!
[Android Apps and Games] zgfg:
I don't understand what do you exactly want to achieve with Redirected hosts

I don't use them but AFAIK, redirected hosts must have the IP address defined, where are they redirected to

Indeed, try to manually add an Redirected host (open the top-right Redirected box, press +). You wiil have the pop-up as on the screenshots - you can not press Add until you provide the redirected address.

And then, when exported to json, it will look like:

"redirected": [

{

"host": "Googleadservices.com",

"redirect": "142.250.75.2",

"enabled": true

},

{

"host": "tradedoubler.com",

"redirect": "52.19.200.98",

"enabled": true

}

]

Here I used their original addresses (obtained by dnslookup), maybe you want to redirect them to somewhere else

In the json you are trying to restore from, all hosts in the "redirected" list are missing their "redirect" address

Btw, such json can be restored from (Restored successfully), but I remember there were also some bugs in the past that restoring did not correctly looked for the syntax and made it possible to import some wrong combinations.

Again, not using Redirected and not familiar with

My json zipped and attached. Take a look, instead of manually listing one by one Allowed hosts, I added them into the local file myAllowedList.txt and then I added that local file as a hosts source. Similarly I have also myBlockedList.txt file.

You cannot import that from my json because their Content type URLs are local to my filesystem - you have to create your local files and import them by switching to FILE type - see the last screenshot

Edit:

I know there is a field for IPv4 and IPv6 Redirection addresses in Preferences but I'm not sure does it apply to those hosts you enter manually (or through the json) - because, when you want to enter them manually, it doesn't let you press Add until you provide the redirected address.

And then it shows differently in the Redirected box (host plus redirection address) than when you restore from your json (showing only the host).

After all, when I backup how I added manually, I also have redirected addresses in the created json
[Android Apps and Games] zgfg:
AdAway does not use any other technique than blocking the given sites - for certain apps like YT that stream the ads inside their 'regular' connection to server, you have to use different adblockers (like Vanced YT for YT) - sorry, don't know for FB
[Android Apps and Games] DiamondJohn:
90% of my blocking is in app blocking NOT web blocking.

However, AdAway is a tool, it is up to the user to select host files that will have hosts blocked.

For me, host blocking blocks both web and app ads. Firefox will block ads 0 in apps. Right tool for the job.
[Android Apps and Games] joefuf:
Perhaps I misunderstood a few things...

I just uninstalled and reinstalled version 5.10.0 so I was starting at a clean slate. I manually entered all of the entries in my JSON under the Allowed page and clicked Apply and rebooted.

For a specific example, the way that SlickDeals works is that clicking a link sends you through one of what I called/considered a "redirect" website, so it passes you through "tkqlhce.com" which brings you to the deal you wanted at Amazon.com.

In trying to resolve my issue, I had "tkqlhce.com" added to Allowed and Redirected, but neither were able to bypass the entry being in the Blocked list. Hence my assumption that something was broken.

I think I should be using these as Allowed then, right? So my syntax looks correct as

"allowed": [

{

"host": "jdoqocy.com",

"enabled": true

},

{

"host": "redirectingat.com",

"enabled": true

},

{

"host": "tkqlhce.com",

"enabled": true

}

But if I try to see this Eddie Bauer deal

Eddie Bauer: Men's Cirruslite Down Hoodie or Women's Down Faux Hoodie $60 & More + Free Shipping $49+

Eddie Bauer has Select Men's and Women's Down Jackets on sale below at prices starting from $44.99. Shipping is free on orders $49+. Thanks to Deal Hunter daisybeetle for finding this deal. ...

slickdeals.net

I click through the "See Deal" button (visible only on mobile) and get stuck at what appears to be an AdAway block screen in Chrome because even though ojrq.net is on the Allowed list, it is also in the Blocked list from my Sources.

I also copied your Allowed List and added that as a source. Didn't seem to fix the problem with any of the SlickDeals links or Pinterest which has stopped working on my phone browser in recent weeks. Both files are attached if you are able to take a look and see any glaring issues.
[Android Apps and Games] zgfg:
Sorry but I don't see how/why could you expect that my Allowed list may help you for Amazon, SlickDeals, Pinterest, who knows

I didn't mention them in my post. Actually, I never shop on Amazon and I even don't know what are the famous SlickDeals

You asked for my json and I sent it back to you.

I also packed my local Allowed list as an example of how to more easilly define a number of Allowed (Blocked or even Redirected) hosts, instead of adding them one by one through the json restore file

Amd by reading the names of my half a dozen Allowed hosts, you can easily see that they are all about Xiaomi (3rd largest smartphone manufacturer) and MIUI (Xiaomi's Android fork) - hence some hosts needed for the proper operation of my phone (system updates, Xiaomi clouds, etc)
[Android Apps and Games] joefuf:
Yes, I opened your list and saw your entries. I thought you were going to also open my added zip and see that I replaced your links with mine and how my syntax was the same as your file. Or maybe find what I was doing wrong. Comparing the two, I can't see what details I am neglecting to include in order to access these websites.

I have attached screenshots in case you prefer not to open a zip from a stranger.

The Pinterest sources were entries that I saw in Blocked which I wanted to add to Allowed to see if I could access Pinterest in my mobile browser again. This did not fix things.

The red entries were the ones that I manually entered. I can remove them and only get them from the Allowed Sources list if you think that is what trumps the Blocked list.
[Android Apps and Games] zgfg:
Important:

Upon making a change in AdAway configuration, make sure you click on Apply (if it asks you) and wait until it finishes before you go for another change.

Also, when you import a json, force the refreshing, etc

Finally, when you are done with the changes, REBOOT and only then test how it works

---

Also, please don't import your Allowed and Redirected sites through json, but enter changes manually (once you have a tested and working configuration, then backup to json)

That way AdAway will guide you what you need to enter and you will have better control what you are doing

And then, instead of posting jsons, post the screenshots from your Allowed (and Redirected) box in AdAway

--

I suppose you are using a root version. Go to Preferences, Root based adblocker, Open hosts file

If you have MiXPlorer (you can install from Playstore or find its XDA thread), you will be able to open it As a text file and inspect

For example, if you wanted to put ojrq.net to the Whitelist, then use Find and search for ojrq.net

MiXplorer must not find any line like:

0.0.0.0 ojrq.net

or

127.0.0.1 ojrq.net

If it finds, then it was not whitelisted

--

You said:

>> because even though ojrq.net is on the Allowed list

but in the Allowed list (this same your post), I dont see ojrq.net?!

"allowed": [

{

"host": "jdoqocy.com",

"enabled": true

},

{

"host": "redirectingat.com",

"enabled": true

},

{

"host": "tkqlhce.com",

"enabled": true

}

Hence, something is wrong here - you either copied the wrong Allowed list or described wrongly, etc

But I asked you to better open Allowed box and inspect which sites are really listed there (and provide it's screenshot instead of potentially wrong json)

---

I really don't know how SlickDeals work (and I'm not going to play with) but if they work the way you described:

>> "...clicking a link sends you through one of what I called/considered a "redirect" website, so it passes you through "tkqlhce.com" which brings you to the deal you wanted at Amazon.com"

Then you should use Redirect and not (only) Allowed as you do now in this post.

And read my previous post about adding Redirect rules - and add them MANUALLY through Redirect box, +, not by importing a json

For example, if you want to redirect that clicking to the site www.a1a1a1.com opens www.b2b2b2.org instead, then you have to use dnslookup to find what is the IP address of www.b2b2b2.org

Suppose, that address is 129.19.29.12

then you have to Redirect like on the screenshots

--

These are the general guidelines - you need to figure out how you SlickDeals etc work, and experiment

--

Last but not the least:

Redirect will work for http sites but not easily for https sites

Suppose you wanted to redirect https://www.a1a1a1.com

to

https://www.b2b2b2.org

Chrome will find that certificate for b2 (it is opening) does not match a1 name (it was supposed to open) and will block you to open for Security reasons

You will have to click on Advanced, then Proceed to ... (unsafe), to let it open
[Android Apps and Games] zgfg:
@joefuf - Below is the proof of concept how Redirect works in AdAway

We will redirect two (non-existing sites) www.myRedirectTest1.org and www.myRedirectTest2.org to some Github page 185.199.108.153

First of all, click to:

http://www.myRedirectTest1.org

Browser will warn you that you maybe entered a typo because the given site does not exist (and it's not redirected yet) - screenshot 6

Now, click to Redirect box top-right in AdAway. Then to the bottom-right red Plus icon +, to manually enter a redirection for www.myRedirectTest1.org.

Fill the pop-up as on the screenshot 1.

Add and let it Apply when you finish

You can also restore the following json to add the same redirection for www.myRedirectTest2.org:

{

"sources": [],

"blocked": [],

"allowed": [],

"redirected": [

{

"host": "www.myRedirectTest2.org",

"redirect": "185.199.108.153",

"enabled": true

}

]

Redirect box will show now two redirections - screenshot 2

REBOOT (the phone). Click to open:

http://www.myRedirectTest1.org

It should show now the page as on screenshot 3

The same for http://www.myRedirectTest2.org

However, if you click to:

http://www.myRedirectTest3.org

browser will again warn you that you might have entered the typo

Now, try to open as:

https://www.myRedirectTest1.org

or

https://www.myRedirectTest2.org

Browser will warn you as on screenshot 4. Click to Advanced at the bottom and then to Proceed... - screenshot 5.

Finally, it will open the Github 404 page as on the screenshot 3

You can similarly redirect an existing site www.google.com to that IP address (but it will affect your googling)

Interesting, if you directly click to:

http://185.199.108.153

it will properly open as for:

http://www.adaway.org

I don't kbiw why Github opens that page here, but returns 404 when accessing through the rediretions

---

Now for your Amazon, Pinterest, SlickDeals, etc, you need to figure out which site(s) to have to redirect to which address and then to configure it and test yourself🥸

But you see from the ptevious example that although properly redirected in AdAway, there might be additional issues with https certificate, Web server (and page) you are redirecting to, etc

For example you cannot redirect in AdAway to.the IP address AND PARTICULAR page like:

185.199.108.153/index.html

or:

185.199.108.153/index.php

(but that might be something you would need for your SlickDeals)

Good luck :)
[Android Apps and Games] zgfg:
Your Allowed list looks ok (as a file) but there is no proof that you have applied that list through your hosts sources

My local Allowed list has 8 hosts. See my screenshot how AdAway confirms that the list with 8 hpsts was processed - if it was not, you cannot expect to see its entries in the Allowed box (and AdAway would

still block them if they are blocked by your other hosts sources)

Play yourself by disabling and reenabling the Alllwed list. Every time make sure that you accept Apply - really play yourself, sometimes Apply does not show up or something

Without applying, the list will not be processed and there is no use of the list

That is now really enough from my side
[Android Apps and Games] joefuf:
Good advice. I started from scratch again, uninstalling the app and reinstalling after a reboot.

This time, I used the Allowed List as a Source. You can see in my screenshots that I checked the options that you pointed out in your instructions, marking it as Allowed, seeing that it is available as a Source, and that my specified websites are in the Allowed list.

Then I rebooted.

I attempted to try a SlickDeals website again. I was routed to a jdoqocy.com website and told my connection was not private. I clicked proceed anyway, but I got the dreaded AdAway bird page.

--

Checking my Allowed list, jdoqocy is there. But also checking the Blocked list as well as the Hosts file, jdoqocy.com is listed there.

So something makes me feel like the Allowed additions, whether it's manually to the Allowed list or by a MyAllowedList.txt Source isn't surpassing the Blocked list or the Sources with block lists.

I apologize for being inarticulate. I was giving an example of my syntax but basing it off of the example Slickdeals link that I had provided in that post. In that example, that Slickdeals post sent me through ojrq.net.

If this is the case, then it does not seem that it will be possible to write a rule correct?

I will not be able to map all of the links to which I might be passed to specific websites. Today, clicking a link might send me through jdoqocy.com which might pass me to a deal on Amazon but tomorrow a different link thing through jdoqocy.com might pass me to Eddie Bauer.

Finally, is there any way I might be able to omit certain websites from these blocked success lists? Or make my own blocked source list from these cat sides but make my own version omit the websites I am having trouble with?

I thank you for all of the time and explanation that you have given me. I know that it will not help just me but others who find this when seeking help.
[Android Apps and Games] folusmile:
Is there anyway I can use blocked Twitter with adaway..cos in my country Twitter is blocked. Thanks
[Android Apps and Games] DiamondJohn:
Its kinda the exact opposite of what host blocking is used for. However, if you know the IP of a server that acts as a proxy and is not blocked in your country, I would propose that theoretically you may be able to use the redirect features to send it to the proxy server instead of the blocked twitter address. I do not like your chances.
[Android Apps and Games] vandyman:
Is there a reason why you can not use a VPN?

I really don't want my post to go off topic...
[Android Apps and Games] folusmile:
I am not rooted ..so I can't use two VPN together on non rooted phone.
[Android Apps and Games] cognitivedissonance:
View attachment 5482131

Hi there, I'm on AdAway 5.10.0 and it's throwing me this error. I'm running stock rooted 9.0 on my Pixel 2XL, with Magisk 22.0. I just updated BusyBox add-on thing in Magisk Manager and rebooting. When I tried to revert my hosts it told me it failed to revert. Anyone have any suggestions?
[Android Apps and Games] XtraWater:
When I set adaway on pause, is it somehow still possible that some content getting blocked? I'm asking because since a while on the IMDB doesn't show anymore description when I tab on a movie in a search list.

Can't figure out what it is.
[Android Apps and Games] zgfg:
If using root version, try with rebooting after pause or resume
[Android Apps and Games] XtraWater:
Thank you. Indeed I'm using root version. So I just paused adaway and rebooted. But still, content doesn't load. I also deleted cache and data and reinstalled the app. No success. I don't use any other add killer apps or modules. I hoped that adaway would be the culprit. But now, I don't know where else to look.

Searched for the issue online. But it seems I'm the only one with this problem. Weird.
[Android Apps and Games] cognitivedissonance:
Anyone have any ideas? It's still doing the "Failed to revert hosts file" when I try to pause it.
[Android Apps and Games] vandyman:
Are you using a custom kernel?

Some kernels have ad blocking built in.
[Android Apps and Games] DiamondJohn:
Not that there is any reason for it to fail, I would check that the ost file at /system/etc/hosts is almost empty when its paused and rebooted.

I tried logging to remove ads from the imdb web page (which also begs the question if you are talking about the app or web?), when I added what lookedlike the ad hosts, a lot of theformatting/style pages & images of imdb actually disappeared/broke. The following host file is what I tried / found. Try pinging these from your desktop and from the phone to see if your phone cant see one of them.

Spoiler content hidden.
[Android Apps and Games] vandyman:
Do you have systemless checked in Magisk?
[Android Apps and Games] XtraWater:
Should have mentioned it. It's in the app. Latest version. I found that host file. Will try to ping them on my phone.

Edit: pings are successful on the phone.
[Android Apps and Games] XtraWater:
When I tap to it the message 'added systemless hosts module' appears.
[Android Apps and Games] Nergal di Cuthah:
Ok reboot and try adaway again
[Android Apps and Games] XtraWater:
I'm using the kernel which came with RR8. 6.9. It stopped working a few weeks ago. Didn't install any modules or kernels.
[Android Apps and Games] XtraWater:
OK. Rebooted twice. Once with adaway running and once while adaway is paused.

Everything in the app seems to work. Unless I try to open an entry from the search results.
[Android Apps and Games] DiamondJohn:
Did you check your live host file contents?
[Android Apps and Games] XtraWater:
Yes, adaway paused and reboot hosts is almost empty.

127.0.0.1 localhost

::1 localhost

With adaway running there are a ton of entries. Actually that confirms that the issue is not caused by adaway. Right?
[Android Apps and Games] DiamondJohn:
the next thintg I wouold try is turning off systemless host in Magisk, reboot, check the live host file and then check the app.

If it still does not work, maybe someone else may have a clue. You could lso try uninstalling adaway to see if there is anything borked by a previous non-root attempt. But after thatr, its looking like eitehr an app or service provider issue, at least to me.
[Android Apps and Games] XtraWater:
Deleted systemless hosts module. After reboot the host file isn't there anymore. IMDB still has the issue. I have another rooted phone herewith adaway installed. Tried imdb... Works perfect.

Other than that I tried with mobile data which is a completely different provider.

Matlog shows me 3 times this error ;

12-16 04:07:20.809 E/*cutorServiceWorkRunner(2462): at com.imdb.mobile.redux.framework.IMDbLoop.update(IMDbLoop.kt:163)
[Android Apps and Games] XtraWater:
I solved the issue with installing an older version back from August from apkmirror and hide the app with sudohide from playstore. One user on their support forum reported the exactly the same issue but didn't got any attention. The old app runs faster anyway. I don't think it has anything to do with adaway.
[Android Apps and Games] DiamondJohn:
to be clear, its the IMDB app you corrected, not AdAway?
[Android Apps and Games] XtraWater:
Yes, I installed an older version of the IMDB app.
[Android Apps and Games] PerfectSlayer:
Hi all,

Here is a new version that will bring a touch of color to AdAway for the coming new year 😊

Thanks to brijrajparmar27, the home screen was improved with icon colors and background!

I even reworked settings toggles according its advice. Don't hesitate to share your feedback about those changes.

Otherwise, there is a bunch of (minor) performance improvements and the usual dependency updates.

Please note I now use the Jake Wharton's Timber logging library and enabling the verbose logging option will have a performance impact (it always had but it should have a greater impact now).

I also enabled the 5.10 version of F-Droid in the built-in updater. Except the 5.11 version to be available from this store in the coming days.

Have a great holiday all! 🎄🎅

Changelog:

Improve home screen with icon color and decoration

Improve settings UI elements

Improve search filter performance in hosts list

Improve resource clean up after parsing hosts source

Improve logs with Timber

Improve button descriptions

Update Android gradle plugin

Update AndroidX libraries

Update third party libraries

Update mongoose web server

Update translations

Thanks:

Special thanks to brijrajparmar27 for its contribution.

Download:

AdAway 5.11.0
[Android Apps and Games] gonzo1963:
Good morning,

Has the disconnection bug when transferring data to WiFi on non-rooted smartphones been fixed?.

Regards
[Android Apps and Games] GrandAdmiral:
So trying to update the app to the latest version on my Pixel 5a and it's telling me it can't be installed as the package conflicts with an existing package. Anyone run into this before?
[Android Apps and Games] zgfg:
afaik, xda/github vs cdroid versions have different package names, hence cannot be updated one from another

I just updated xda/github directly through the app, no problen
[Android Apps and Games] GrandAdmiral:
Yeah, that's what I'm trying to do. Perhaps I should just uninstall this one. Only change I've made to the phone was moving from Android 11 to 12.
[Android Apps and Games] Trần Dũng VN:
OMy Oneplus 9r is rooted. But the adway is not working.
[Android Apps and Games] zgfg:
What exactly is not working - blocking apps but in which app?

Android version?

Have you enabled Systemless hosts in Magisk app and rebooted, then configured AdAway and rebooted again?
[Android Apps and Games] Nergal di Cuthah:
You've got to be more informative, but at a guess, you haven't added systemless hosts in magisk and rebooted . If you have and it still doesn't work come back and give a whole lot more information to go on.
[Android Apps and Games] phillipmckinnish:
Thank bro,been messing with this for 30 min all I had to do was reboot...Thanks
[Android Apps and Games] gonzo1963:
Good night,

Can anyone answer this?

Thank you.

Regards