Back to Blog
Adblock10 min read

AdAway's Missing Hosts: What's Going On?

Exploring potential causes and solutions when AdAway fails to display the number of hosts being blocked.

T

The AdBlock Mobile Team

December 26, 2025

I recently stumbled upon a discussion where someone was experiencing an issue with AdAway, a popular open-source ad blocker for Android. The problem? AdAway wasn't displaying the number of hosts being blocked. This got me thinking about the potential reasons behind this and what users can do to troubleshoot the problem.

AdAway is a powerful tool, leveraging the system's hosts file to redirect ad requests to harmless destinations. When it works correctly, it significantly improves the browsing experience by eliminating unwanted ads. However, when the number of hosts isn't displayed, it raises concerns about whether the ad blocking is actually functioning.

Let's delve into some potential causes and solutions.

Potential Causes for AdAway Not Displaying Hosts

Several factors can contribute to AdAway failing to display the number of blocked hosts. Here are some of the most common:

1. Root Access Issues

AdAway requires root access to modify the system's hosts file. If root access isn't properly granted or is unstable, AdAway might not be able to read the hosts file correctly, leading to the missing host count.

2. Hosts File Corruption

The hosts file itself could be corrupted. This can happen due to various reasons, such as improper shutdowns, software conflicts, or even accidental edits. A corrupted hosts file can prevent AdAway from accurately determining the number of blocked hosts.

3. Conflicting Applications

Other apps that modify the hosts file, such as VPNs or other ad blockers, might conflict with AdAway. These conflicts can interfere with AdAway's ability to read and display the correct host count.

4. Outdated AdAway Version

Using an outdated version of AdAway could also be the culprit. Older versions might have bugs or compatibility issues that prevent them from functioning correctly with newer Android versions or system configurations.

5. DNS Issues

While AdAway primarily works by modifying the hosts file, underlying DNS issues can sometimes mask the problem. If the device is using a custom DNS server or experiencing DNS resolution problems, it might affect how AdAway interacts with network requests.

6. SELinux Restrictions

SELinux (Security-Enhanced Linux) is a security module in Android that can restrict the actions of apps, including AdAway. If SELinux is configured too strictly, it might prevent AdAway from accessing or modifying the hosts file.

Troubleshooting Steps

If you encounter this issue with AdAway, here are some troubleshooting steps you can take:

1. Verify Root Access

First and foremost, ensure that AdAway has proper root access. You can use a root checker app to confirm that your device is rooted and that AdAway has been granted root permissions. If root access is unstable, try re-rooting your device or using a different rooting method.

2. Update AdAway

Make sure you are using the latest version of AdAway. Check for updates on the F-Droid app store or the official AdAway website. Newer versions often include bug fixes and improvements that can resolve compatibility issues.

3. Re-download Host Files

Within the AdAway app, try re-downloading the host files. This will ensure that you have the latest blocklists and that the hosts file is not corrupted. Go to the app settings and select the option to update the host files.

4. Check for Conflicting Apps

Identify any other apps that might be modifying the hosts file or interfering with AdAway. Disable or uninstall these apps temporarily to see if it resolves the issue. VPNs and other ad blockers are the most likely candidates.

5. Clear AdAway Data and Cache

Clearing AdAway's data and cache can sometimes resolve the problem. Go to your device's settings, find AdAway in the app list, and clear its data and cache. This will reset AdAway to its default state, and you'll need to reconfigure it.

6. Reinstall AdAway

If clearing the data and cache doesn't work, try uninstalling and reinstalling AdAway. This will ensure that you have a fresh installation of the app and that any corrupted files are replaced.

7. Check SELinux Settings

If you are familiar with SELinux, check its settings to ensure that it is not restricting AdAway's access to the hosts file. You might need to temporarily disable SELinux or configure it to allow AdAway to modify the hosts file. However, be cautious when modifying SELinux settings, as it can affect your device's security.

8. Examine the Hosts File Manually

For advanced users, you can manually examine the hosts file using a root-enabled file manager. The hosts file is typically located at /system/etc/hosts. Open the file and check for any unusual entries or corruption. You can also try replacing the hosts file with a known good copy.

9. Consider a Different Ad Blocking Method

If you've exhausted all troubleshooting steps and AdAway still isn't displaying the host count, consider using a different ad blocking method, such as a DNS-based ad blocker like NextDNS or AdGuard DNS. These solutions don't rely on modifying the hosts file and might be more reliable in certain situations.

DNS-Based Ad Blocking as an Alternative

Speaking of DNS-based ad blocking, it's worth highlighting why this approach is often recommended, especially for mobile devices.

Benefits of DNS-Based Blocking

  • System-Wide Protection: DNS-based blocking works at the network level, protecting all apps and browsers on your device.
  • No Root Access Required: Unlike AdAway, DNS-based blocking doesn't require root access, making it easier to set up and use.
  • Minimal Battery Drain: DNS-based blocking has minimal impact on battery life compared to VPN-based solutions.
  • Easy Setup: Setting up DNS-based blocking is typically straightforward, involving changing your device's DNS settings.

