Modern mobile applications require network access to download content, advertising and data analytics, which often leads to unwanted traffic consumption and battery drain. Users often encounter a situation where a harmless calculator or flashlight tries to send data in the background. Restricting network access is an effective way to increase device autonomy and protect privacy without completely uninstalling the app.

The operating system Android provides built-in tools for managing network access, but their functionality may vary depending on the manufacturer and firmware version. In this article, we will look at native blocking methods, using the command line for advanced users, and using specialized software. You can independently configure Firewall on your smartphone and control what data is transferred outside of your device.

Built-in network restrictions settings

The first and easiest step is to check the standard system settings. In the latest versions Android (starting from 10 and higher), developers have introduced flexible permission settings that allow you to control network access for each application separately. You need to go to the section Settings → Applications and select the app you are interested in from the list.

Inside the settings menu for a specific application, find the item associated with Mobile data or Wi-Fi. The interface may differ slightly: on devices Samsung this is often hidden in the “Data Usage” submenu, and on pure Android (Pixel, Motorola) the option may be located right in the main list of permissions. If you see the “Mobile data” and “Wi-Fi” switches, just turn them off.

⚠️ Attention: On some smartphone models with MIUI or EMUI shells, the function of completely disabling the Internet for applications may be hidden in the “Traffic Control” or “Application Manager” section, and not in the general system settings.

After making changes, the application will lose the ability to download updates or show ads, but will continue to work in offline mode. This is ideal for apps that do not require a constant connection, such as music players with a local library or text editors. If the switches are grayed out or missing, continue to the following methods.

Manufacturer shell interfaces are updated annually. If you do not find these items, check the current location of the settings in the official documentation for your smartphone model or in the “Help” section of the device.

Traffic saving mode and background activity

If directly disabling access is not possible through the app menu, an effective solution would be to use the global mode traffic saving. This feature prevents all apps from transmitting data in the background when the device's screen is turned off or you are not actively using a particular application. You can activate it through Settings → Network and Internet → Traffic saving.

In this mode, the system automatically blocks background synchronization, downloading notifications and updating content for all apps except those added to the exceptions list. You can manually configure this list, leaving network access only for instant messengers and email clients for which instant message delivery is critical. The remaining applications will be “frozen” in terms of network interaction until the user opens them.

  • 📉 Mobile traffic consumption during the day is significantly reduced.
  • 🔋 Battery life increases by disabling background network requests.
  • 🛑 Some applications may stop sending notifications until you stop them open.

You can configure exceptions for individual applications, allowing them to run in the background even when data saving is enabled. This is done in the same savings management menu: select “Unlimited access” or “Exceptions” and check the desired apps. This approach allows you to create a balanced configuration, where important services work normally, and “gluttonous” utilities have limited rights.

📊 How do you most often use the mobile data?
Only for instant messengers
For social networks and video
For work and email
I practically don’t use it

Use airplane mode and Wi-Fi

Sometimes there is a need to completely isolate the device from external networks, but still be able to use local functions. Airplane mode turns off all radios, including cellular, Wi-Fi and Bluetooth. However, in most modern smartphones, you can selectively enable Wi-Fi or Bluetooth after activating airplane mode.

This method is useful if you want to prevent an application from using the mobile network (4G/5G), but leave access to the local Wi-Fi network, or vice versa. For example, when watching downloaded videos on a plane, turning on airplane mode ensures that no application will try to access the network through a cellular operator, even if the settings fail.

For more detailed settings, you can use the “Wi-Fi Only” function. In the mobile network settings of some devices, there is an option that allows you to disable data transmission, leaving only voice communication active. In this case, applications can only work when connected to a wireless access point, which is convenient for controlling costs while roaming.

⚠️ Attention: Forcing all networks to turn off may result in missing important incoming calls or emergency notifications from security services. Use this method with caution.

💡

If you need to temporarily block Internet access for all applications, the fastest way is to use the notification shade and activate Airplane Mode, and then manually enable only Wi-Fi if it is needed for the local network.

Advanced blocking via ADB

For users who have superuser rights or are familiar with USB debugging, there is a powerful tool Android Debug Bridge (ADB). This method allows you to block network access at the system level without the need to obtain root access, making it secure and reversible. You will need a computer, ADB drivers installed and USB debugging enabled on your smartphone.

