Pop-up ads appearing on top of all applications on Android are one of the most annoying problems for users. It not only interferes with your work, but can also be dangerous: often such banners contain malicious links or are disguised as system notifications. Unlike regular in-app ads, these pop-ups appear suddenly, even when you're not using the browser or games. The reasons for their appearance vary from installed viruses to aggressive settings of advertising SDKs in legal software.

In this article we will analyze all possible sources of pop-up advertising on Android - from hidden applications to system vulnerabilities. You will learn how to identify the culprit of the problem, which settings should be checked first, and which tools (including antivirus software) will help. We will pay special attention to cases when advertising appears even after resetting the settings - this is a signal of deep integration of adware into the system. ADB and antiviruses) will help completely clear the device of annoying banners. We will pay special attention to cases where advertising appears even after resetting the settings - this is a signal of deep integration of adware into the system.

Why pop-up advertising appears on top of the screen

The main reason is installed adware, which receives permission to display on top of other applications (SYSTEM_ALERT_WINDOW). Sources may be different:

  • ๐Ÿ“ฑ Fake or pirated applications - especially from third-party sources (not Google Play). Often disguised as popular games, launchers or utilities.
  • ๐Ÿ” Aggressive SDKs โ€”legal applications (even from Play Market) may use advertising libraries that abuse permissions.
  • ๐Ÿฆ  Malware โ€”Trojans or adwares that penetrate through vulnerabilities or fake updates.
  • ๐Ÿ“ฒ System applications โ€”some manufacturers (for example, Xiaomi, Samsung) embed advertising in branded services.

It is important to distinguish system advertising (for example, from MIUI or One UI) from viruses. The first usually appears in the settings menu or on the lock screen, and the second appears chaotically on top of any applications, including Settings or Phone.

๐Ÿ“Š Where do advertisements most often appear on your Android?
From the browser
From games
From unknown sources
After installing applications from APK
I donโ€™t know

Another common scenario โ€” advertising after root access. If you have ever gained root access, malware may have infiltrated your system processes. In this case, conventional cleaning methods will not work.

