You noticed that some application is blocked your smartphone suspiciously often uses mobile traffic or sends data to the network without your knowledge? Perhaps this is an advertising SDK, analytics, or even malicious software that secretly leaks information about your activity. Blocking access to the Internet for unnecessary apps not only saves up to 30% of traffic and battery powerbut also significantly increases privacy.

In this In this article we will look all possible methods from standard Android tools to advanced solutions using firewalls and ADB commands. You will learn how to restrict network access for individual applications on Samsung, Xiaomi, Google Pixel and other devices, including older versions of the OS (up to Android 10). We will also find out why some apps bypass standard restrictions and how to deal with it.

Why applications do not need the Internet: 3 good reasons

Many users mistakenly believe that that without network access the application will simply stop working. In fact, the majority of apps on Android are divided into two categories:

  • ๐Ÿ“ฑ Offline utilities: file managers (Total Commander, FX File Explorer), galleries, calculators, notepad. They only need the Internet to display advertising or collect statistics.
  • ๐ŸŽฎ Games with a single player mode: most projects like Minecraft or Stardew Valley work without a network, but pull data for analytics or updates.
  • ๐Ÿ”ง System tools: launchers, widgets, keyboards (for example, Gboard). They require the Internet solely for synchronization or display of offers.

According to research Oxford University (2023), 78% of free applications in Google Play send data to external servers even in the background. Among them:

  • ๐Ÿ“Š Analytics: Firebase, Flurry, AppsFlyer โ€”track your actions in the application.
  • ๐ŸŽฏ Advertising networks: AdMob, Unity Ads โ€”load banners and videos even if you do not interact with them.
  • ๐Ÿ”„ Auto-updates: some apps (for example, UC Browser) download updates in the background, consuming traffic.
โš ๏ธ Attention: Some banking applications (Sberbank, Tinkoff) and instant messengers (WhatsApp, Telegram) require mandatory access to the network for the operation of basic functions. Blocking the Internet for them will lead to authorization errors or the inability to send messages.

Method 1: Standard Android settings (without root)

The simplest method is to use the built-in traffic limitation tools. It works on all devices with Android 6.0+ and does not require superuser rights. Instructions:

  1. Open Settings โ†’ Applications (or Settings โ†’ Applications and notifications on some firmware).
  2. Select the desired application from the list (for example, Facebook or AliExpress).
  3. Tap on the item Mobile data (or Data usage).
  4. Move the slider Allow background data use to the position Off.
  5. For complete blocking, also disable Wi-Fi in the same menu (if the option is available).

On some devices (for example Xiaomi or Huawei) the path may be different:

Settings โ†’ SIM cards and mobile networks โ†’ Traffic usage โ†’ [Select application]
Manufacturer Path to settings Features
Samsung Settings โ†’ Connections โ†’ Data usage โ†’ Mobile data There is a separate section for background traffic
Google Pixel Settings โ†’ Network and Internet โ†’ Mobile network โ†’ Data usage You can set a traffic limit with a notification
Xiaomi/Redmi Settings โ†’ SIM cards and mobile networks โ†’ Traffic usage There is an option "Prohibit data transfer in the background"
Huawei/Honor Settings โ†’ Mobile network โ†’ Traffic usage You can block traffic for individual SIM cards
โš ๏ธ Attention: On Android 10 and newer some applications (for example, Chrome or YouTube) can ignore these restrictionsif they use VPN services or WebView to bypass blocking In this case, methods from the following sections will be required.

โ˜‘๏ธ Check traffic blocking

Done: 0 / 4

Method 2: Using a firewall (without root)

If the standard settings do not help, you can install firewall a app that controls network traffic at the system level. The best options for devices without root access:

  • ๐Ÿ›ก๏ธ NetGuard a free open source firewall code. Blocks traffic at level VPN, does not require root.
  • ๐Ÿ”’ NoRoot Firewall - simple interface, supports rules for Wi-Fi and mobile data separately.
  • ๐Ÿ“ก PCAPdroid โ€” an advanced tool with the ability to analyze traffic (suitable for experienced users).

Instructions for NetGuard:

  1. Download the application from Google Play or from the official website (netguard.me).
  2. When you first start, click Start and allow creation VPN connections (this is necessary to intercept traffic).
  3. In the main window, find the desired application and slide slider to the "Block" position.
  4. For precise settings, tap on the application and select which traffic to block (Wi-Fi, mobile data or both).

