You open your phone to check messages or launch an application - and instead you are faced with an annoying banner โ€œYou won an iPhone!โ€ or โ€œYour battery is infected with viruses!โ€ Pop-up ads on Android desktop are not just annoying: they slow down your device, waste your bandwidth, and can be a security risk. But why does it appear even on new smartphones? And how to get rid of it once and for all?

The reasons for the appearance of advertising lie in three key factors: installed applications (including legitimate ones, but with aggressive monetization), system services (especially on budget devices from little-known brands) and virus software, penetrated through third-party APKs. In this article we will analyze all possible advertising sources from hidden functions in MIUI or ColorOS to malicious scripts, and also give step-by-step guide for cleaning your phone without data loss. Spoiler: in 80% of cases the problem is solved without resetting to factory settings!

It is important to understand: if advertising appears only in the browser (for example, in Chrome or Yandex Browser) - this is a separate story, and we also touch on its solution. But our main focus is banners that pop up on top of all windowsincluding the desktop, application menu and even the lock screen. Such cases require an integrated approach.

1. Why ads appear on the Android desktop: 5 main reasons

Before removing ads, you need to understand their source. Here are the key โ€œculpritsโ€:

  • ๐Ÿ“ฑ Firmware from the manufacturer. Many budget smartphones (Xiaomi, Realme, Oppo, Samsung with shell One UI) integrate advertising modules into system applications. For example, in MIUI advertising can be shown in Security, Themes or even in Settings.
  • ๐ŸŽฏ Apps with aggressive monetization. Even legitimate apps (for example, some launchers) can show ads on the desktop through notifications or overlays. Malware that enters through pirated APKs (for example, hacked games or โ€œfreeโ€ versions of paid apps) often adds advertising banners on top of all windows. ES Explorer, UC Browser, some launchers) may show ads on the desktop through notifications or overlays.
  • ๐Ÿฆ  Adware (advertising viruses). Malware that enters via pirated APKs (such as hacked games or โ€œfreeโ€ versions of paid apps) often adds advertising banners on top of all windows.
  • ๐Ÿ”„ System application updates. Sometimes, after updating standard services (for example, Google Play Services or Android System WebView), pop-up windows begin to appear.
  • ๐Ÿ“ก Push notifications from sites. If you have ever allowed notifications to be shown to any dubious site, it can send advertisements directly to the lock screen.

The most insidious case is when advertising is disguised as system messages. For example, the banner โ€œYour phone is infected!โ€ may imitate an alert from Google Play Protection, although in fact it is phishing pagetrying to trick you into installing malware.

โš ๏ธ Attention: If advertising appears even in safe mode (we'll talk about it below), this almost guarantees that the virus has penetrated the system files. In this case, you may need to flash the device.
๐Ÿ“Š How often do you encounter advertising on your desktop?
Constantly, several times a day
Sometimes, 1-2 times a week
No advertising, but notifications bother me
Never seen

2. How to determine which application is showing ads: step-by-step diagnostics

Before deleting everything, you need to figure out the specific source of advertising. Here's how to do it:

Method 1: Checking through โ€œRecent Appsโ€

When the advertising banner appears, quickly open multitasking menu (swipe up with a delay or the โ€œRecentsโ€ button). Sometimes advertising comes from an application that visible in this list (for example, Clean Master or APUS Launcher). Remember its name and delete it.

Method 2: Monitoring through โ€œSettings โ†’ Applicationsโ€

Go to Settings โ†’ Applications โ†’ All applications and sort the list by installation date. Pay attention to apps installed in recent days - especially those that you do not remember or that have suspicious names (for example, Settings โ†’ Applications โ†’ All applications Installation date System Update, Flash Player, Battery Saver Pro).

Method 3: Using ADB to search for adware packages

For advanced users: connect the phone to the PC, turn on USB debugging and run the command:

adb shell dumpsys window | grep mCurrentFocus

This command will show which application is currently active. If advertising pops up on top of all windows, a package may appear in the output. type com.ad.service or com.push.notification.

Advertising type Probable source How to check
Banners on top of all windows Adware or system software (for example, on Xiaomi) data-i="124">Applications with permissions for notifications or push sites com.miui.daemon on Xiaomi) Run in safe mode (see section 3)
Notifications in the status bar Apps with permissions for notifications or push sites Check Settings โ†’ Notifications
Advertising in the browser Malicious extensions or DNS redirects Clear browser cache, check DNS in Settings โ†’ Wi-Fi
Advertising on the lock screen Launcher or widget (for example, GO Launcher) Remove all third-party launchers
๐Ÿ’ก

If advertising appears only when connected to Wi-Fi, check the router for malicious DNS. Try changing the DNS to 8.8.8.8 (Google) or 1.1.1.1 (Cloudflare) in the network settings.

3. Android

If you suspect that a third-party application is showing ads, first start the phone in safe mode. In this mode, only system apps work, so if the advertising disappears, one of the applications you installed is to blame.

