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

DiamondJohn

Recognized Contributor
Aug 31, 2013
4,788
3,899
243
Sydney
The following has been a question in my mind for a while, but its so trivial I havent posted.:cowboy:

I previously was running an Oreo ROM, and had a large host file, explicitly in the system/etc folder, not via magisk systemless host. It was very large, and the smart money all said i should expect it would slow down my phone; but I can't say i noticed it. And it was not a strong device by today's standards.

I have recently upgraded to a Pixel 4a, and for the first week I didn't root it in case I chose to return it; I didn't want any hassles with the returns/warranty. So, I went the rootless VPN mode. I have stayed in VPN / rootless mode even thoough the phone is now rooted. I again have bulked up my host sources, and now have >500k blocked hosts. I do like not having to reboot to have the hosts updated.

I again, perceive no slowing down of my phone (the 4a is much more powerful than the previous one). I understand that using the VPN and the extra large hosts files WILL be slowing my phone down, but I don't feel it. Is there any specific test I can try to highlight the effects on my device?

My biggest "problem" (to me its really proof that the hosts are working) is that in the app Google news, some links direct you through tracking websites, which then re-direct you to the actual story, and so, those that go through tracking sites, fail.
 
  • Like
Reactions: Ebbasta

andy356

Senior Member
Jul 5, 2016
1,292
559
113
Changelog:
  • Add new unique source parser with parallel processing
Thanks:

Special thanks to andy356, fusionneur and sr1canskhsia for their bug reports.
Special thanks to YOU, Bruce! You implemented an entire new source parser based on my bug report. That's amazing! Thank you so much for working on this critical app. Can't wait to try this update out when it arrives on F-Droid.
 

CaptainChrom

Member
Jan 3, 2018
18
1
3
Feature Suggestion

Automating the addition of new hosts sources/user rules

Currently you have to add every new hosts source, or rule by hand by copying the link and then pasting it into the settings in AdAway.
This requires you to go through multiple screens until you are inside the respective menu inside AdAway and can add a new rule.
If you visit a lot of sites that you want to support by allowing ads, the ~20-30 seconds needed to copy & paste the link everytime will add up really fast and make it annoying to add exceptions. This reduces the chance that a user adds a website to their exceptions a lot.

Here's my suggestion:
The task could be automated through the android share menu.
When a link is shared with AdAway (or if turned on, the pop-up is clicked after a link is added to the clipboard) it opens AdAway (or just a pop-up if draw over other apps permission is granted and shows a screen where you can pick whether you want to add the URL to your blocking, or your exceptions list. Then the app takes you back to your browser (or whatever app you were using before) and applies the new settings in the background.
This could also be implemented by adding multiple shortcuts to the share menu, so that the app doesn't even need to be opened to add the new rule.

This would reduce the required amount of taps & time by a ton. Instead of 14 taps & ~20-30 seconds (press on URL bar, long press link, copy link, home, app drawer, adaway, exceptions, plus button, hold for paste, paste, add, apply settings, recent apps, last used app) it would take only 4 clicks (3 if multiple shortcuts are added) and a couple of seconds (three dots menu, share, AdAway, select hosts source/positive or negative rule).

Optionally you could also add the ability to force close and reopen the last used app, so that you can continue browsing with the new settings applied without having to reboot the device, or force close & reopen the app manually, which also takes a lot of clicks.
This could be implemented by adding a box that you can tick, or a second button, so that you can always choose wether you want to force close or not using a single click. The button could have a different icon to make it easily distinguishable from the regular button.

It could look like this (pop-up after you tap on AdAway on Android share menu):

[Add as hosts source] (plus icon) (reload icon)
[Add as positive rule] (plus icon) (reload icon)
[Add as negative rule] (plus icon) (reload icon)

I would love to hear feedback on this idea and I would love seeing it implemented inside the app one day even more.

Cheers ;)
 
Last edited:

DiamondJohn

Recognized Contributor
Aug 31, 2013
4,788
3,899
243
Sydney
Feature Suggestion

Automating the addition of new hosts sources/user rules

Currently you have to add every new hosts source, or rule by hand by copying the link and then pasting it into the settings in AdAway.
This requires you to go through multiple screens until you are inside the respective menu inside AdAway and can add a new rule.
If you visit a lot of sites that you want to support by allowing ads, the ~20-30 seconds needed to copy & paste the link everytime will add up really fast and make it annoying to add exceptions. This reduces the chance that a user adds a website to their exceptions a lot.