Popular DNS-Based Ad Blockers

  • NextDNS: Offers highly customizable blocklists, detailed analytics, and multiple device support.
  • AdGuard DNS: Provides easy setup, good default blocklists, and fast servers worldwide.
  • Cloudflare 1.1.1.1 for Families: Focuses on speed and privacy, with an option to block malware and adult content.

AdAway and DNS Blocking: A Combined Approach?

While DNS blocking is a great alternative, some users might wonder if they can combine AdAway with DNS-based ad blocking. The answer is yes, but it requires careful configuration to avoid conflicts.

Potential Benefits of Combining AdAway and DNS Blocking

  • Layered Protection: Combining both methods can provide layered protection against ads and malware.
  • Customization: AdAway allows for fine-grained control over blocked hosts, while DNS blocking provides broader network-level protection.

Potential Conflicts and Considerations

  • Redundancy: Some blocked hosts might be redundant between AdAway and the DNS blocklist, leading to unnecessary overhead.
  • Conflicts: If both AdAway and the DNS server are blocking the same domain, it could lead to unexpected behavior or website breakage.
  • Complexity: Managing both AdAway and a DNS-based ad blocker can be more complex than using either method alone.

Recommendations for Combining AdAway and DNS Blocking

  • Start with DNS Blocking: Begin by setting up a DNS-based ad blocker and see if it meets your needs. This is often sufficient for most users.
  • Use AdAway for Specific Cases: If you encounter specific ads that are not blocked by the DNS server, you can use AdAway to add those hosts to your blocklist.
  • Monitor for Conflicts: Keep an eye out for any website breakage or unexpected behavior that might be caused by conflicts between AdAway and the DNS server.

The Importance of Keeping Blocklists Updated

Whether you use AdAway or a DNS-based ad blocker, it's crucial to keep your blocklists updated. The ad landscape is constantly evolving, with new ad servers and techniques emerging all the time. Outdated blocklists will become less effective over time, allowing more ads to slip through.

How to Update Blocklists

  • AdAway: AdAway allows you to update your host files directly within the app. You can configure it to automatically update the host files on a regular basis.
  • NextDNS: NextDNS provides a variety of blocklists to choose from, and you can easily add or remove them in the NextDNS dashboard. It also automatically updates the blocklists on a regular basis.
  • AdGuard DNS: AdGuard DNS automatically updates its blocklists, so you don't need to take any action.

Choosing the Right Blocklists

The choice of blocklists depends on your specific needs and preferences. Some blocklists are more aggressive than others, blocking a wider range of domains. However, more aggressive blocklists can also lead to more false positives, blocking legitimate content.

  • General Ad Blocking: These blocklists focus on blocking common ad servers and tracking domains.
  • Privacy Protection: These blocklists focus on blocking tracking domains and protecting your privacy.
  • Malware Protection: These blocklists focus on blocking malware domains and protecting your device from malicious threats.
  • Custom Blocklists: You can also create your own custom blocklists by adding specific domains that you want to block.

Beyond Ad Blocking: Enhancing Mobile Privacy and Security

While ad blocking is an important aspect of online privacy and security, it's just one piece of the puzzle. There are other steps you can take to further enhance your mobile privacy and security.

Use a VPN

A VPN (Virtual Private Network) encrypts your internet traffic and routes it through a secure server, protecting your data from eavesdropping and masking your IP address. This can help prevent your online activity from being tracked and monitored.

Use a Privacy-Focused Browser

Some browsers are designed with privacy in mind, offering features such as built-in ad blocking, tracker blocking, and anti-fingerprinting. Brave Browser and Firefox Focus are two popular options.

Use a Secure Messaging App

Secure messaging apps use end-to-end encryption to protect your messages from being intercepted by third parties. Signal and WhatsApp are two popular options.

Enable Two-Factor Authentication

Two-factor authentication (2FA) adds an extra layer of security to your online accounts by requiring a second verification code in addition to your password. This makes it more difficult for hackers to access your accounts, even if they know your password.

Be Careful What You Click

Be wary of suspicious links and attachments, especially in emails and messages. Clicking on malicious links can lead to malware infections or phishing attacks.

Keep Your Software Updated

Keep your operating system, apps, and security software updated to protect against known vulnerabilities. Software updates often include security patches that fix bugs and address security flaws.

Review App Permissions

Regularly review the permissions that you have granted to your apps. Revoke any permissions that seem unnecessary or excessive.

Final Thoughts

Encountering an issue where AdAway isn't displaying the number of blocked hosts can be frustrating, but by systematically troubleshooting the potential causes, you can often resolve the problem. Remember to verify root access, update AdAway, re-download host files, and check for conflicting apps.

If AdAway continues to give you trouble, consider exploring DNS-based ad blocking as a reliable alternative. With its system-wide protection and easy setup, it can significantly enhance your mobile browsing experience without requiring root access.

Ultimately, the best approach is to combine different ad blocking and privacy-enhancing techniques to create a comprehensive defense against unwanted ads and online tracking. By staying informed and proactive, you can take control of your mobile privacy and security.

Ready to Block Ads?

Follow my step-by-step guide and start browsing ad-free in under 30 seconds.

Get Started Free