yashsingh1/xdaforums huggingface dataset:
[Android General] Portgas D. Ace:
Well, it should be quite easy:

Go to System Settings -> Network Connections -> More networks -> Mobile Networks -> Access Point Names. Copy all settings from your default APN, add a new proxy and paste all settings from your default APN (if you don't know how to copy the settings from your default APN, just procede with the next step by entering the proxy and port info to your current APN). Now add the following entries:

Proxy: localhost

Port: 2020

Open the three dot menu on top right and save the configuration. You can always revert back to your default APN settings by clicking on "reset settings".

I have never done this by myself, as I have a rooted device and use AdFree or AdAway, so please be aware that I do not take any responsibility for what you do. If you are unsure, check the official AdBlock Plus for Android web page, where you can find a configuration manual. Another thread for mobile network settings you can find here on XDA.
[Android General] reddead66:
might be a silly question..

so i am confused, if i am using adfree or adaway will i see ads on my chrome or other browsers?
[Android General] Portgas D. Ace:
As was said in the description of AdAway and AdFree, both apps modify the host file of your device. All access to the web pages on this host list will be blocked, both in apps as well as in internet browsers. So basically you should have an ad-free Chrome browser. I would recommend to install one of the apps and check it for yourself if you have a rooted device.
[Android General] wantabe:
If you are using the data saver feature in Chrome or Opera you will still see ads when using a hosts file. Data Saver has to be disabled for a hosts file to work 'properly.' With Chrome's data saver enabled all of the data (including ads) for the website you are viewing is coming from Google's compression servers. Opera uses their own servers, same principle.
[Android General] Portgas D. Ace:
Thanks for reminding me about this issue. When reading the thread again, I got the feeling that I missed something and you just gave me the answer :good:
[Android General] wantabe:
You're welcome! ;) I've always used a hosts file on mobile and desktop, been working on it for years. It looks like some ads are blocked, some aren't and I see image placeholders when trying to use a hosts file with the data saver enabled. Without data saving enabled I never see image placeholders and rarely ever see an ad in Chrome or Opera.
[Android General] Primokorn:
[MENTION=5901790]orville87[/MENTION] You may want to add NetGuard by [MENTION=2799345]M66B[/MENTION] to your collection, an awesome no root firewall (free/libre software) with which we can manage our hosts file (Github version only) and Cornowser by [MENTION=6584600]xdvs23[/MENTION] (open source web browser with built-in adblocker).

2 apps to highlight IMO :)
[Android General] xdvs23:
Thanks for mentioning Cornowser, I'm glad to be able to share it with you all. :)
[Android General] Portgas D. Ace:
Done. Thanks for the suggestions :good:

Everyone gets the credits he/she deserves :)
[Android General] Primokorn:
A new solution to add ;)

http://xdaforums.com/android/software-hacking/ads-adblocker-v1-0-t3283855
[Android General] Portgas D. Ace:
Thread updated, see change log (thanks to [MENTION=4958579]Primokorn[/MENTION] for the suggestion :good:)
[Android General] jacomail95:
I report new found adblocking methods

AdClear app

http://xdaforums.com/showthread.php?t=3309011

Keweon DNS based Adblocker

http://xdaforums.com/showthread.php?t=3259400

Personal HTTPproxy app

http://xdaforums.com/showthread.php?t=3339874

Inviato dal mio Nexus 4 con Tapatalk 2
[Android General] krebz:
The way lucky patcher blocks it could be also valid (host related), right?
[Android General] Portgas D. Ace:
No discussion of this app here on XDA. I will never include such an app in my guide.
[Android General] Lil Diddy:
LOL.

Just curious, what's wrong with it?
[Android General] Portgas D. Ace:
I am not sure which part of "no discussion on XDA" has been unclear. If you want information about it, search for it and you might get to know why such kind of apps are against the idea of XDA.
[Android General] xdvs23:
I just wanted to keep you updated with one of the latest changes in Cornowser. Now you can also whitelist websites, so that if you need to disable AdBlock or want to support the webmaster, then you can just add it to whitelist and refresh the webpage :)
[Android General] Portgas D. Ace:
Thread updated (see changelog for details).

Thanks to [MENTION=4947414]jacomail95[/MENTION] for the suggestions.