Step 1: Launch safe mode

The method depends on the phone model:

  • ๐Ÿ“ฑ On most devices: hold the power button, then hold your finger on the โ€œTurn offโ€ option until the prompt to switch to safe mode appears.
  • ๐Ÿค– On Samsung: turn off the phone, then turn it on with the volume down button down.
  • ๐ŸŽ On Xiaomi/Redmi: hold the power button and select "Restart in safe mode."

Step 2: Check for advertising

In safe mode, work with the phone for 5-10 minutes. If there is no advertising, the problem is in one of the installed applications. If it remains, it is the fault the system or a virus in the firmware.

Step 3: Removing suspicious applications

Return to normal mode and remove:

  1. All apps installed in the last 2-3 weeks.
  2. Applications with suspicious names (for example, Super Cleaner, Battery Doctor, Flash Player 2026).
  3. Launchers (if you are not using standard).
โš ๏ธ Attention: Some viruses disguise themselves as system applications (for example, com.android.system). Removing them manually is dangerous - this can lead to system crash. Instead, use an antivirus (see section 5).

โ˜‘๏ธ Checklist for cleaning ads

Done: 0 / 5

4. Disabling advertising in system applications (for Xiaomi, Samsung, Realme, etc.)

Smartphone manufacturers often embed advertising in their shells. For example, Xiaomi shows banners in Security, Themes and even in Settings, and Samsung can add advertising notifications from Samsung Free or Bixby. Here's how to disable it:

For Xiaomi/Redmi/Poco (MIUI)

  1. Open Settings โ†’ About phone and tap several times by MIUI versionsto activate Developer mode.
  2. Return to Settings โ†’ Advanced โ†’ Accessibility โ†’ Developer Mode and enable USB debugging.
  3. Install the app on your PC MIUI Hidden Settings (available on GitHub) and connect the phone. In the section Advertising disable all switches.

Alternative method (without a PC):

  • ๐Ÿ”ง Open Settings โ†’ Applications โ†’ Manage applications โ†’ All applications.
  • ๐Ÿ” Find msa (or com.miui.systemAdSolution) and disable it.
  • ๐Ÿ” Find Security (com.miui.securitycenter) โ†’ Notifications โ†’ disable advertising notifications.

For Samsung (One UI)

Disable:

  • ๐Ÿ“ฑ Samsung Free: swipe left on the main screen โ†’ tap on gear icon โ†’ disable automatic notifications.
  • ๐Ÿค– Bixby: Settings โ†’ Advanced โ†’ Bixby โ†’ disable all options.
  • ๐Ÿ”ง Samsung Push Service: Settings โ†’ Applications โ†’ Samsung Push Service โ†’ Notifications โ†’ disable.

For Realme/Oppo/ColorOS

Go to Settings โ†’ Privacy โ†’ Advertising Services and disable:

  • ๐ŸŽฏ Personalized Advertising.
  • ๐Ÿ“Š Usage Data Collection.
โš ๏ธ Attention: On some devices (Huawei, Honor), disabling advertising may require root access or use ADB. If you are not sure, skip this step so as not to disrupt the operation of the system.
What to do if there is no "Advertising services" item?

On some firmware (for example ColorOS 13+), this section may be hidden. Try entering the query โ€œadvertisingโ€ or โ€œadvertisingโ€ in the search settings. If nothing is found, use the command to disable advertising services: Be careful: ADB-command to disable advertising services:

adb shell pm disable-user --user 0 com.heytap.browser

adb shell pm disable-user --user 0 com.coloros.assistantscreen

Be careful: incorrect commands can lead to system failure!

5. Removing viruses and adware using antiviruses and manual cleaning

If advertisements appear even after removing suspicious applications, your phone is most likely infected adware (advertising virus). Here's how to find and remove it:

Step 1: Antivirus scan

Install one of these applications (they are free and effective against adware):

  • ๐Ÿ›ก๏ธ Malwarebytes (specializes in adware and spyware).
  • ๐Ÿ” Kaspersky Mobile Antivirus (detects even hidden ones threats).
  • ๐Ÿ“ฑ Bitdefender Mobile Security (lightweight and fast scanner).

Run Full scan and remove all detected threats. Pay attention to files with names like:

  • com.ad.service
  • com.push.notification
  • com.system.update

Step 2: Manually checking application permissions

Adware often requests permissions for:

  • ๐Ÿ“ฒ Display on top of other windows (SYSTEM_ALERT_WINDOW).
  • ๐Ÿ”” Sending notifications.
  • ๐Ÿ”„ Autostart.

You can check permissions in Settings โ†’ Applications โ†’ Permissions. Sort applications according to these criteria and revoke permissions from suspicious apps.

Step 3: Clear cache and browser data