โš ๏ธ Attention: If advertising appears even in Safe Mode (we'll talk about it below), this is a sign of infection at the firmware level. A complete flashing of the device will be required.

How to determine the culprit of pop-up advertising

Before deleting everything, you need to identify the source of the problem. Here step-by-step diagnostic algorithm:

  1. Check recently installed applications. Sort the list Settings โ†’ Applications by installation date. Remove suspicious ones (especially if they asked for permission Display on top of other applications).
  2. Use ADB for analysis. Connect your phone to PC and run the command:
    adb shell dumpsys window | grep mCurrentFocus

    It will show which application is active when the advertisement appears.

  3. View the system logs. In Logcat (via Android Studio or ADB) look for records with keywords advertisement, popup or SYSTEM_ALERT.

If you are not familiar with ADB, use analyzer applications, for example, App Inspector or Package Name ViewerThey will show which apps have critical permissions.

โ˜‘๏ธ Checklist for finding an advertising source

Done: 0 / 5
Symptom Probable source Solution
Advertising appears in browser Malicious extensions or redirects Clear browser cache, remove extensions
Pop-up on top of all applications App with permission SYSTEM_ALERT_WINDOW Revoke permission or delete Software
Advertising after reboot System software or virus in /system/app Flashing or factory reset
Banners with the offer to "optimize the phone" Fake antiviruses or cleaners Delete via Settings โ†’ Applications

Removing advertising through Android settings

If the source of advertising is a regular application, it can be removed using standard means. Follow the instructions:

  1. Open Settings โ†’ Applications.
  2. Click on the three dots in the upper right corner and select Show system processes.
  3. Sort the list by Permissions and find apps with the right Display on top of others.
  4. Revoke this permission or delete the application.

For devices Xiaomi, Redmi or POCO Additionally check:

  • ๐Ÿ“Œ Settings โ†’ Memory โ†’ Cleaning โ€” disable the option MIUI Recommendations.
  • ๐Ÿ“Œ Settings โ†’ Advanced โ†’ Accessibility โ†’ Advertising โ€” deactivate all toggle switches.

On Samsung advertising can be shown by branded services, for example, Samsung Push Service or Samsung Free. They can be disabled, but not deleted:

  1. Go to Settings โ†’ Applications.
  2. Find Samsung Push Service โ†’ Disable.
  3. For Samsung Free hold your finger on the home screen โ†’ Home screen settings โ†’ disable the widget.
adb shell pm disable-user --user 0 com.package.name

(replace com.package.name with the real package name).-->

Safe mode: virus scan

Safe Mode loads Android without third-party applications. If there are no advertisements in it, the installed software is to blame. If advertising remains, the problem is at the system level.

How to launch:

  • ๐Ÿ”ง Hold the button Power โ†’ press and hold Turn off power โ†’ confirm the transition c Safe Mode.
  • ๐Ÿ”ง On some devices: turn off the phone, then turn it on while holding down the button Reduce volume.

In safe mode:

  1. Check whether advertising appears.
  2. If not, remove suspicious applications (see previous section).
  3. If yes, a factory reset or flashing is required.
โš ๏ธ Attention: In safe mode, all user applications are disabled, but system processes (including viruses in /system) continue to run. If the advertisement persists, this is a serious signal!
What to do if you cannot enter safe mode?

On some devices (for example, OnePlus or Realme), entering safe mode may be blocked by the manufacturer. In this case, use an alternative method:

  1. Connect the phone to the PC.
  2. Run the command adb reboot safe-mode.

If this does not work, all that remains is to reset the settings.

Using antiviruses and specialized utilities

If manual cleaning does not help, use antivirus software. The best options for Android:

  • ๐Ÿ›ก๏ธ Malwarebytes - specializes in adware and Trojans. The free version scans on demand.
  • ๐Ÿ›ก๏ธ Bitdefender Mobile Security - detects hidden adware modules.
  • ๐Ÿ›ก๏ธ Kaspersky Internet Security - is effective against root viruses.

How to scan:

  1. Install antivirus from Google Play.
  2. Run Deep scan (not fast!).
  3. Delete or quarantine all detected threats.
  4. Reboot the device.

Suitable for advanced users SD Maid โ€”the utility cleans residual files and cache that may contain advertising scripts. Particularly useful after removing suspicious applications.

Antivirus Strengths Disadvantages
Malwarebytes Best for security, lightweight No constant protection in the free version
Bitdefender High level of detection, cloud scanning Paid subscription for full functionality
Kaspersky Protection against root viruses, blocking phishing May conflict with some firmware
๐Ÿ’ก

Antiviruses Advertising modules are not always detected in legitimate applications. If after scanning the problem remains, check the permissions manually (see section 3).

Resetting settings and flashing: extreme measures

If none of the methods worked, the only option is reset to factory settings or a complete flashing. This will delete all data, so first:

  • ๐Ÿ“ฒ Make a backup copy of important files (photos, contacts, messages).
  • ๐Ÿ“ฒ Write down a list of installed applications (you can via Google Play โ†’ Library).
  • ๐Ÿ“ฒ Make sure you have access to your account Google (needed after reset).

How to reset:

  1. Go to Settings โ†’ System โ†’ Reset settings.
  2. Select Delete all data (factory reset).
  3. Confirm the action. The phone will reboot and begin the cleaning process.

If advertising appears even after the reset, this means that it is built into the firmware. In this case:

  • ๐Ÿ”ง Install custom firmware (for example, LineageOS).
  • ๐Ÿ”ง Contact the service center to flash the official one Software.
โš ๏ธ Attention: On some devices (especially Chinese brands), advertising may be part of the proprietary shell. For example, MIUI from Xiaomi or ColorOS from Oppo contain built-in advertising modules. They can only be disabled through deep settings. or root.

How to prevent advertising from appearing in the future

To minimize the risk of re-infection:

  • ๐Ÿ”’ Install applications only from Google Play (the risk is lower than with APK).
  • ๐Ÿ”’ Before installing, read reviews and check permissions (for example, why does the messenger need the right Display on top of others?).
  • ๐Ÿ”’ Update Android and applications regularly - many vulnerabilities are closed in new ones versions.
  • ๐Ÿ”’ Use DNS filtering (for example, AdGuard DNS or 1.1.1.1) to block advertising domains at the network level.

For additional protection:

  • ๐Ÿ›ก๏ธ Configure Google Play Protect: open Play Market โ†’ Menu โ†’ Play Protect โ†’ enable device scanning.
  • ๐Ÿ›ก๏ธ Install ad blocker (for example, Blokada or AdAway for root devices).

Please note Phishing tricks: advertisements are often disguised as system notifications (for example, โ€œYour phone is infected! Click hereโ€). Never interact with such banners - they may install additional software.

  • Number of installations (counterfeits usually have few downloads).
  • Date of publication (fraudsters often create โ€œclonesโ€ of popular applications with a recent date).
  • Name of the developer (official applications have a verified checkbox).
-->

FAQ: Frequently asked questions about pop-up advertising on Android

Is it possible to remove advertising without root access?

Yes, in most cases it is enough to revoke permission Display on top of others or remove the guilty application. Root is required only to remove system software or deep clean.

Why does advertising remain after deleting an application?

Possible reasons:

  • The application left behind a service or cache.
  • Advertising is shown by other software (check everything with permission SYSTEM_ALERT).
  • The virus has entered the system processes (reset or flashing is required).

Try to scan the device with an antivirus or check the logs via ADB.

How to block advertising at level router?

Configure DNS filtering on the router:

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

This will block advertising on all devices on your network.

What to do if advertisements appear in games?

In this case, the source is usually the application itself. Try:

  • Disable the Internet for the game in the Android settings (Settings โ†’ Applications โ†’ [Game] โ†’ Mobile data and Wi-Fi).
  • Install a modified version of the game (for example, with Lucky Patcher, but this breaks rules Google Play).
  • Use ad blocker (for example, Blokada).

If the game is from Google Play, check the reviews - perhaps other users are complaining about the same thing.

Can an antivirus remove all types of advertising?

No, antiviruses are effective against malware, but cannot block legitimate advertising in applications (for example, in free games). This requires specialized blockers (AdGuard, DNS66).