yashsingh1/xdaforums huggingface dataset:
[Android Apps and Games] PerfectSlayer:
About your feedback:

1) Yes, I keep the old texts in a small card header. May be I should consider to shorten them or use ellipsis?

2) If it makes sense for everyone, why not. I did not think about it. (so horizontal pull will open the drawer and vertical pull check for update?)

3) Thanks!

1) Thanks! Even if I did not finish the whole makeover (adware feature for example), I thought it was the good time to show the result and ensure I moving the right way.

I mean, if I had to make some adjustments, I prefer to do it early and not on the whole app!

1) Hey, its a blocking issue here! I rely on the preferences support library but it is strange that it crashes with EditTextPreference. So you can't edit hosts custom target neither...

So I had a look and fix the issue by providing a custom layout for the edit dialog. I tested months ago and it worked. Maybe it is a support library regression.

2) Could you share a screenshot of the dialog you want to replace with a toast? (I am not fan of toast messages but I should be fine to fix the theme)

3) Yes, most of you complain about the need to reapply the hosts file after black/white/redirect lists edition. It is an heavy task to fix (let's say I edit the hosts file on the FS each time you edit the list, it could be tricky to synchronize the IO versus user inputs if you quickly edit a lot of items) and I don't plan to fix it for now.

1) Yes, same issue here. Text are too long.

2) See the quote below

Yes, it is on purpose. I still have the two dates but I only keep relevant info to the user: is your hosts up to date or not.

So if both online and local are 2 months old, it is "up to date" for the AdAway user as it can't do anything more to get fresh hosts.

Whereas if online is 2 days newer than remote, it will show the user it must update.

1) Hum, I saw a PR with this issue. Does it fix the launcher icon part?

2) So you want something like the attachment? To be clear, it is the background that must be adaptive, not the red color?

I'm not very aware of the adaptive part of the icon and shortcut as my main device is only on Android 7. I setup a Nexus 4 with Oreo and I will try to find a way to test it.

Thanks again!

Dev version update:

So here is a new dev version which includes:

Fix redirection IP and custom target dialogs in preferences

Fix multiple lines in home card hedear.

About the donation within the app, I don't really know where they go. Not to [MENTION=3355398]mrRobinson[/MENTION] but to Dominik Schürmann I guess.

I saw he updated the bitcoin address few days ago but I don't know who can access it.
[Android Apps and Games] Toutatis_:
No more crash when opening "Redirection IP" with this build here. :good:

I noticed another minor UI bug: when switching repeatedly between "Open hosts file" and "Home" menus, the red title bar will eventually show "Open hosts file" wheras the "Home" section is displayed. It doesn't happen with others menus.

Attached screenshot.
[Android Apps and Games] ktmom:
The screenshot was attached to this post. I'd reattach it again but the xda app isn't letting me and I am not close to my PC [emoji854]

"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
[Android Apps and Games] Ja_som:
[MENTION=2822685]PerfectSlayer[/MENTION]

Thanks for the v4, it works fine here, one not so important thing while it is dev build. The translation is mixed/not completed even it was OK on v3
[Android Apps and Games] TaranQ:
What I don't really understand. I installed Adaway on Oreo but couldn't get all the ads to disappear. I read that over mobile data it doesn't block ads. I can remember having just Adaway installed on Marshmallow and having no ads whatsoever even on mobile data?
[Android Apps and Games] ktmom:
Compare your host file size with Adaway enabled and disabled. If the size doesn't change, then there's a problem with the install of Adaway. If it does change, then make sure any to disable any proxy in your APN settings . Turn off "Data Saver" in chrome. If you are running a custom ROM, it could be interfering if it has ad blocking inbuilt.

"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
[Android Apps and Games] kryzeK:
1. Yes (or maybe), apparently everything is correct. The examples of how they would look are a little strange in the PR. Maybe this is good when marged.

2. Exact, just need a background with color #F5F5F5 (and yes, the bg is adaptive, not the red color). For more than a year I had made App Shortcuts icons for AdAway but now they are a little outdated because of the adaptive icons. But feel free to see how it should look :) BTW it would look like this for systems with circle as standard shape.