The process begins by connecting the device to the PC and launching the command line. First, you need to know the full package name of the application you want to restrict. This can be done through the phone settings or using the command adb shell pm list packages. Find the line corresponding to the desired application, for example, com.example.app.

adb shell pm grant com.example.app android.permission.INTERNET

It is important to understand that the standard ADB command does not directly revoke Internet permission, since it is often built into the application manifest. However, you can use special wrapper utilities or change the firewall rules if a custom recovery is installed on the device. An easier way via ADB is to freeze the application with the command pm disable-user, but this will completely stop its operation, not just access to the network.

  • 💻 Requires a computer and a cable to connect.
  • 🔓 Does not require unlocking the bootloader or obtaining root access.
  • ⚙️ Allows you to manage system applications that cannot be removed in the usual way.
Risks of using ADB

Incorrect command entry can lead to unstable operation of the system or blocking of important system ones services. Always check the package name before entering commands.

Third-party firewall applications

The most flexible and convenient solution for the average user is to install specialized firewall applications. The leader in this category is the utility NetGuard, which creates a local VPN tunnel on the device and filters all traffic passing through it. This allows you to block Internet access for selected applications without the need for root access.

After installation and activation NetGuard you will see a list of all installed apps with two icon columns: Wi-Fi and mobile data. Clicking on an icon changes its state from active to blocked (crossed out symbol). The application starts working instantly, redirecting the traffic of blocked apps to “nowhere”, while the system considers that the connection is active.

Application Presence of Root Type of blocking Difficulty of setting
NetGuard Not required Local VPN Low
NoRoot Firewall Not required Local VPN Medium
AFWall+ Required iptables (core) High
MobiGuard Not required Traffic filtering Low

The use of such apps has its own characteristics. Since a permanent VPN tunnel is being created, the key or VPN connection icon will appear in the top notification bar. This may conflict with other applications that use a real VPN to operate (for example, corporate clients or services for bypassing blocks). In such cases, simultaneous operation is impossible.

💡

Firewall applications like NetGuard are the golden mean between security and convenience, allowing flexible access control without deep intervention in the system.

Analysis of traffic consumption and statistics

Before blocking applications, it is recommended to analyze data usage statistics to identify the real “culprits” of traffic consumption. The built-in traffic counter shows how many megabytes were used by each application over a certain period. This information is available in the section Settings → Network and Internet → Data usage.

Please note the difference between background and active usage. If an app is consuming gigabytes in the background while you sleep, it's a clear candidate for blocking or throttling. System services, such as Google Play Servicescan also consume traffic, but completely blocking them can disrupt notifications and contact synchronization.

Regular monitoring of statistics helps identify malware or malfunctioning apps that “drain” traffic. If you notice a sudden spike in consumption for an unknown app, immediately check its permissions and uninstall if necessary. Consumption graphs can usually be viewed by day or month, which is convenient for monitoring the monthly tariff limit.

⚠️ Attention: Resetting traffic statistics does not turn off the Internet, but only resets the counters. Do this at the beginning of a new billing period for ease of control.

Frequently asked questions

Does blocking the Internet affect the operation of notifications?

Yes, if you block network access for a messenger or email client, you will stop receiving real-time notifications from them. Messages will arrive only after you manually open the application and restore the connection (if the blocking is not total).

Is it possible to block the Internet only for advertising within games?

Direct blocking of advertising modules only is difficult without root access. Usually they block Internet access for the entire game, which puts it in offline mode. An alternative is to use DNS filtering (for example, through Private DNS with an ad blocker address), which requires more complex configuration.

Are firewall apps safe to use?

Yes, popular solutions like NetGuard are open source and community-reviewed. However, remember that they create a local VPN, so all your traffic technically goes through their filter. Trust only trusted developers and download software from official stores.

Why does the application still load data after blocking?

This can happen if the application uses system services to transfer data or if you have blocked only mobile traffic and the application has switched to Wi-Fi. Check the blocking settings for both types of connections.

Do you need to restart your phone after changing the settings?

In most cases, changes take effect instantly. However, if you used ADB or installed a new firewall, it is recommended to reboot your device to apply all network rules and clear the connection cache.