Back to Blog
Troubleshooting9 min read

AdAway's Missing Host Count: A Deep Dive into Potential Causes

Exploring why AdAway might not be displaying the number of hosts and potential solutions for Android ad blocking.

T

The AdBlock Mobile Team

December 28, 2025

I recently stumbled upon a discussion about AdAway, a popular open-source ad blocker for Android, where a user was puzzled by the application not displaying the number of hosts being blocked. This got me thinking about the various reasons behind such an issue and how one might go about troubleshooting it. While I haven't personally encountered this specific problem, I've dealt with similar quirks in ad-blocking software, and I believe a systematic approach can usually uncover the root cause.

Let's delve into the possible explanations for why AdAway might not be showing the host count and explore some potential fixes.

Understanding AdAway and Host Files

Before diving into the troubleshooting, it's crucial to understand how AdAway works. AdAway operates by modifying the system's hosts file. This file is essentially a map that translates domain names (like example.com) into IP addresses (like 192.0.2.1). When AdAway is enabled, it downloads a list of domains known to serve ads and adds them to the hosts file, pointing them to a null IP address (typically 127.0.0.1 or 0.0.0.0). This effectively prevents the device from connecting to those ad servers.

The "host count" displayed in AdAway represents the number of entries in this modified hosts file. If the count isn't showing, it indicates that AdAway is either not correctly reading the file or that the file hasn't been modified as expected.

Potential Causes and Troubleshooting Steps

Here's a breakdown of the most likely reasons why AdAway might not be displaying the host count, along with troubleshooting steps for each:

1. Root Access Issues

AdAway requires root access to modify the hosts file. If root access isn't properly granted or maintained, AdAway won't be able to function correctly. This is perhaps the most common culprit.

Troubleshooting:

  • Verify Root Access: Use a root checker app (available on the Play Store) to confirm that your device has root access. If root access is not confirmed, you'll need to re-root your device, following instructions specific to your device model and Android version. Be extremely careful when rooting, as it can void your warranty and potentially brick your device if done incorrectly.
  • Grant Root Permission to AdAway: Ensure that AdAway has been granted root permissions. When you first launch AdAway, it should prompt you for root access. If you accidentally denied it, you'll need to go into your root management app (e.g., Magisk Manager, SuperSU) and manually grant AdAway root permissions. Look for AdAway in the list of apps requesting root access and ensure the toggle is enabled.
  • Root Management App Issues: Sometimes, the root management app itself can cause problems. Try updating your root management app to the latest version. If the issue persists, consider trying a different root management app (if possible) to see if that resolves the problem. For example, if you're using SuperSU, try switching to Magisk.

2. Corrupted Host File

The hosts file itself might be corrupted or have incorrect permissions, preventing AdAway from reading it properly.

Troubleshooting:

  • Backup and Reset Host File: AdAway usually has a feature to backup and reset the hosts file to its default state. Use this feature to create a backup of your current hosts file (just in case) and then reset it. After resetting, try updating the host file again through AdAway.
  • Manually Edit Host File (Advanced): If resetting doesn't work, you can try manually editing the hosts file. This requires some technical knowledge and caution. You'll need a root-enabled file explorer (like Solid Explorer or FX File Explorer with root add-on). Navigate to /system/etc/hosts. Open the file in a text editor. Ensure that the file contains valid entries (IP address followed by a domain name) and that there are no syntax errors. If the file is completely empty or contains gibberish, replace it with a default hosts file. You can find examples of default hosts files online. Important: Make a backup of the original file before making any changes.
  • Check File Permissions: Using the root-enabled file explorer, check the permissions of the hosts file. It should typically be 644 (read/write for owner, read-only for group and others). If the permissions are incorrect, change them to 644. Incorrect permissions can prevent AdAway from reading or writing to the file.

3. Incorrect AdAway Configuration

Certain AdAway settings might be interfering with its ability to display the host count.

Troubleshooting:

  • Update AdAway: Make sure you're using the latest version of AdAway. Older versions might have bugs that have been fixed in newer releases. Download the latest version from F-Droid or the official AdAway website.
  • Check Source Lists: AdAway uses source lists to download the list of ad-serving domains. Ensure that the source lists are valid and up-to-date. Try refreshing the source lists in AdAway's settings. If a particular source list is causing problems, try disabling it temporarily to see if that resolves the issue.
  • Target File Option: AdAway allows you to specify the target hosts file. Make sure this setting is correctly configured to point to /system/etc/hosts. If it's pointing to a different file or location, AdAway won't be able to modify the correct file.
  • Disable IPv6 (If Applicable): In some cases, IPv6 can interfere with ad blocking. Try disabling IPv6 in AdAway's settings (if the option is available) to see if that resolves the problem.

4. SELinux Issues

SELinux (Security-Enhanced Linux) is a security module in Android that can sometimes restrict AdAway's access to system files, even with root permissions.

Troubleshooting:

  • Check SELinux Status: Use a terminal emulator app (available on the Play Store) to check the SELinux status. Run the command getenforce. If the output is Enforcing, SELinux is enabled. If the output is Permissive, SELinux is in permissive mode (less restrictive).
  • Set SELinux to Permissive (Temporary): If SELinux is enabled, try setting it to permissive mode temporarily to see if that resolves the issue. Warning: Setting SELinux to permissive mode reduces security, so only do this for troubleshooting purposes and revert back to enforcing mode afterward. To set SELinux to permissive mode, you'll need root access and a terminal emulator. Run the command setenforce 0. After troubleshooting, run setenforce 1 to re-enable enforcing mode.
  • Create SELinux Policy (Advanced): If setting SELinux to permissive mode resolves the issue, it indicates that SELinux is blocking AdAway's access. In this case, you can create a custom SELinux policy to allow AdAway to function correctly while keeping SELinux in enforcing mode. This is an advanced procedure that requires knowledge of SELinux policies. You can find resources online on how to create custom SELinux policies for specific apps.

5. Interference from Other Apps

Other apps on your device, especially those that also modify the hosts file or use VPNs, might be interfering with AdAway.

Troubleshooting:

  • Disable Other Ad Blockers: If you have other ad blockers installed (e.g., AdBlock, AdBlock Plus), disable them temporarily to see if they're interfering with AdAway.
  • Disable VPN Apps: VPN apps can sometimes interfere with AdAway's ability to modify the hosts file. Disable any VPN apps temporarily to see if that resolves the issue.
  • Identify Conflicting Apps: If you suspect that a particular app is causing the problem, try uninstalling it temporarily to see if that resolves the issue. If uninstalling the app resolves the issue, you can try contacting the app developer to see if they can provide a fix.

6. DNS Issues

While AdAway primarily works by modifying the hosts file, DNS settings can sometimes play a role in ad blocking. If your device is using a custom DNS server that bypasses the hosts file, AdAway might not be effective.

Troubleshooting:

  • Check DNS Settings: Go to your device's Wi-Fi settings and check the DNS settings for your network. Ensure that you're not using a custom DNS server that bypasses the hosts file. If you are using a custom DNS server, try switching to your ISP's default DNS server or a public DNS server like Google DNS (8.8.8.8 and 8.8.4.4) or Cloudflare DNS (1.1.1.1) to see if that resolves the issue.
  • Clear DNS Cache: Clear your device's DNS cache to ensure that it's not using outdated DNS records. The method for clearing the DNS cache varies depending on your device and Android version. You can usually find instructions online for your specific device.

Alternative Solutions

If you've tried all the troubleshooting steps above and still can't get AdAway to display the host count, you might want to consider alternative ad-blocking solutions.

DNS-Based Ad Blocking

As we advocate for at AdBlock for Mobile, DNS-based ad blocking is a system-wide solution that works by filtering ad requests at the DNS level. Instead of relying on the hosts file, it uses a DNS server that blocks known ad domains. This approach is often more efficient and less resource-intensive than modifying the hosts file.

Services like NextDNS, AdGuard DNS, and Cloudflare 1.1.1.1 (with Families option) offer DNS-based ad blocking. You can configure your device to use these DNS servers in your Wi-Fi settings or through a dedicated app.

Local VPN Ad Blockers

Local VPN ad blockers create a local VPN on your device to filter ad traffic. These apps don't route your traffic through an external VPN server, so they don't impact your privacy or battery life. They work by intercepting ad requests and blocking them before they reach your device.

Apps like Blokada and AdGuard for Android (using local VPN mode) are popular local VPN ad blockers.

Important Considerations

  • Battery Life: Modifying the hosts file can sometimes impact battery life, especially on older devices. If you notice a significant decrease in battery life after enabling AdAway, consider using a DNS-based ad blocker instead.
  • Website Compatibility: Some websites might not function correctly with ad blocking enabled. If you encounter issues with a particular website, try disabling ad blocking temporarily for that site.
  • Legitimate Ads: Ad blocking can also block legitimate ads that support website owners. Consider whitelisting websites that you want to support.

Ultimately, the best ad-blocking solution depends on your individual needs and preferences. If you're having trouble with AdAway, don't hesitate to explore alternative solutions to find one that works best for you.

Ready to Block Ads?

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

Get Started Free