Advertising in Android applications and system services has become a real problem for users. Even after purchasing premium smartphones Samsung Galaxy S24 Ultra or Google Pixel 8 Pro owners are faced with intrusive banners in Settings, Weather and third party apps. The forum 4PDA collects current ways to combat advertising, including radical methods for advanced users.

Many manufacturers (for example, Xiaomi, Realme, Oppo) build advertising modules directly into the firmware through services msa, Analytics or System Ads. The standard disabling in the settings often works partially or is reset after updates. This article combines proven methods with 4PDAadapted for Android 14/15, including solutions without root access and using ADB.

We will consider both legal methods (through Google settings) and technical workarounds (modification hosts, disabling services via pm disable). Particular attention is paid to problems after updates to MIUI, ColorOS and One UI - these are the shells that most often โ€œreturnโ€ advertising after resetting the settings.

๐Ÿ“Š Which advertising annoys you the most?
Pop-up banners in games
Advertising in system applications (Weather, Camera)
Advertising notifications
Advertising in the browser (Chrome, Yandex)
Advertising in the launcher

1. Disabling personalized advertising in Google settings

The easiest and safest way is to limit the collection of data for targeted advertising. This method does not remove advertising completely, but makes it less intrusive and relevant to your interests.

Go to Settings โ†’ Google โ†’ Advertising (the path may differ depending on the shell). Here you will find two key parameters:

  • ๐Ÿ”„ Reset advertising ID - this temporarily โ€œresetsโ€ your profile for advertisers. The effect lasts until the next data collection (usually 1-2 weeks).
  • ๐Ÿšซ Disable ad personalization is the most important point. After deactivation, Google will stop using your activity to select ads.

On some firmware (for example, MIUI 15), these settings may be hidden deeper: Settings โ†’ Advanced โ†’ Privacy โ†’ Advertising services. If there is no item at all, then the manufacturer has blocked it at the firmware level (typical for Redmi i Poco).

โš ๏ธ Attention: After resetting the advertising ID, some applications (for example, YouTube or Google Play Games) may temporarily display even more advertising - this is a normal reaction of the system to a โ€œnew userโ€. The effect will go away in 2-3 days.

2. Blocking ads through the hosts file (without root)

The method is based on redirecting advertising domains to an "empty" IP address (127.0.0.1). This works for most banners in applications and the browser, but does not affect built-in advertising in system services (for example, in MIUI Weather).

Download the current file hosts s 4PDA (section "Ad blocking") or use ready-made solutions:

  • ๐Ÿ“ฑ AdGuard application (free version) - automatically updates hosts and blocks trackers. Works without root, but requires VPN mode to be enabled (does not affect speed).
  • ๐Ÿ”ง Manual replacement of hosts via ADB:
    adb shell
    

    su

    mount -o rw,remount /system

    cp /sdcard/hosts /system/etc/hosts

    chmod 644 /system/etc/hosts

    Note: On new versions of Android (12+) a patch may be required Magisk for recording in /system.

For users Xiaomi i Redmi on 4PDA there are specialized hosts files, blocking domains miui.com, xiaomi.com and ad.mi.com, which are responsible for system advertising. Update the file once every 1-2 months - advertisers regularly change domains.

โ˜‘๏ธ Preparation for replacing hosts

Done: 0 / 5

3. Disabling advertising services via ADB (without root)

Manufacturers embed advertising modules as system applications that cannot be removed using standard methods. However, they can be disable via ADB (Android Debug Bridge) without obtaining root access.

Connect your phone to the PC, activate USB debugging (Settings โ†’ About phone โ†’ Build number โ€” tap 7 times, then return to Settings โ†’ System โ†’ For developers) and run the commands:

adb shell

pm uninstall -k --user 0 com.miui.analytics # For Xiaomi (statistics collection)

pm disable-user --user 0 com.android.browser # Browser with advertising (on some firmware)

pm disable-user --user 0 com.heytap.browser # Browser for Realme/Oppo

pm disable-user --user 0 com.samsung.android.app.spage # Samsung Free (advertising widget)

The full list of packages for your model can be found in topics 4PDA (search for "[your model] list of system applications"). For example, for Redmi Note 12 the current list for 2026 includes:

  • ๐Ÿ“Š com.miui.systemAdSolution โ€” MIUI main advertising module
  • ๐Ÿ” com.miui.search โ€” search bar with advertising
  • ๐ŸŒ com.android.chrome โ€”if you use another browser