If advertising appears in Chrome or another browser:

  1. Open Settings โ†’ Applications โ†’ Browser.
  2. Click Clear cache and Clear data.
  3. In your browser settings, disable notifications from sites (Settings โ†’ Sites โ†’ Notifications).
๐Ÿ’ก

If the antivirus finds threats but cannot remove them, this means that The virus has received administrator rights. In this case, go to Settings โ†’ Security โ†’ Device administrators and revoke the rights of suspicious applications.

6. Radical methods: resetting settings and flashing

If none of the above helped, extreme measures remain. They should be used only if advertising completely paralyzes the phone's operation or clearly indicates a deep infection of the system.

Method 1: Reset to factory settings

This will delete all data from the phone, therefore make a backup first (photos, contacts, messages). Then:

  1. Go to Settings โ†’ System โ†’ Reset settings.
  2. Select Delete all data.
  3. Confirm the action.

After the reset do not restore data from the backup copyif it was created after infection, the virus may return!

Method 2: Flashing via Fastboot or Recovery

If the reset did not help, it means that the virus has embedded itself in the system files. In this case, only full flashingwill help. The instructions depend on the phone model:

  • ๐Ÿ“ฑ For Xiaomi: download the official firmware from the website en.miui.com and flash it via Mi Flash Tool.
  • ๐Ÿค– For Samsung: use Odin and official firmware with Sammobile.
  • ๐ŸŽ For other brands: look for instructions on the forums 4PDA or XDA Developers.
โš ๏ธ Attention: Flashing will reset the IMEI and may void your warranty if the phone is not officially unlocked. If you are not sure, contact the service center.
What to do if after the firmware the advertising returned?

This means that the virus is stored in one of the memory sections (for example, /data or /cache). Try:

1. Flash the phone via Fastboot with full formatting (fastboot erase userdata).

2. Install custom recovery (TWRP) and manually format the partitions.

3. If nothing helps, the problem may be in hardware (for example, in the modem firmware).

7. How to prevent advertising in the future: 5 safety rules

To prevent advertising from returning, follow these recommendations:

  • ๐Ÿ”’ Install applications only from Google Play. dubious sites (for example, apkpure.com, uptodown.com).
  • ๐Ÿ“‹ Read reviews before installing. If a app has 2-3 stars and a lot of complaints about advertising, do not install it.
  • ๐Ÿ›ก๏ธ Use DNS filtering. Set in the Wi-Fi or mobile network settings DNS 1.1.1.1 (Cloudflare) or 9.9.9.9 (Quad9) - they block advertising domains.
  • ๐Ÿ” Regularly check application permissions. to notifications and display on top of windows unnecessary apps.
  • ๐Ÿ“ฑ Update Android. New versions close vulnerabilities that are used by adware.

You should also refuse:

  • ๐Ÿšซ Launchers from third-party developers (for example, GO Launcher, APUS Launcher).
  • ๐Ÿšซ โ€œOptimizersโ€ and โ€œcleanersโ€ (for example, Clean Master, DU Speed Booster).
  • ๐Ÿšซ Pirated versions of games and apps.
๐Ÿ’ก

The most reliable method of protection is disabling installation from unknown sources (Settings โ†’ Security โ†’ Unknown sourcesEven if you accidentally download a virus, it will not be able to install.

FAQ: Answers to frequently asked questions about advertising on Android

โ“ Why do advertisements appear even after deleting all applications?

This means that the virus has embedded itself in system files or is using administrator rights. Try:

  1. Check Settings โ†’ Security โ†’ Device administrators and disable suspicious applications.
  2. Install Malwarebytes and run a scan for root access (if the phone is rooted).
  3. Reset to factory settings.
โ“ Is it possible to remove ads without resetting the settings?

Yes, in 90% of cases help:

  • Removing suspicious applications.
  • Disabling advertising in system services (see section 4).
  • Clearing the browser cache and revoking notification permissions.

Resetting is the last resort measure.

โ“ Why does advertising immediately appear on a new phone?

This is typical for budget models (Redmi, Realme, Tecno etc.), where the manufacturer builds advertising into the firmware. To remove it:

  1. Disable personalized advertising in the settings.
  2. Use ADB to deactivate system advertising services.
  3. If all else fails, install custom firmware (for example, LineageOS).
โ“ How to block advertising at the router level?

Configure DNS filtering on the router:

  1. Go to the router control panel (usually at 192.168.1.1).
  2. Find the section DNS and specify 1.1.1.3 (Cloudflare Family) or 94.140.14.14 (AdGuard DNS).
  3. Save the settings and reboot the router.

This will block advertising on all devices, connected to your network.

โ“ Why did ads appear after the Android update?

Sometimes firmware updates add new ones advertising SDKs or change the privacy policy To return everything back:

  • Check if new system applications have appeared (for example, com.brand.newservice).
  • Roll back to the previous firmware version (if there is a backup).
  • Write a complaint to the manufacturer's support - sometimes they disable advertising due to numerous requests users.