About your main device and Nexus 4: in Nougat you can get adaptive icons using Nova Launcher. You can even choose your desired shape. On Oreo a great app to test this feature is AdaptiveIconPlayground, simply perfect. :good:
[Android Apps and Games] DiamondJohn:
AdAway should work on both Mobile and WiFi. Unless you have an issue as described by [MENTION=6617276]ktmom[/MENTION]

As for how well it worked previously as compared to now, its an "arms race" to block ads, in that the advertisers are probably wiser and more pro-active to the ad blockers, and work harder to defeat them; eg change their hosts more often. I noticed ads slipping through, so I expanded my host sources from the default handful to 30 host sources. My main problem is that I may of gone too far:silly:, and am blocking most of the images on a lot of web sites.:(
[Android Apps and Games] jcmm11:
[MENTION=2822685]PerfectSlayer[/MENTION]

Request - re:Redirect IP

Can you add an option to also specify an ipv6 address (if enable ipv6 is true)? (If you want to redirect to 0.0.0.0 you probably also want to redirect to :: )

Disable AdAway option: why are you replacing the hosts file instead of just unmounting it (Magisk)? It looks like you're just overwriting the file, requiring a download to re-enable, rather than an unmount which would just require a remount.
[Android Apps and Games] guest4711:
This should be ok in systemless mode, but not with standard solutions like LOS-su-addon. (And yes, on some older devices like my i9100 magisk will never be available.)
[Android Apps and Games] martyfender:
Attached are screenshots showing the text merged problem.
[Android Apps and Games] WhammyDroid:
Is anyone noticing that Adaway does not recognize the systemless functionality within Magisk when it is enabled? The option for me in AdAway to select systemless is greyed out.
[Android Apps and Games] casouzaj:
It's been this way since systemless root solutions came up. If you enabled systemless hosts in Magisk settings, don't worry, because it's really systemless. Anyway, this issue has been fixed in [MENTION=2822685]PerfectSlayer[/MENTION]'s v4 build.
[Android Apps and Games] oreo27:
Testing 4.01. Love the updated UI. I'd recommend allowing the initial help card to be swiped off the screen.
[Android Apps and Games] Torngarsak:
Is anybody else having issues blocking YouTube adds when accessing via chrome? Used to be blocked but I've been getting adds lately - I'm blocking adds everywhere else (see - XDA site) so I'm a bit perplexed if I have a setting wrong somewhere
[Android Apps and Games] DiamondJohn:
AdAway does not specifically block YouTube Ads.
[Android Apps and Games] ktmom:
I would try using Firefox with the Ublock origin add on and see if they are blocked. Google (chrome) has a vested interest in forcing the ads.

You could also see if DNS Logging gives you anything to block when using chrome.

"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
[Android Apps and Games] DiamondJohn:
I don't think DNS logging will help. I believe that YouTube (ie google) push the pre-video ads from the same servers the video is pushed from. So blocking one will also block the other. I personally use NewPipe to access youtube video's without the ads, but that wont help your in-browser ads (ie within chrome); ie the actual question:o.

To block within a browser, I think something like the above may be your only route. I am a little surprised that I can block youtube ads with a chrome extension on my desktop and there isn't something similar for the mobile chrome.:(
[Android Apps and Games] Torngarsak:
Oh Wow, TIL. I guess I'll go ahead and give Firefox another try since chrome moved away from the address bar at the bottom setup anyway.
[Android Apps and Games] Lorog:
Hi,

is it always required to reboot phone after updating hosts file?

Thanks
[Android Apps and Games] Aghoraswami:
Yes it is . As then only the new hosts files can merge properly with existing and update the hosts files

So for its proper working yes need to re boot or else it will stop working and you will start seeing ads.
[Android Apps and Games] TaranQ:
I checked the host files content and it is ok.

(Filled when enabled and empty when not)

And I am talking about after my OS upgrade so from one day to another I got still lots of ads with Adaway so can't be anything with "arms race"

Could be though I added extra sources to host previously but can't remember now which
[Android Apps and Games] DiamondJohn:
That's exactly what I would expect. Have you got it on an auto update? some ads will slip through as the ad-servers (ie hosts) are changed intra-day. ie the "arms-race"

If you see an add on a web page, re-download your host list and reboot (I personally don't need a reboot to see the effects, your phone may act differently differently), then go back to the web page to see if that has cleared the ads.
[Android Apps and Games] jcmm11:
No. It depends on phone and Android version but with most current setups it's actually not required. You will probably have to restart the browser etc.
[Android Apps and Games] TaranQ:
Here too works without reboot. But what I wanted to say that it went from absolutely NO ads whatsoever in MM to lots of ads under Oreo overnight. It struck me as I thought installing Adaway would help me get rid of the ads all the way with no special user intervention like it did under MM. (Btw I had no special user added host entries).

I don't have it set to auto update but i tried updating (and rebooting) when I noticed the ads but it didn't do the trick.
[Android Apps and Games] jcmm11:
I've been thinking about this.

AdAway already has to know where the different systemless root solutions store their copies of the hosts file.

There's nothing to prevent AdAway from implementing it's own systemless hosts solution for those root solutions that aren't designed to work as systemless.

Store a copy of the hosts file in AdAway's data directory. Use a bind mount to mount that copy over the file in /system/etc

That would enable you to use the same basic mechanism for all root solutions.

Just because a root solution isn't systemless doesn't mean you can't implement systemless concepts on your own in appropriate situations.
[Android Apps and Games] DiamondJohn:
Its a fairly simple test to check if Adaway itself is working.

1. make a copy of the AdAway generated hosts file onto your SDCard.

2. Turn off adaway / re-enable your default host file

3. Open the AdAway host file that you had backed up

4. Now try pinging a host name from your the backed up AdAway hosts file

5. Some of them may not ping anyway, but as you move down the list, one will actually ping back (other than 127.0.0.1 or 0.0.0.0, if you do negt this you have not done the steps above correctly, or see step 10). Remember that host name

6. Re-open Adaway and download the hosts

7. Search for the host that you got above in your new hostfile, If you don't find it, go back to step step 1

8. Now try pinging the host that you found in the backup host file, and the new host file

9. If it does not ping back or pings back 127.0.0.1 or 0.0.0.0, your AdAway / host file is working, and its your host file sources list that is lacking if you see ads elsewhere, not AdAway.

10. If it does ping back and it IS in your latest host file, then look back at the other response as to why your host file is being ignored

When comparing MM and Oreo, these are separated by time, and the ad hosters are getting wise to host based Ad blockers and/or your list sources. ie you also need to get more aggressive / wiser to match or beat them at their game. If you have the default host sources, you probably only have 4 or so, I personally have about 30 and last I checked, crDroid Oreo has something like 10 by default.
[Android Apps and Games] prathu30:
What's the redirect list in your lists? I haven't ever used it.
[Android Apps and Games] DiamondJohn:
Are you asking me that question? as I do not understand what you are asking.
[Android Apps and Games] prathu30:
Wasn't asking you in particular. Ok so in your lists there are 3 list black white and redirect. What does redirect do exactly?
[Android Apps and Games] guest4711:
It contains an individual ip to be used for each host listed there. (Whithout this list all blocked hosts are redirected to localhost. So you could redirect some trackers to a webserver under your control to analyze what some apps are trying to send, e. g.)
[Android Apps and Games] DiamondJohn:
I do not use redirect. I assume it is to redirect a specific host to a different specific IP of your choice. Eg, although not of any use, would be to send someone to www.duckduckgo.com IP (and hence their website) every time you tried to access www.google.com. This example would be a bad idea.

You could also redirect a host to a specific server. Many hosts (such as google) have multiple servers (load balance or region specific etc) and hence multiple IP's. You could force all your www.google.com to go to a specific server (ie IP address). The closest is actually on my PC, I redirect GitHub to an IP, as when using it normally, it makes a lot of calls in short succession and I get locked out of my DNS server, which I think is thinking its under a DOS attack.

As I said, I haven't personally realised a use for the redirect feature, so my example is useless in practical terms. Maybe some else has an actual use for it.
[Android Apps and Games] ksio89:
Would anyone know a list to block ads on Bing search engine? The domains are like these: "46076550.r.bat.bing.com". The number can vary, I tried to add some hostnames to blacklist and rebuild hosts file, but this didn't work. Thanks in advance.
[Android Apps and Games] ktmom:
It's a losing battle to try and do this through a host file such as Adaway does. Better to use a browser that lets you use Ublock origin.

"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
[Android Apps and Games] badmojr:
Stop complaining and start blocking!

http://1hosts.cf

http://sbc.io/hosts/hosts
[Android Apps and Games] PerfectSlayer:
About your feedback:

I saw this attached screenshot but I can't find any dialog on it?

Yep, it's clearly a dev version. When stable enough, the source code will be merge to the main repository and the default (english) translation must be send to transifex.

I am not really familiar with this platform so don't expect to have translation few weeks after the release.

Thanks for this app! It's very useful to test so here here the result:

1) I added adaptative icon and it looks like to work well.

2) I rework the app shortcut to be apdatative and based on vector drawables. So I removed all PNG resources, tweak the Material design ones to add some padding and created the related mipmap. It works well and should be easier to maintain. Check the attached screenshot for result.