โš ๏ธ Attention: Disabling some services (for example, com.google.android.gms) may disrupt the operation of Google Play, Gmail other services. Always check the purpose of the package before disconnecting!
What to do if ADB does not see the device?

1. Install official drivers from the manufacturer (for Xiaomi - Mi PC Suite, for Samsung - Smart Switch).
2. Check that the option "Allow USB debugging (safe mode)" is enabled in the developer settings.
3. Try another USB cable (original, not โ€œchargingโ€).
4. On Windows, run a command prompt as administrator and run:
adb kill-server
adb start-server

4. Using alternative firmware (for advanced ones)

If your smartphone officially supports bootloader unlocking, the most radical way to get rid of advertising is to install custom firmware like LineageOS, Pixel Experience or ArrowOS. These firmwares are devoid of built-in advertising and unnecessary manufacturer services.

Advantages of the method:

  • โœ… Complete absence of system advertising (no msa, Analytics etc.)
  • โœ… Regular security updates (unlike those abandoned by the manufacturer devices). camera, NFC or wireless charging (depending on the model)
  • โœ… Possibility of fine tuning via Magisk and modules

Disadvantages and risks:

  • โš ๏ธ Loss of warranty (on most brands)
  • โš ๏ธ Possible problems with the camera, NFC or wireless charging (depending on the model)
  • โš ๏ธ The need for manual data backup before flashing

On 4PDA there are detailed firmware guides for popular models:

Model Recommended firmware Link to instructions (4PDA) Features
Xiaomi Redmi Note 11 Pixel Experience 15 Theme "PE for Note 11" Google Camera works, no ads
Samsung Galaxy A52 LineageOS 21 Theme "Lineage for A52" A patch for Knox is required
Realme 9 Pro ArrowOS 14 Theme "ArrowOS for RMX3393" Supports 90 Hz, no bloat
๐Ÿ’ก

Before flashing the firmware, check whether your model supports official bootloader unlocking. For example, Samsung blocks unlocking on most models after 2022, and Xiaomi requires waiting 7-30 days after linking your account.

5. Blocking ads in the browser and applications

Even if you remove system advertising, banners in the browser and games will remain. To block them, use a combination of:

  • ๐Ÿ›ก๏ธ Browser with a built-in blocker: Brave, Firefox with an extension uBlock Origin, or Kiwi Browser (supports Chrome extensions).
  • ๐Ÿ“ต DNS filtering: Set up a private DNS in Settings โ†’ Network and Internet โ†’ Private DNS. Use:
    dns.adguard.com
    

    1dot1dot1dot1.cloudflare-dns.com

    This will block advertising at the network level, but may break some sites (for example, banking).

  • ๐ŸŽฎ For games: Applications like Lucky Patcher (requires root) or GameGuardian can block advertising modules in APK, but this violates the rules Google Play and can lead to account ban.

Important: Since 2026, Google has been actively blocking applications with modified APK (including with removed advertising) through the system Play Protect. If you use patched versions of games, disable Play Protect in the settings Google Play and add the application to antivirus exceptions.

6. Resetting advertising IDs and clearing cache

Advertising networks (for example, Google AdMob, Unity Ads) use cached data to display targeted ads. Periodic cleaning helps reduce the number of banners.

