Back to Blog
Troubleshooting7 min read

AdAway's Missing Host Count: What's Going On?

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

T

The AdBlock Mobile Team

December 27, 2025

I recently stumbled upon a discussion about a peculiar issue with AdAway, a popular open-source ad blocker for Android. A user reported that AdAway wasn't displaying the number of hosts being blocked, which is usually a prominent piece of information within the app. This got me thinking about the potential causes and what users can do to troubleshoot this problem.

AdAway is a fantastic tool, especially for those who prefer a system-wide ad-blocking solution on their Android devices. It works by modifying the system's hosts file, redirecting requests to known ad servers to a null address (usually 127.0.0.1). This effectively prevents ads from loading in most apps and browsers.

However, like any software, AdAway can encounter issues. Let's delve into the possible reasons behind the missing host count and how to address them.

Potential Causes for Missing Host Count in AdAway

Several factors could contribute to AdAway not displaying the number of hosts. Here's a breakdown of the most common culprits:

1. Root Access Issues

AdAway requires root access to modify the hosts file. If root access isn't properly granted or if there are issues with the rooting method, AdAway might not be able to read the file and, consequently, can't display the host count.

  • Troubleshooting:
    • Ensure your device is properly rooted using a reliable method.
    • Verify that AdAway has been granted root permissions. You can usually check this in your device's root management app (e.g., Magisk Manager, SuperSU).
    • Try re-granting root access to AdAway.
    • If you've recently updated your device's firmware or root management app, there might be compatibility issues. Research whether others have experienced similar problems and look for potential solutions.

2. Corrupted Hosts File

The hosts file itself might be corrupted, preventing AdAway from parsing it correctly. This could happen due to various reasons, such as interrupted write operations or file system errors.

  • Troubleshooting:
    • Use AdAway's built-in "Update hosts file" function. This will download a fresh copy of the hosts file from the configured sources.
    • If updating doesn't work, try clearing AdAway's data and cache in your device's settings. This will reset the app to its default state.
    • As a last resort, you can manually delete the hosts file (usually located at /system/etc/hosts) using a root file manager and then update it using AdAway. Warning: Be extremely cautious when modifying system files, as incorrect changes can cause instability.

3. Incorrect Hosts File Location

In rare cases, the hosts file might be located in a non-standard directory. While AdAway usually detects the correct location, it's possible that it's looking in the wrong place.

  • Troubleshooting:
    • Use a root file manager to verify the location of your hosts file. It should typically be in /system/etc/hosts.
    • If it's in a different location, you might need to manually configure AdAway to use the correct path (if such an option exists – some older versions had this). However, this is an uncommon scenario.

4. AdAway App Issues

There might be a bug in the AdAway app itself that's causing the host count not to be displayed. This is more likely if you're using an older version of the app.

  • Troubleshooting:
    • Ensure you're using the latest version of AdAway. Check for updates on F-Droid or the app's official website.
    • Try uninstalling and reinstalling AdAway. This can sometimes resolve corrupted app data.
    • If the issue persists, consider reporting the bug to the AdAway developers.

5. SELinux Issues

SELinux (Security-Enhanced Linux) is a security module in Android that can restrict the actions of apps, even with root access. If SELinux is configured too restrictively, it might prevent AdAway from reading the hosts file.

  • Troubleshooting:
    • Check your SELinux status. You can use a terminal emulator app and run the command getenforce. If it returns "Enforcing," SELinux is enabled.
    • Temporarily set SELinux to "Permissive" mode using the command setenforce 0 (requires root). Then, restart AdAway and see if the host count is displayed. Warning: Disabling SELinux can reduce your device's security, so only do this for troubleshooting purposes and re-enable it afterward using setenforce 1.
    • If disabling SELinux resolves the issue, you'll need to configure SELinux rules to allow AdAway to access the hosts file. This is an advanced task and requires knowledge of SELinux policies.

6. DNS Issues (Indirectly)

While not directly related to AdAway's ability to display the host count, underlying DNS issues on your device could feel like AdAway isn't working, leading to confusion.

  • Troubleshooting:
    • Ensure your device is using a reliable DNS server. While AdAway blocks domains, your device still needs to resolve domain names. Try using a public DNS server like Cloudflare (1.1.1.1) or Google Public DNS (8.8.8.8).
    • Clear your device's DNS cache. This can be done in your browser's settings or using a dedicated app.

Advanced Troubleshooting Steps

If none of the above solutions work, you can try these more advanced steps:

1. Check the Logcat

Logcat is a system log that records all activity on your Android device. You can use Logcat to see if AdAway is throwing any errors when trying to read the hosts file.

  • How to:
    • Install an app like MatLog or ALogcat.
    • Filter the logs by AdAway's package name.
    • Look for any error messages related to file access or parsing.

2. Use a Root File Manager to Inspect the Hosts File

Use a root file manager (like Solid Explorer or MiXplorer) to open the hosts file and examine its contents. Make sure it contains a list of blocked domains and that the file is not empty or corrupted.

3. Reinstall Your ROM

In extremely rare cases, the issue might be caused by a deeper system problem that can only be resolved by reinstalling your device's ROM (operating system). This is a drastic step and should only be considered as a last resort.

Why DNS-Based Ad Blocking is Still a Solid Alternative

While AdAway is a powerful tool, it requires root access, which can be a barrier for some users. DNS-based ad blocking offers a viable alternative without the need for rooting.

As we've discussed in other articles, DNS-based blocking works by filtering DNS requests at the network level. When your device tries to access a website, it first needs to resolve the domain name to an IP address using a DNS server. By using a DNS server that blocks known ad domains, you can effectively prevent ads from loading.

Services like NextDNS and AdGuard DNS provide excellent DNS-based ad blocking solutions. They offer customizable blocklists, detailed analytics, and are easy to set up on both iOS and Android.

The Importance of Staying Updated

Whether you're using AdAway or a DNS-based solution, it's crucial to keep your ad-blocking tools updated. Ad networks are constantly evolving their tactics to bypass ad blockers, so it's essential to use the latest blocklists and app versions to stay ahead of the game.

Regularly updating your hosts file in AdAway or ensuring your DNS provider has the latest blocklists will significantly improve your ad-blocking experience.

Ad Blocking and Online Privacy

Ad blocking is not just about removing annoying ads; it's also about protecting your online privacy. Many ads track your browsing activity and collect data about your interests and habits. By blocking ads, you can reduce the amount of data that's being collected about you.

Combining ad blocking with other privacy-enhancing tools, such as a VPN and a privacy-focused browser, can significantly improve your online privacy.

Ultimately, the best approach to ad blocking depends on your individual needs and preferences. If you're comfortable with rooting your device, AdAway is a powerful and customizable option. If you prefer a simpler, rootless solution, DNS-based ad blocking is an excellent choice.

Regardless of the method you choose, remember to stay informed about the latest ad-blocking techniques and tools to ensure you're getting the best possible protection.

Ready to Block Ads?

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

Get Started Free