It will require to create another settings and a dedicated dialog to configure it.

Could you create an issue on my GitHub to get track of it? It's a good idea and I don't want to loose it.

Are you using custom font or font settings?

I thought about it. But once swipe, the home screen looks so empty (especially if you not enable the web server).

I might consider adding another button than "Show more help" like "Latest changes" to show the changelog or things like that.

Will it make the first card more useful for advanced users?

Dev version update:

So here is a new dev version which includes:

Add adaptive launcher icons (8+)

Add adaptive app shortcut (7.1+)

Add new hosts content screen.

So there is a brief explanation of what the file is and its actual first lines displayed. Now you could check if and when AdAway is applied even without having a third party file editor installed in your device. Otherwise, the button to open the hosts file is still available at the bottom of the screen.

Fix application title not restored on configuration change

Fix screen change when opening hosts file

I also try to apply (code and resources) shrinker as I saw there is the half of the dex file unused (around 2.5mo of useless classes and methods) but I only save ~800ko after apk compression.

If I really want to decrease the size, I should split build into multiple apk by architecture (possibly saving 1.2mo) but I don't think it worth the trouble (for the dev to test each versions nor for the user to download the right version).

The overall process should make the size of the app shrinks from 5.2mo to ~3mo. According the nowadays network connection and phone storage capacity I don't think I will do it!
[Android Apps and Games] oreo27:
Just downloaded the new version. I suppose it will indeed look empty only having half of the screen occupied. But I'd personally prefer it that way as opposed to seeing the help text. Thanks for all your work on AdAway. Systemless hosts finally work correctly!
[Android Apps and Games] martyfender:
Quote:

Originally Posted by martyfender

Attached are screenshots showing the text merged problem.

Are you using custom font or font settings?

No just my stock rom rooted with Magisk v16.4. It is an 8" tablet in landscape mode, which is listed in my signature. The latest version still has the problem. It looks like just adding a blank line between the two would solve it?
[Android Apps and Games] pieriv59:
How to solve it ?

Thx
[Android Apps and Games] DiamondJohn:
The first step would be to translate it to English. It is the official language of the board.
[Android Apps and Games] ktmom:
It looks like there's a problem linking the hosts file. What device? What ROM? What root (SuperSU, Magisk, something else)? Are you rooted system mode or systemlessly?

"Good judgment comes from experience, and a lot of that comes from bad judgment." - Will Rogers
[Android Apps and Games] PerfectSlayer:
«Good news everyone!»

I just merged my work into the main repository so it is up-to-date and we now have a CI! :victory:

For non-developers, it is Continuous Integration (CI) a tool in charge of checking commits and pull requests and building the app so you can quickly confirm you are not breaking anything.

I might also consider to plug a static analyzer soon (SonarCloud) to check code quality (there are still many issues and lint errors shown by AndroidStudio, I won't fix them all but I want to be sure that I am not adding some more..!).

About tool integration, does anyone knows well how works transifex?

Is there any better (I mean, more integrated with GitHub) tool? Because it looks like we had to manually publish and synchronize the locales from GitHub sources to the translation platform.

Did I miss something? Has anyone some experience with Android app location through GitHub? Thanks!
[Android Apps and Games] hariraj96:
Why is systemless oprion disabled in preferences??

On hydrogen running bootleg ROM oreo with magisk
[Android Apps and Games] Pkt_Lnt:
It has been answered many, many, many times above over and over and over and over.

The post directly above yours is the developer fixing it, please read his posts about this and try the dev preview that fixes this. It is posted above as well.
[Android Apps and Games] g104:
The Adaway is not working with Spotify?
[Android Apps and Games] oreo27:
Nice! I don't work with Android per se but one thing you could add to Travis in my experience is releases so you can have AdAway compile once it passes tests.

https://docs.travis-ci.com/user/deployment/releases/

It'll lessen the times you need to upload dev versions to third party servers as well. Github's servers are quite fast in downloading.

Something like this:

https://travis-ci.org/0reo27/mia1module

Here, I use nodeJS(Gulp) to compile my Magisk module and upload a release. The idea would be similar if you're interested in that.

https://github.com/0reo27/mia1module/releases

Also:

https://travis-ci.org/AdAway/AdAway

leads to:

We couldn't find the repository

AdAway/AdAway
[Android Apps and Games] Ja_som:
Nope.
[Android Apps and Games] guest4711:
Use a tool like Ad-Free (AdBlocker for Spotify) - https://f-droid.org/app/ch.abertschi.adfree for this purpose...
[Android Apps and Games] ~kyle:
By creating a white list.

http://slickdeals.net/f/6465800-list-of-hosts-to-add-to-adaway-adblock-white-list
[Android Apps and Games] tsiftsism:
It doesn't block ads in AppLock.

Can anyone confirm it?
[Android Apps and Games] transfo47:
AdAway randomly stopped working on my LG G2. All I get is: Error: Not able to apply hosts file
[Android Apps and Games] ChiDi9901:
Adaway on my Nexus 7 FHD running Android 4.2.2 KitKat works very good! It applies the host files flawlessly. (v2.8)

Gesendet von meinem Nexus 7 mit Tapatalk
[Android Apps and Games] Caebron:
Adaway or Adblock Plus

I use Adblock Plus on my PC and really like it, in that it does what it is supposed to do every effectively. What is the difference between the two, if any? (ie, which one do you guys prefer, and why?)
[Android Apps and Games] horst0815:
4.2.2 isn't KK, guess you meant 4.4.2 :fingers-crossed:
[Android Apps and Games] ChiDi9901:
Oh, whoops, yes I meant that oft course haha :silly:
[Android Apps and Games] soulmate53:
very useful app, a must have..
[Android Apps and Games] DecypherT:
adf-ly is not loading on my N4 anymore. It shows the page but I can't continue

site is whitelisted. More people with this problem?

Send from my Nexus 4
[Android Apps and Games] goldflame09:
Add ******* to your whitelist and reboot. It's always worked for me.
[Android Apps and Games] slixzen:
Has there been anyone getting this to work on the 4.3 front? I have been reading up, and I know the reason as to why it isn't working now.

The weird part is that Adfree works perfectly fine, but Adaway seems to not.

I enjoy using Adaway over Adfree, so I would love to be able to use it again.

Here are the things I am using:

Galaxy S4 - 4.3

ROM: Stock(ish) v2

Kernel: ktoonsez

Chainfire's Super User
[Android Apps and Games] tlf55:
So which version should I use with my n5 4.4.2 art enabled ??

Envoyé de mon Nexus 5 en utilisant Tapatalk
[Android Apps and Games] Caebron:
The link on page 1 worked fine for me. (running 4.4.2 & ART meself)
[Android Apps and Games] Pkt_Lnt:
Change the host file location and let it redo the symlink as stated earlier.
[Android Apps and Games] slixzen:
I tried that, and I was still having issues after rebooting. As can be seen by the attached pictures.
[Android Apps and Games] Pkt_Lnt:
Did you change it in Adaway preferences, that is not clear from your post.
[Android Apps and Games] slixzen:
I did, I let Adaway create the symlink.
[Android Apps and Games] Pkt_Lnt:
Sorry, no idea. It works on all my devices just fine now after changing that setting.
[Android Apps and Games] slixzen:
Yeah, thats why I am not sure what is going on. Now adfree is having trouble too. It seems like something is causing the files to be write protected. I thought Knox was disabled in the stuff I flashed, if not, then that might be the problem, but considering I am on all custom firmware/rom/recovery, etc I doubt that is the case.
[Android Apps and Games] EP2008:
I'm having trouble too all of a sudden. Permissions are being changed on the hosts file.