Follow these steps:

  1. Open Settings โ†’ Applications and find:
    • ๐Ÿ“ฑ Google Play Services โ†’ Clear cache and data
    • ๐Ÿ“Š Google Play Market โ†’ Clear cache
    • ๐Ÿ” Google Play Services for instant applications (if available)
  • Reset the advertising ID (see Section 1).
  • Reboot the device.
  • To automate the process, use the application SD Maid (section CorpseFinder) - it finds and deletes residual advertising SDK files. 4PDA there is a modified version without restrictions.

    โš ๏ธ Attention: Data clearing Google Play Services may temporarily disrupt operation Gmail, YouTube and other services. Log in again 5-10 minutes after cleaning.

    7. What to do if advertising returns after an update

    Manufacturers (especially Xiaomi, Oppo, Vivo) often โ€œreturnโ€ advertising modules through OTA updates. If after the firmware update the banners appeared again:

    Methods of solution:

    • ๐Ÿ”™ Rollback to the previous firmware version (if there is a backup). On 4PDA there are instructions for downgrading for most models.
    • ๐Ÿ”ง Re-disabling services via ADB (see Section 3). After the update, new packages may appear - check the current list in the topic of your device.
    • ๐Ÿ“ต Blocking updates for specific applications:
      adb shell pm disable-user --user 0 com.xiaomi.market # Xiaomi Store
      

      adb shell pm disable-user --user 0 com.oppo.market # Oppo Store

    For Samsung s One UI 6.0+ users 4PDA recommended to disable:

    • ๐Ÿ“ฐ com.samsung.android.app.spage (Samsung Free)
    • ๐ŸŒ com.samsung.android.app.routines (Bixby Routines with advertising)
    • ๐ŸŽต com.samsung.android.app.music (Samsung Music with banners)
    ๐Ÿ’ก

    After each major firmware update, check the list of active packages using the command adb shell pm list packages | grep -i "ad\|market\|analytics". This will help identify new advertising modules.

    8. Alternative methods: from Magisk to physical blocking

    If none of the methods help, consider radical solutions:

    Using Magisk (requires root):

    • ๐Ÿ”ง Module AdAway โ€” blocks ads at the system level via modification hosts.
    • ๐Ÿงฉ Module Universal Ad Blocker โ€” removes advertising views from APK on the fly.
    • ๐Ÿ” Module App Systemizer โ€” allows you to turn user applications (for example, AdGuard) into system ones, which increases their blocking priority.

    Physical blocking (for the technically savvy):

    • ๐Ÿ“ก Use Pi-hole on the router - blocks advertising for all devices on the network.
    • ๐Ÿ“ฑ Installation AFWall+ (requires root) - allows you to completely disable the Internet for advertising services.

    On 4PDA there is a topic "Collection of Magisk modules against advertising", where users share current configurations for different Android versions. For example, for Android 15 it is recommended to use a module Universal SafetyNet Fix + AdAway with custom blocklist sources.

    ๐Ÿ’ก

    If you use Magisk, regularly update modules via Magisk App โ†’ Modules โ†’ Update all. Outdated blocking rules may stop working after updates to advertising SDKs.

    FAQ: Frequently asked questions about removing ads on Android

    โ“ Is it possible to remove ads on Android without root and ADB?

    Yes, but the effectiveness will be limited. Use a combination of: Turning off personalized advertising in Google settings. applications.

    • Turn off personalized advertising in Google settings.
    • Browser settings with a blocker (for example, Brave).
    • Private DNS Settings (dns.adguard.com).

    This will reduce the amount of advertising by 60-70%, but will not completely remove it from system applications.

    โ“ Why did there become more advertisements after resetting the advertising ID?

    This is a temporary effect. The system perceives you as a โ€œnew userโ€ and shows more banners to collect data on preferences. After 2-3 days, the number of advertisements will decrease.

    If there are no fewer advertisements after a week, check if personalization is enabled. again (Settings โ†’ Google โ†’ Advertising).

    โ“ How to remove ads in games without root?

    Options without root:

    • Use AdGuard in VPN mode (blocks some advertising domains).
    • Configure private DNS (see Section 5).
    • Look for modified APKs on 4PDA (but this breaks the rules Google Play).

    To completely block you will need root + modules Magisk (for example, Game Ad Block).

    โ“ Is it possible to remove ads in MIUI/ColorOS/One UI forever?

    Forever - only using custom firmware (see Section 4). In other cases, advertising may return after updating the firmware.

    To minimize its appearance:

    • Disable automatic updating of system applications.
    • Regularly check active packages via ADB.
    • Use hosts-blocking with automatic updating (for example, via AdAway).
    โ“ Is it legal to block advertising on Android?

    Blocking ads in browser or through DNS/VPN is legal - this is your right as a user.

    Removing advertising from applications (especially paid ones) may violate the terms of use of the service. Some games (for example, from Supercell or Tencent) ban accounts for using blockers.

    System advertising (in MIUI, ColorOS) blocking is allowed - this does not violate the laws, but it may void the warranty when unlocking the bootloader.