Tutorial How to block ads in all Android apps and games (No root & root)

AndnixSH

Security Detective
Original poster
Staff member
Modding-Team
Jun 27, 2017
915
54,535
1,193
Modding World
Tired of random ads and popups that ruin your experience and interrupt while playing games, waitching video and surfing on the web? This simple trick block across your entire device, in your browser, in the apps and the games that it does not need root access to function

First of all, allow installing apps from unknown sources in your device’s OS settings. For this you will need to:
For Android 6+: open Settings, then select Additional settings in System & Device. Switch on Unknown sources and press OK in the system warning window. (Please note that the path towards these settings may differ depending on a device).
For Android 4 and 5: open Settings, then select Security in the Personal section. Switch on Unknown sources and press OK in the system warning window.

If you want better adblocking, stability with less false positives you can add my hosts source in the adblocking app and disable all others or replace hosts manually (Explained below)

It is written from scratch by myself and been using it daily since 2016.
https://repo.andnixsh.com/hosts/adblocker.txt

(On phone: hold and press this link to save hosts file)
https://repo.andnixsh.com/hosts/adblocker/hosts


-----[ Blockada ]-----
Download the APK file for Blockada
Blokada - the best ad blocker for Android, free and open source

Open the APK file and then select install to install it on your device.

Open the app and you will now be asked to provide permission to setup a VPN connection on your device.

Click OK to initiate the connection. It will tell you that ad blocking is active and a key icon will now appear on your status bar

168219


App exclusion/whitelist: If you want you can click on hamburger menu icon, click Apps and enable or disable specific apps to block or allow ads being displayed in those apps.

Custom domain: To add custom domain, click Ad blocking -> Host Lists. Click on Add a new host list and enter url of hosts file

Click Continue.

Enter name and continue

-----[ DNS66 ]-----
Note: May not work on some devices

Download the APK file for DNS66.
DNS66 | F-Droid - Free and Open Source Android App Repository
julian-klode/dns66

Open the APK file and then select install to install it on your device.

Open the app and you will be greeted with the start screen

Click on the refresh button at the top to update your hosts file.

168220


Select the start button at the bottom. You will now be asked to provide permission to setup a VPN connection on your device.

Click OK to initiate the connection. A shielded check mark will now appear above the STOP button and a key icon will now appear on your status bar.

168221


App exclusion/whitelist: if you want you can head over to the APPS tab and enable or disable specific apps to block or allow ads being displayed in those apps.

Custom domain: Click on the plus button and enter the title and the location

Click DONE

-----[ AdGuard (Premium) ]-----

Note: This require a subscription or lifetime license in order to block ads in all apps

Download the APK file for AdGuard.
Download AdGuard adblock

Or just get it from here
Adguard - Block Ads Without Root v3.2.95 [Nightly] [Premium] - platinmods.com - Android MODs | iOS MODs | Tutorials & More!

Open the APK file and then select install to install it on your device.

Open the app and you will be greeted with the wizard screen. Follow it or skip quick settings

When done, click on the completion bar at the bottom (in my case, it shows 79% out of 100%)

168223


Click on HTTPS filtering and turn it on

You will now be asked to add the certificate. Click OK and enter lock screen (if lock screen is activated)

Now head back to the main screen and enable the protection. A key icon will now appear on your status bar.

168222


-----[ AdAway (Root only) ]-----
Note: AdAway requires root access

Download the APK file for AdAway.
AdAway | F-Droid - Free and Open Source Android App Repository
[APP][Root][OFFICIAL] AdAway v4.2.6 :: [2019-06-23]

Open the APK file and then select install to install it on your device.

Open the app and you will be greeted with the welcome screen. Grant root/superuser access when asked

Click on the red button ENABLE AD-BLOCKING to update host lists and enable ad blocking

A green check mark will now appear.

168224


Restart your phone and you are now ad-free!

Problem? Read this:
* If you use Chrome or other browsers and still see ads on web pages, remember to disable the "data saver" or "reduced data usage" browser option
* Check your APN settings for any proxy, the proxy itself could be allowing ads. Disable the proxy.
* After you install or make any change to AdAway, you must reboot for those changes to take effect
* Disable VPN connection if connected

App exclusion/whitelist: Not possible since the hosts file are modified
* If you use Chrome or other browsers which have "data saver" or "VPN" build-in, enable it to bypass adblocking and bypass anti-adblock warning message. Or use Puffin Browser.
* Enable VPN connection to bypass adblocking

Add custom domain: If you want better adblocking, stability with less false positives you can click on hamburger menu button on the top-left and head over to the Hosts sources.
Delete all sources
Click on the plus button and enter this source
https://repo.andnixsh.com/hosts/adblocker.txt

-----[ Virtual Hosts ]-----
Download Virtual Hosts APK from Github page: x-falcon/Virtual-Hosts

Open the APK file and then select install to install it on your device.

Local host:
Click Select host file. Navigate to the location where you saved the host file

You can download mine if you want. Hold and press this link to save hosts file

https://repo.andnixsh.com/hosts/adblocker.txt

External host:
Click on blue plus button and open Settings

1581600014694.png


Set remote hosts url and check use net hosts

You can use mine if you want

https://repo.andnixsh.com/hosts/adblocker.txt

1581600021787.png


Click on the big switch/swipe up to start the VPN. You will now be asked to provide permission to setup a VPN connection on your device.

Click OK to initiate the connection. A key icon will now appear on your status bar

1581600028467.png


-----[ Android Pie ]-----
Below steps are only for Android Pie

Go to Settings -> WiFi and Internet -> Private DNS. Enter dns.adguard.com as the private DNS and save.

This enables system wide ad blocking. However chrome is designed to ignore this by default. So an additional step is required for blocking ads in chrome.

Type "chrome://flags" in your chrome browser. Search for "Async DNS resolver" in the page which opens up and change the value to "Disabled". This will ensure chrome follows the system DNS setting.

That's all! Enjoy an ad free phone - also no more ads on YouTube and other apps!

Source: reddit.com - u/ikamiret

-----[ Replace hosts file manually (Root only) ]-----
Note: It requires root access

Download any hosts file you like to use: StevenBlack/hosts

Or download my hosts file with better adblocking, stability with less false positives

Hold and press this link to save hosts file
https://repo.andnixsh.com/hosts/adblocker/hosts

Open any file manager, enable and grant root access and replace "hosts" at /system/etc

Restart your phone and you are now ad-free!

Problem? Read this:
* If you use Chrome or other browsers and still see ads on web pages, remember to disable the "data saver" or "reduced data usage" browser option
* Check your APN settings for any proxy, the proxy itself could be allowing ads. Disable the proxy.
* After you install or make any change to AdAway, you must reboot for those changes to take effect
* Disable VPN connection if connected

App exclusion/whitelist: Not possible since the hosts file are modified
* If you use Chrome or other browsers which have "data saver" or "VPN" build-in, enable it to bypass adblocking and bypass anti-adblock warning message. Or use Puffin Browser.
* Enable VPN connection to bypass adblocking
 
Last edited:

GG78

UI Designer
Jan 6, 2019
317
13,632
1,193
Halle, Germany
1. Very nice

Now my experience:

DnS66 was great in the older days (til Android 6) in 2019 its dead cause of new OS versions.

Adguard Premium, i was a huge fanboy but unfortunately it stops a lot on Android Pie (it just turns off, even if i set it to high priority, ignore battery optimization, always run, still same shiet) under Android 7 & 8 (like on my Huawei Mediapad) it works flawless and never stops.


So yeah for my Android 9 device i modded all the apps i use myself (most i shared here too) and for internet i use Kiwi Browser with uBlock Origin extension = also 100% Adfree without using any App 😏
 
  • Like
Reactions: AndnixSH

AndnixSH

Security Detective
Original poster
Staff member
Modding-Team
Jun 27, 2017
915
54,535
1,193
Modding World
@0x404 Didn't know that dns66 was dead but it was updated months ago

yeah uBlock Origin is great, i'm using it on Firefox browser. But for blocking all apps and games, I use Adaway with only my own filter enabled since I have root on my phone running Android Pie :)
 
  • Like
Reactions: Pecaja44 and GG78
Thread starter Similar threads Forum Replies Date
AndnixSH Tutorial How to fix apktool compiling errors TUTORIALS 2
DieHax Tutorial How to hack skill awakening No CD Dragon Nest M - SEA TUTORIALS 6
san 1111 OA [Shared] How It All Began [18+] v0.08 MOD APK Age Restricted Games 4
san 1111 OA [Shared] How We Met (18+) v10.0 MOD APK Age Restricted Games 2
ZPictYT Tutorial [Tutorial] How To Dumping Il2cpp Protected File TUTORIALS 12
TheArmKing Tutorial How to perform the Data Trick for Non-Root/Signed Mods TUTORIALS 7
AndnixSH Tutorial How to make external mod menu in AndLua+ (Intermediate) TUTORIALS 2
TheLGL Tutorial How to make mod menu for il2cpp and native games TUTORIALS 134
TryRoom FREE MOD How to play a puzzle game v0.1.3 [Mod] [Sap] ANDROID MODS BY APPROVED MODDERS 9
Chewy Tutorial [iOS] How to Hack Simple Unity Games TUTORIALS 38
AndnixSH Tutorial How to install modded Google Play Store (Lucky Patcher) (Root only / VMOS app) TUTORIALS 21
AndnixSH Tutorial How to enable root on VMOS TUTORIALS 3
Tiuu Tutorial How to get and use float in armv7-il2cpp TUTORIALS 8
Anti-Ban Tutorial (For iOs Jb device) How to unban COD Global & Garena ? TUTORIALS 82
GG78 Tutorial How to get Tweaked Apps for iOS (no JB) in 2020 TUTORIALS 2
AndnixSH Tutorial How to hide GameGuardian to avoid detection (Root only) TUTORIALS 10
AndnixSH Tutorial How to install signed apk on top of original apk (Workaround) (Rooted device/VMOS) TUTORIALS 2
AndnixSH Tutorial How to disable signature verification to install unsigned APK (Xposed/EdXposed method) (Lucky Patcher) TUTORIALS 8
AndnixSH Tutorial How to modify VMOS stock ROM TUTORIALS 0
AndnixSH Tutorial How to install unsigned APK on non-root devices using VMOS app TUTORIALS 76
AndnixSH Tutorial How to spoof Pokemon Go using VMOS TUTORIALS 21
Thanh971612 Tutorial How to get free gem, gold in Evil Lands with game guardian TUTORIALS 7
Tiuu Tutorial How to update a new version of Modded APK, Disable Signature Verification, install google service using Virtual Xposed! TUTORIALS 2
Francois284Modz Tutorial How to enable draw over app permission TUTORIALS 9
P Tutorial **HOW TO FIX IL2CPP DUMPER ERROR** TUTORIALS 18
Zenitsu⚡ Tutorial HOW TO ADD A COLORED TOAST MESSAGE IN GAME STARTUP | FOR APPROVED/ADVANCED MODDER TUTORIALS 25
P Tutorial How to Decompile, Compile, and Sign APKs without APK Easy Tool TUTORIALS 7
IZeuz Tutorial How To Backup, Restore, and Change Your Android ID With Titanium Backup (UnBan) TUTORIALS 3
AndnixSH Tutorial How To Bypass Google Drive Download Limit Error TUTORIALS 7
G-Bo ッ Tutorial How to turn a split APK into a normal non-split APK TUTORIALS 24
Francois284Modz Tutorial How to bypass Code Stage Anti Cheat TUTORIALS 7
nik2143 Tutorial How to bypass Cash Knights Ban TUTORIALS 22
AndnixSH Tutorial How to mod split APKs (App bundles) TUTORIALS 3
G Shared [Tested] How to Die v1.0.1 MOD APK Tested Shared Android MODs 5
G OA [Shared] A Kiss For The Petals: Remembering How We Met [18+] v2.3 MOD APK Age Restricted Games 31
AndnixSH Tutorial How to backup/export split APK (App bundles) (NO root & root) TUTORIALS 10
AndnixSH Tutorial How to install/sideload split APKs/zipped .APKS file (NO root) TUTORIALS 2
AndnixSH Tutorial How to check your CPU Architecture on Android device TUTORIALS 0
AndnixSH Tutorial How to download single APK with lib folder (For App Bundles/Splitted APK) TUTORIALS 10
TryRoom AOS APP [Tested] How To Draw Cartoon v1.0.15 [Mod] Tested Android Apps 9
Arsenal Shared [Tested] How to Become a Progamer (Gold) v1.008 MOD APK Tested Shared Android MODs 15
AndnixSH Tutorial How to get unity version from any asset file TUTORIALS 6
AndnixSH Tutorial How to install unsigned APK on non-rooted devices (VirtualXposed app) (Google Play Games NOT working yet) TUTORIALS 26
DaRealPanDa Tutorial How to configure Fiddler for an Emulator and remove annoying lock screen TUTORIALS 3
AndnixSH Tutorial How to create unsigned APK file for rooted devices + signature check disabled (fix Google & FB login) TUTORIALS 11
TheArmKing Tutorial How to run GameGuardian on Non-Rooted Devices TUTORIALS 13
AndnixSH Tutorial How to export/rip music and audio files from Unity 3D games TUTORIALS 4
BMD4E Tutorial [FAQ] Cydia Impactor - Install/Sideload IPA Files On IOS! TUTORIALS 1
richardson Tutorial How to Make a Mod for Hero Wars - swf Game TUTORIALS 16
AndnixSH Tutorial How to install XAPK file TUTORIALS 9
Similar threads


















































About us

  • Welcome to platinmods.com! We are proud to present you the place which let's dreams come true! Focusing on quality and trust we have spend much time to build a gaming community fitting to your wishes and needs. Actually we offer you the finest MODs and Games of the Android section and we slowly expand to the iOS section as well. But games, Android MODs & iOS MODs are not the only things we can offer you. We have tutorials, tools, a very friendly, active and solid community which will help you with any problem you have =) Your happiness is our goal. We hope you enjoy!

Forum statistics

Threads
27,838
Messages
466,719
Members
1,036,146
Latest member
deehope