I removed AdBlock Plus and AdBlock Browser (both from company Eyeo) due to the fact that both apps have been reported lately to show ads from companies that pay money to become part of a whitelist of the Eyeo company (this way the company makes money).
[Android General] Einheit-101:
A large thread and nothing about ad2store reditections
[Android General] Portgas D. Ace:
I use AdAway in combination with MinMinGuard and never had any ad2store redirection.
[Android General] Einheit-101:
Does AdAway even prevent the newest facebook ad2store redirection when u click the "messages" button within Chrome? I guess not
[Android General] Portgas D. Ace:
Why using Chrome at all when you can use Cornowser (based on Chromium), that will block ads and redirections for you?

By the way, Chrome does not redirect me when choosing the Message button.
[Android General] Einheit-101:
#1 Well i dont know what you do, but its happening (1 second later - hello PlayStore)

http://i.imgur.com/18bEfTD.png

#2 because Cornowser doesnt support ChromePie, if that+sync would be available for something else i would uninstall Chrome in a split second (Btw. its not really chrome, its TugaBrowser, but its not better at all)

€DIT:

Cornowser throws an Error 120101 when pressing the messages button, error while opening the crappy intent that redirects to the playstore. (ERR_UNSUPPORTET_SCHEME)

What we need is something like an intent-blocker that prevents browsers from launching the PlayStore
[Android General] Portgas D. Ace:
This does not happen at all for me :confused: But anyway, I do not use a web browser on a regular basis to visit FB, but some alternative clients, such as Metal for Facebook or Facebook Lite. Sometimes, when my data plan is low, I use Opera Mini, which will also save bandwidth.

You should visit the Cornowser thread and ask [MENTION=6584600]xdvs23[/MENTION] for help, he might implement the ChromePie plus sync if possible. Also a log file that includes the bad redirection might help to solve the issue.

Try ReceiverStop, an Xposed module.
[Android General] xdvs23:
I got this as a feature request. Adding to planned features list. Remind me if I forget it.

Intent handling will be improved soon.

Got this as feature request, too. Adding asap.
[Android General] blackholeredstar:
I have difficulties to block ads in the app called "google" (which contains google now cards and google search). Whenever I do a search from this app, I see many ads from google in the search results. Does any of the mentioned methods block these?
[Android General] Portgas D. Ace:
[MENTION=7434396]blackholeredstar[/MENTION]

My best bet would be AdAway. If you are rooted, install AdAway and see if it blocks ads within the Google app (I personally don't use the Google app, so I can't give any information based on experience about this).
[Android General] blackholeredstar:
Unfortunately that does not work. I am rooted. I downloaded and applied the host files in the AdAway app, restarted my phone and it did not help...
[Android General] Portgas D. Ace:
Let me check what I can do for you. I will do some testing and report back.
[Android General] blackholeredstar:
Thank you very much, that would be great!
[Android General] Portgas D. Ace:
So I just downloaded the Google app and did some searching. But I did not come across ads in the search results.

Could you post a screenshot showing ads within the Google app?
[Android General] Einheit-101:
Looks like you will have 1 more user very soon ;)
[Android General] xdvs23:
Yeah I would be glad about that.
[Android General] blackholeredstar:
[IMG="ads in google search"]https://postimg.org/image/cuy3ri0g1/[/IMG]
[Android General] Primokorn:
Are you using a VPN or proxy or data saver option?

Anyway, Google wants to impose their "authorized" ads. You'll have to deal with it in a near future or leave Google stuff...
[Android General] blackholeredstar:
Oops, i uninstalled the firefox extension abp (since now i want to use adaway) and now i see the ads even after performing the search in firefox...

No proxy, no vpn, no data saving.
[Android General] Primokorn:
Open /system/etc/hosts and check if you see "# This hosts file has been generated by AdAway on....." If not, you didn't properly apply AdAway sources.
[Android General] blackholeredstar:
Yes it is there. Btw, all 'regular' ads on websites and in apps are blocked. Only those in the results of google search persist.
[Android General] Primokorn:
Check this out. There's a dedicated thread for AdAway BTW (try asking there - only if you have downloaded AdAway from OP).
[Android General] Asiier:
Opera now have ADBlock, you may want to add it to the list
[Android General] Portgas D. Ace:
Thanks for the suggestion, [MENTION=6187429]Asiier[/MENTION]. Opera Mini has been added to the list.
[Android General] Portgas D. Ace:
Thread updated, see changelog for details.
[Android General] Primokorn:
Another candidate for the Browser category: Atlas (awesome app BTW)
[Android General] Portgas D. Ace:
Yeah, you are right. Totally forgot about Atlas. Used it some years ago and there has been an update lately. Will add it in the next days.
[Android General] SaschaHa:
Thanks for this great guide and adding Slimperience Browser to it :)

I will instantly install MinMinGuard, it seems to be a great app for me :)
[Android General] jacomail95:
Add also the modded Cyanogen Gello Browser, it has adblock, the original app not

http://xdaforums.com/showthread.php?t=3384782

Inviato dal mio Nexus 4 con Tapatalk 2
[Android General] vasra:
Can NOT edit /system/etc/hosts file (full root, full RW access)

Has anybody ran into the following and does anybody know a fix:

1. Have fully functioning SuperSU root 2.71 (verified by/in many apps)

2. Fave full RW access to /system/etc (have created/edited files in /system/etc)

3. Yet, I cannot edit/overwrite/remove/create file /system/etc/hosts

4. There is a file /system/etc/hosts, but it cannot be removed/edited/changed/moved

5. No app can touch hosts file (incl. Root Explorer, AdAway, Terminal Emulator, etc). All fail trying to remove/access/edit the file.

I'm running Android 6.0.1 Custom ROM (S7/N5 based for Note3 N9005).

Because of this I cannot make hosts based ad-blocking to work.

I used to rely on AdAway (brilliant), but after upgrading to Android 6.0.1, I can not seem to be able to edit the hosts file any more.
[Android General] Portgas D. Ace:
Seems to be an issue with your custom ROM, ask for help in the ROM's thread.

But you could try to update your SuperSU to either v2.72 or v2.74 (Android N-preview build) and AdAway to latest version (v3.1.2, can be found here on XDA). I run SuperSU v2.72 and AdAway v3.1.2 without any issue.
[Android General] Portgas D. Ace:
Thread updated. See changelog for details.
[Android General] Primokorn:
"AdBlocker", is it the right name?

"Browsers with ad-blocking methods"

BTW it looks to me Firefox is a key element of this list since you can install uBlock Origin to use default & custom filters, manage 1st and 3rd party domains and modify a lot of security/privacy options in about:config.

And you missed Atlas ;)
[Android General] Portgas D. Ace:
Yes, AdBlocker is the correct name, but won't be discussed here as long as it is categorized as warez.

You have a valid point about Firefox, I will check it.

And sorry for again forgetting about Atlas :crying:, will add it now :good:

EDIT: updated thread, added both Firefox as well as Atlas. Thanks for reminding me :good:
[Android General] shadqw:
AdAway doesn't seem to block ads in Gameloft games
[Android General] Portgas D. Ace:
You should report this in the AdAway thread.
[Android General] Lordinal82:
Tnx for the info dude! Time to get rid of some ads :p
[Android General] cronociclope:
Very thanks for this Post. Also can try with YouBrowser, Chromium based and adblock native function, very fast, development by Mokee Open Source Team.

Download Here. Greetings.
[Android General] HannibalLecter:
What an awesome thread. Tremendous work describing each feature of each app in great detail.

However, with so much knowledge and lack of experience, I am a bit confused here. :)

Could you help me out and suggest the browser and adblock software you use :)

I currently use normal chrome browser and ADAWAY.

I do not see ads but I would like to know if adaway drains any resources and my phone would last longer (battery) without adaway or with any other adblocker

Thanks a bunch :angel:
[Android General] Portgas D. Ace:
Thank you for the warm words, I appreciate them :)

I currently use AdAway in combination with Lightning Browser and MinMinGuard. This combination has made my device nearly ad-free (beside some web pages that don't use hosts-based ads which I rarely visit). But 99,9% of ads are blocked, in web browsers as well as in apps.

AdAway doesn't use any resources if you disable its auto-updates and update the hosts file once per week/month manually. It just updates the hosts file and then sits in the background silently. But even if you allow auto-updates, you won't see much of resource usage or battery drain at all.
[Android General] HannibalLecter:
So happy to see that Adaway is what you use. I will stick to it. It is so easy.

I flash ROMs far too often, once and sometimes twice a week (clean flash)

The first thing I do is to enable ad blocking by side installing adaway :D

I read that minmin guard needs an option to be checked to block ads in newly installed apps.

Adaway doesn't need that, right?

Once installed, Adaway continues to block ads for every app regardless of when it is downloaded :)

Please advise me if I am correct? Adaway also removes the empty space created by blocked ads, is it? )I think it does not remove it :confused: )

Also, you use minmin guard mainly to choose which apps to exclude from ad-blocking, right?

If I want ads to be blocked everywhere, I am good with using only Adaway, right?

Thanks for your advice in advance :)
[Android General] Portgas D. Ace:
MinMinGuard has its own blacklist, where you can enable apps to be made ad-free by MinMinGuard. Beside this, MinMinGuard removes the empty space effectively within apps, which AdAway is still missing right now. Therefore I use the combination of both. AdAway does block most ads, whereas MinMinGuard removes also the empty spaces.

My suggestion: try to start only with AdAway and in case you find some apps where the empty space isn't removed at all, add MinMinGuard and enable its ad-blocking for this specific app. After doing so, reboot your device once (from my experience, this is required for proper functionality of MinMinGuard and might also be the same option as what you have heard/read). Then everything within the app should be ad-free.
[Android General] HannibalLecter:
Thank you so much for helping me out here. :) :)

The last I remember xposed was updated on July 8th and has not seen a new build since.

I flashed it on one of my devices (galaxy s2 i9100) on official CM 13 and it broke the ROM (dev options unavailable and lag throughout) worked fine a few days back. So, I did not use xposed since.

Waiting for a new build of xposed :)
[Android General] Portgas D. Ace:
You could give the systemless version by topjohnwu from here a try. It requires Magisk, more details can be found in the linked thread.
[Android General] ainurrofiq:
Is Cm based rom like RR can use magisk?
[Android General] Portgas D. Ace:
This question belongs into the Magisk thread, not into this thread.
[Android General] ainurrofiq:
Im sorry.
[Android General] tag68:
This is wrong. The IP address are not blocked by hosts file.

See, if you are a game developer, you want to contact home website game.com, you ask the OS for the IP address of game.com. The OS looks first in the hosts file (which is nearly empty without a tool like AdAway). If there is no entry for game.com, it looks for a DNS server in the active network settings. If there is a DNS, it asks for the IP address of game.com.

So blocking by AdAway does not work by blocking IP. It does work by telling a wrong IP to an address. AdAway does give 127.0.0.1 which a always is localhost, your own device. If the app can not find out the right IP, it won't contact home. It contacts localhost instead. If you do not have a webserver on your device, the game won't get an answer. If you enable the AdAway webserver, it gets an empty response.

It's similar to looking a phone number of a person you only know the name. You eg look in your hand written rolodex phone book. If you don't succeed, you may take a real phone book.

If an ad server uses a static IP and gets called without looking it up, it will show ads using AdAway. Like YouTube.
[Android General] Portgas D. Ace:
Okay, maybe I made this a little bit unclear. To adjust the whole thing: the hosts file contains a list of web addresses, for which any request for one of those addresses will be redirected to the localhost address, thus no ad content is downloaded, as the original address can't be reached. Basically returning a wrong IP address instead of the actual one.
[Android General] x000x:
Anyone know of a browser that does ad-block and data compression at the same time?
[Android General] jacomail95:
Opera Mini and Mini Beta, available both for free on Google play store

Inviato dal mio SM-T325 con Tapatalk 2
[Android General] x000x:
I've tried both, in fact have been tested them out all week. The 'regular' version of opera has a broken ad block. theres ads ~everywhere~

For the 'mini' version, the ad block works better but I still found some ads in some places. Neither ad-block can compare to something like ublock, but alaso opera doesn;t support extensions or add-ons. Mini also has a few features absent from 'regular' opera. However, I don't like the gui of mini... I much prefer 'regular' opera.

I still search for the perfect mobile browser :)
[Android General] naifaharsy:
Try soon,thx dude
[Android General] that lost guy:
Hi,

One of the best threads I have come across. Thanks a lot for this work. Well appreciated. I use Adblock, slimexperience and got to know about ublock origin from here, all of which work well. But I have a doubt. And I am much a noob so pardon my question please. Like everyone I am greedy too, and I want better control over the ads (pun intended). I want to know is there any way I can use minminguard on nougat?

Heartfelt thanks and Warmest regards.
[Android General] Portgas D. Ace:
Unfortunately no, as Xposed isn't available for Android Nougat (yet). But if it might become available, most likely MinMinGuard will work on Nougat.
[Android General] BergenLarsen:
So I've trialled gone through almost every single one of these ad-blocking VPN solutions for non-rooted devices. Found this gem which is also open source (can someone verify it?), doesn't selectively block ads(netguard), or occasionally just not allow network connectivity (adclear) or require pay for service (adguard). So I've installed block-this, so far very good: https://block-this.com

will trial it over another week or so. If you don't hear from me, it's going great. :D
[Android General] Portgas D. Ace:
[MENTION=2689363]BergenLarsen[/MENTION]

Seems you have found a nice and handy app there. Could you report back about how it works for you? If this works well without any slowdowns in network speed (beside proper ad-blocking, of course), I will add it to the thread.
[Android General] tag68:
In the collection there is DNS66 missing (category non-root). Using it since quite some time, prefer it against adaway (root) because you can turn it off per app and it does not want to modify system. Disadvantage: It uses VPN so it is not possible to use it while I'm connected with my Fritz!Box at home (is ok for me, maybe bad for others).
[Android General] Portgas D. Ace:
Also a good app, but I will not include it into this guide for now due to the big drawbacks it has (download issues for Android 7 as described in the thread and your issue with home network). But I will follow the development and may include it in case those issues are fixed.

On a side note: you can use AdAway in systemless mode since some time, so no need for modifying the system (but still requires root, though).
[Android General] Primokorn:
It seems the name lookups are managed by the server of Block This dev and that's not privacy-friendly.
[Android General] tag68:
Part 1: Download issues for Android 7 can be circumvented by whitelisting apps who use the broken Google download manager (not a fault of DNS66). I'm not sure how the other VPN adblockers may circumvent this bug, but they will also suffer from it for sure.

Part 2: You are aware that the disadvantage "there can only be one VPN active at a time" is a restriction of Android and ALL the non-root adblockers except the last one which implements a proxy share this disadvantage to use a VPN connection?

There are currently no known bigger issues in DNS66. But keep it out of the list for these reasons, I'm out of here now.
[Android General] Portgas D. Ace:
Part 1: just read about this workaround, seems okay for now.

Part 2: so the issue arises because you use a VPN at home through your router? If this is the case, then there is indeed no disadvantage of DNS66 compared to other VPN apps.
[Android General] tag68:
No, the issue arises because I use a VPN when not at home to access my router as if I would be at home. Those Fritz!Box devices are mighty:

- This enables me to wake up my computer at home

- This enables me to ssh/telnet to my computer at home without having to open some port

- This enables me to use my mobile as a phone for fixed line - I can use my home number for making and receiving calls at home or looking for missed calls when really being somewhere else

and many more.
[Android General] Portgas D. Ace:
Ah, I see, just misinterpreted your first statement then. I see no reason for now to not include DNS66 in this guide. Thank you for bringing it up to my attention and thanks for clarifying those things :good:
[Android General] infin1t3void:
Is there a way to block Google ads in Android 7 without using a VPN app? Every method here uses Xposed.
[Android General] partcyborg:
If you have a phone with Knox yes.
[Android General] infin1t3void:
I have a Galaxy S8 and flashed BatStock ROM on it and I'm pretty sure he got rid of all the Knox stuff.
[Android General] Portgas D. Ace:
If your device is rooted, check the section about apps that require root access. Adaway is one of those apps that blocks ads properly.
[Android General] partcyborg:
If you have an s8 w/ unlocked BL and a custom rom why not root?
[Android General] infin1t3void:
It's rooted it's just close to stock?
[Android General] partcyborg:
Oh duh sorry I misread that :silly:
[Android General] abogrhen:
using adaway

but if I unrooted for any reason

i will use adclear
[Android General] mel2000:
If my browser natively supports adblocking, is it OK to leave it enabled if I'm also using a systemwide ad-blocker such as AdAway?
[Android General] Portgas D. Ace:
It depends on the way your browser implements the ad-blocking. If it is done by an internal VPN, you should disable it as AdAway takes care of ads systemwide. If your browser uses an internal hosts file, sure, leave it enabled.
[Android General] mel2000:
Thanks for your prompt reply. I tried several ad-blocking browsers and none appeared to use an internal VPN, unless that VPN operated without an Android notification key icon. I was curious because Firefox seemed to slow a bit when I used its ad-blocker with the AdClear VPN ad-blocking feature. I couldn't really detect a difference with the others.
[Android General] CrimsonBloodfang:
Any updates for the thread? I've heard #NoChromo isn't anymore updated and Bromite is taking its place.