Here's my suggestion:
The task could be automated through the android share menu.
When a link is shared with AdAway (or if turned on, the pop-up is clicked after a link is added to the clipboard) it opens AdAway (or just a pop-up if draw over other apps permission is granted and shows a screen where you can pick whether you want to add the URL to your blocking, or your exceptions list. Then the app takes you back to your browser (or whatever app you were using before) and applies the new settings in the background.
This could also be implemented by adding multiple shortcuts to the share menu, so that the app doesn't even need to be opened to add the new rule.

This would reduce the required amount of taps & time by a ton. Instead of 14 taps & ~20-30 seconds (press on URL bar, long press link, copy link, home, app drawer, adaway, exceptions, plus button, hold for paste, paste, add, apply settings, recent apps, last used app) it would take only 4 clicks (3 if multiple shortcuts are added) and a couple of seconds (three dots menu, share, AdAway, select hosts source/positive or negative rule).

Optionally you could also add the ability to force close and reopen the last used app, so that you can continue browsing with the new settings applied without having to reboot the device, or force close & reopen the app manually, which also takes a lot of clicks.
This could be implemented by adding a box that you can tick, or a second button, so that you can always choose wether you want to force close or not using a single click. The button could have a different icon to make it easily distinguishable from the regular button.

It could look like this (pop-up after you tap on AdAway on Android share menu):

[Add as hosts source] (plus icon) (reload icon)
[Add as positive rule] (plus icon) (reload icon)
[Add as negative rule] (plus icon) (reload icon)

I would love to hear feedback on this idea and I would love seeing it implemented inside the app one day even more.
For adding new host lists in bulk, I have used the import JSON file.

As for restarting the last used app, if you are using Magisk systemless hosts, then restarting the last used app wont do it. You have to reboot your device.
 

zgfg

Senior Member
Oct 10, 2016
4,833
2,141
233
For adding new host lists in bulk, I have used the import JSON file.

As for restarting the last used app, if you are using Magisk systemless hosts, then restarting the last used app wont do it. You have to reboot your device.
You want to add ten or hundred hosts to the block list?

Create your own file e.g. myBlockedList.txt with the same format as online hosts file:
127.0.0.1 24log.de
127.0.0.1 24pm-affiliation.com
127.0.0.1 2mdn.net
127.0.0.1 2o7.net
127.0.0.1 2znp09oa.com

Then go to the Hosts sources list, + to add new one, and instead of URL click to File, and navigate to your file

Apply and voila

See the screenshots, observe that instead of https://, this is now content:// type
 

Attachments

  • Like
Reactions: androcraze

DiamondJohn

Recognized Contributor
Aug 31, 2013
4,788
3,899
243
Sydney
You want to add ten or hundred hosts to the block list?

Create your own file e.g. myBlockedList.txt with the same format as online hosts file:
127.0.0.1 24log.de
127.0.0.1 24pm-affiliation.com
127.0.0.1 2mdn.net
127.0.0.1 2o7.net
127.0.0.1 2znp09oa.com

Then go to the Hosts sources list, + to add new one, and instead of URL click to File, and navigate to your file

Apply and voila

See the screenshots, observe that instead of https://, this is now content:// type
It wasnt me that had the question,. and the poster who did ask the question, explicitly said host sources, not individual hosts.
 

DiamondJohn

Recognized Contributor
Aug 31, 2013
4,788
3,899
243
Sydney
Hosts sources through json already answered
Its ALL been answered before, including the hosts in a file you spoke of. I know this, because I was part of the conversation before it was an option built into AdAway, and presented and tested a work around that worked. My response was specific to HIS specific question.. I do not understand where you are going.
 

CaptainChrom

Member
Jan 3, 2018
18
1
3
Its ALL been answered before, including the hosts in a file you spoke of. I know this, because I was part of the conversation before it was an option built into AdAway, and presented and tested a work around that worked. My response was specific to HIS specific question.. I do not understand where you are going.
No, it's not all been answered. You only focused on the way less important part (the hosts) and left out the most important stuff: the user defined rules. Those are what have to be added over and over again. Once you have added a bunch of host sources when you set up the app you don't need to add many new sources or individual urls anymore. Yeah you may encounter a URL which is not included in any of your hosts lists, but that's very rare, especially if you have added a lot of hosts sources which get updated very frequently.
But you have to add new sites to your custom rules every single time your browsing and visiting new websites you want to support.
 
Last edited:

DiamondJohn

Recognized Contributor
Aug 31, 2013
4,788
3,899
243
Sydney
No, it's not all been answered. You only focused on the way less important part (the hosts) and left out the most important stuff: the user defined rules. Those are what have to be added over and over again. Once you have added a bunch of host sources when you set up the app you don't need to add many new sources or individual urls anymore. Yeah you may encounter a URL which is not included in any of your hosts lists, but that's very rare, especially if you have added a lot of hosts sources which get updated very frequently.
But you have to add new sites to your custom rules every single time your browsing and visiting new websites you want to support.
I repeat, i was answering a specific question, specifically.
 

Nameless Foe

Senior Member
Jan 23, 2021
104
36
38
22
Does this app use a internal VPN?? I have my own i pay for.. Will this app use the adblock vpn or can i use mine still?
 
Last edited by a moderator: