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


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.


(On phone: hold and press this link to save hosts file)


-----[ Blockada ]-----
Download the APK file for Blockada


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



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.


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.

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.



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.

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%)



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.



-----[ Virtual Hosts ]-----
Download Virtual Hosts APK from Github page: https://github.com/x-falcon/Virtual-Hosts/releases

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

External host:
Click on blue plus button and open Settings


Set remote hosts url and check use net hosts
You can use mine if you want


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



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

Download the APK file for AdAway.


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.



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


-----[ 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!


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


Download any hosts file you like to use: https://github.com/StevenBlack/hosts

Or download my hosts file with better adblocking, stability with less false positives
Hold and press this link to save hosts file

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

Kommentarer