Advantages of the firewall:

  • ๐Ÿ”น Blocks all types of connections, including hidden requests through WebView.
  • ๐Ÿ”น Works on Android 5.0+ (including outdated devices).
  • ๐Ÿ”น Possible create time rules (for example, block social networks at night).
๐Ÿ’ก

If after installing the firewall push notifications stop working (for example, in Telegram), add the messenger to the exceptions or allow it access to Google Play Services in the settings firewall.

Method 3: Blocking via ADB (for advanced users)

If you are ready to use developer tools, you can block access to the network at the system level using ADB (Android Debug Bridge). data-i="167">and does not require root, but you will need a computer. all versions of Android and does not require root, but you will need a computer.

Step-by-step guide:

  1. Enable Developer mode on phone:
    Settings โ†’ About phone โ†’ Build number (tap 7 times)
  2. Activate USB debugging in the developer menu.
  3. Connect your phone to the PC and open command line (Windows) or Terminal (macOS/Linux).
  4. Enter the command to check the connection:
    adb devices

    The name of your device should appear.

  5. Block Internet access for the application (replace com.example.app to its package name):
    adb shell cmd appops set com.example.app android:request_network RESTRICT

How to find out package name applications?

  • ๐Ÿ” Use the application App Inspector from Google Play.
  • ๐Ÿ“Œ Or run the command:
    adb shell pm list packages | grep "application_name"
โš ๏ธ Attention: After rebooting the phone or updating the application, the lock through ADB can be reset. To make it permanent, use a script with the command adb shell cmd appops set --uid (you need to know the UID of the application).
How to unblock access after an ADB command?

To return network access to the application, run the same command, but with parameter ALLOW instead of RESTRICT:

adb shell cmd appops set com.example.app android:request_network ALLOW

Method 4: Using a VPN to block traffic

An unusual but effective method is traffic redirection through a local VPN, which will block requests from certain applications. Suitable for this:

  • ๐ŸŒ TrackControl โ€” creates a virtual network and filters traffic according to rules.
  • ๐Ÿ”— Blokada โ€”blocks advertising and tracking domains, but can also be used to restrict access.

Instructions for Blokada:

  1. Download and install the application from the official website (blokada.org).
  2. Start a VPN connection (system permission will be required).
  3. Go to the section Hosts and add a custom rule:
    127.0.0.1 app.example.com

    (replace app.example.com to the domain accessed by the blocked application).

  4. Activate the rule and check the blocking.

Advantages of the method:

  • ๐Ÿ”น Works without root and does not require complex settings.
  • ๐Ÿ”น You can block individual domains, and not the entire application.
  • ๐Ÿ”น Compatible with Android 7.0+.

Disadvantages:

  • โŒ VPN connection can slow down the Internet by 10โ€“15%.
  • โŒ Some applications (for example, banking) refuse to work through VPN.
๐Ÿ“Š Which traffic blocking method do you prefer?
Standard Android settings
Firewall (NetGuard, NoRoot)
ADB commands
VPN (Blokada, TrackControl)
Another option

Method 5: Root access and system tools

If your device unlocked (has root access), you get full control over network traffic. The most effective tools:

  • ๐Ÿ”ง AFWall+ - advanced firewall with support IPv6, time rules and blocking. by UID.
  • ๐Ÿ› ๏ธ XPrivacyLua โ€” allows you to restrict not only the Internet, but also access to contacts, geolocation and other permissions.
  • ๐Ÿ“Š Network Log โ€”monitors all traffic and shows exactly what data the application sends.

Instructions for AFWall+:

  1. Install the application from Google Play or F-Droid.
  2. Provide root access when prompted.
  3. In the main window, select the applications for which you want to block traffic (checkmarks in the columns Wi-Fi and 3G/4G).
  4. Click Apply and restart the device.

What can be done with root access:

  • ๐Ÿ”น Block traffic for system applications (for example, Google Play Services).
  • ๐Ÿ”น Configure rules for UID (unique user identifier in the system).
  • ๐Ÿ”น Completely disable WebView for specific apps.
โš ๏ธ Attention: Using root access voids your warranty and may lead to security problems (for example, if you install malware with superuser rights). Before blocking system components make a backup copy via TWRP or OrangeFox.
๐Ÿ’ก

Root access gives maximum control over traffic, but requires caution. Do not block system processes (for example, android.system or com.android.phone), otherwise the phone may lose the network or stop calling.

How to check that the application is really blocked

To make sure that the restrictions are working, use one of the methods:

  • ๐Ÿ“Š Built-in traffic monitoring:
    Settings โ†’ Network and Internet โ†’ Data usage โ†’ [Select application]

    Check that the traffic consumption graph is not is growing.

  • ๐Ÿ” Third-party analyzers:

    - GlassWire โ€”shows traffic in real time.

    - Network Connections โ€”displays active connections.

  • ๐ŸŒ Test via browser:

    Open a function in the blocked application that requires the Internet (for example, news update in Google News).If an error appears "No connection" โ€”the blocking has worked.

If traffic is still flowing, check:

  • ๐Ÿ”น Is the application not using VPN or proxy to bypass restrictions.
  • ๐Ÿ”น Doesn't it hidden services (for example, Facebook can launch background processes through Facebook App Manager).
  • ๐Ÿ”น Is the application updated - sometimes new versions change package names and bypass the rules.

Frequent problems and their solutions

When blocking traffic, users encounter typical errors. Let's look at the most common ones:

Problem Cause Solution
The application still uses the Internet Bypasses restrictions through WebView or VPN Use a firewall (NetGuardor ADB-commands
Stopped receiving push notifications Blocked Google Play Services or Firebase Cloud Messaging Allow traffic for these services in the firewall
Settings are reset after reboot ADB-commands are temporary, or the firewall does not save the rules Use AFWall+ with root or configure the firewall to autostart
The banking application does not work Blocking traffic violates the security check Add the application to exceptions or use VPN with a white list

If none of the methods help, perhaps the application uses non-standard protocols (for example, QUIC in Google ChromeIn this case:

  1. Try blocking traffic at level router level (in the router settings, add a rule for the phone's MAC address).
  2. Use PI-hole on the local server to block domains.
  3. Disable QUIC in Chrome via the flag:
    chrome://flags/#enable-quic
Is it possible to block the Internet for system applications (for example, Google Play Services)?

Without root access - no. System applications are protected from changes. With root you can use AFWall+ or XPrivacyLua, but this may lead to unstable operation of the phone (for example, others will stop updating app).

If the goal is to save traffic, it is better to disable automatic application updates in Google Play:

Settings โ†’ Network โ†’ Automatic application updates โ†’ Never
Will offline games work after the Internet is blocked?

Yes, most single games (for example, Brawl Stars in training mode or Altoโ€™s Odyssey) will work without a network. However:

  • ๐Ÿ”น Online modes (multiplayer, leaderboards) will become unavailable.
  • ๐Ÿ”น Some games (for example, Clash of Clans) require mandatory authorization via the Internet, even for a single game.
  • ๐Ÿ”น Advertising and internal purchases will no longer be displayed.
How to block the Internet for all applications except selected ones?

This can be achieved using firewall (NetGuard or AFWall+):

  1. In the firewall settings, select the mode "Block everything".
  2. Add the necessary applications (for example, instant messengers and browser) to white list.
  3. Activate the rules and reboot the phone.

On Android 9+ can also be used "Work Profile" mode (Work Profile), where the Internet will be available only for work applications.

Why, after blocking traffic, does the application display the error "No Internet connection"?

This is normal behavior - application cannot connect to servers. However, some apps (for example YouTube or Netflix) may:

  • ๐Ÿ”น Show blank screen instead of content.
  • ๐Ÿ”น Give an error "Check the connection" at startup.
  • ๐Ÿ”น Freeze at the loading stage.

If you need only offline functionality (for example, viewing downloaded videos in YouTube Premium), the error can be ignored.

Is it possible to block the Internet for an application forever, even after updating it?

Yes, but this will require:

  • ๐Ÿ”น Root access + AFWall+ (the rules will be saved after updates).
  • ๐Ÿ”น ADB commands linked to UID (a unique application identifier that does not change with updates).
  • ๐Ÿ”น Firewall with automatic blocking (for example, NetGuard with the option "Forced mode").

Standard Android settings reset after updating the application, if it changes the package name.