AndroidCare

How to Remove a Virus From an Android Phone, Step by Step

Scan, find the app in Safe Mode, strip its permissions and uninstall it. A factory reset is the last step, not the first.

A person at a wooden table holding a smartphone in both hands, next to a magazine and coffee cups
Photo: Image Catalog, CC0 via Openverse (original)

AndroidCare Editorial · Updated · 7 min read

On this page
  1. Before you start
  2. 1. Close fake virus warnings in your browser
  3. 2. Run a Play Protect scan
  4. 3. Restart in Safe Mode to find the app
  5. 4. Find and uninstall the suspicious app
  6. 5. Remove device admin access if an app won't uninstall
  7. 6. Stop pop-up ads that appear outside any app
  8. 7. Check accessibility and other powerful permissions
  9. 8. Secure your accounts
  10. 9. Factory reset as a last resort
  11. Keep it from coming back
  12. Quick reference
  13. Sources

Android "viruses" are almost always apps: something you installed, often from outside the Play Store, that shows ads, signs you up for charges or watches what you do. That is good news, because an app can be found and removed. Work through the steps below in order and stop when the problem is gone. Most people never need the factory reset at the end.

Paths are given for Samsung Galaxy (One UI) and Google Pixel. Labels move between software versions. If one doesn't match your phone, open Settings and use the search box at the top.

Seeing a "Your phone is infected" warning in your browser? That is almost always a web page, not a real infection. It is designed to scare you into installing an app or calling a number. Don't tap anything on the page, don't call the number, and go to step 1.

Before you start

  • If money is involved, deal with that first. If you entered card or banking details, or approved a payment you didn't mean to, call your bank or card issuer now, using the number on the back of your card.
  • Don't install a "cleaner" to fix it. Apps that promise to "remove viruses" after a pop-up warning are often the problem, not the cure.
  • Back up your photos if you haven't recently, in case you end up at step 9. Google Photos or Samsung Cloud are fine; just don't restore apps from that backup later.

1. Close fake virus warnings in your browser

If the warning appeared while you were browsing, nothing has been installed yet.

  1. Close the tab. If the page won't let you, close the browser app from the Recents screen.
  2. In Chrome, tap the three-dot menu > Settings > Privacy and security > Delete browsing data, and clear cookies and cached images for the last day or so.
  3. If the warnings keep coming back as notifications, a site has permission to send them. In Chrome, go to Settings > Site settings > Notifications and block any site you don't recognize.

If you use Samsung Internet or another browser, the settings are similar; look for site permissions or notifications in its settings menu.

2. Run a Play Protect scan

Open the Play Store, tap your profile picture, then Play Protect, and tap Scan. If it flags an app, follow its prompt to uninstall.

While you're there, tap the settings gear and check Scan apps with Play Protect is on. If it was switched off and you didn't do it, treat that as a strong sign something on the phone turned it off.

On Samsung, also run Settings > Device care > Device protection > Scan phone.

A clean scan doesn't prove the phone is clean. Scanners catch known threats; a newer or sideloaded app can slip through. Carry on with the next steps if the symptoms continue.

3. Restart in Safe Mode to find the app

Safe Mode starts the phone with only the apps it shipped with. If the pop-ups, slowdowns or strange behavior stop in Safe Mode, a downloaded app is the cause.

  • Pixel 6 and later: press and hold Power and Volume up together, then touch and hold Power off (or Restart) and tap OK.
  • Samsung: press and hold the side key and Volume down together, or swipe down twice from the top of the screen and tap the power icon. Then touch and hold Power off until Safe mode appears, and tap it.

You'll see Safe mode in the corner of the screen. To leave it, restart the phone normally.

You can uninstall apps while in Safe Mode, which helps when a malicious app fights back or hides its icon in normal mode.

4. Find and uninstall the suspicious app

Open Settings > Apps (on Pixel, tap See all apps) and scroll the full list. Look for:

  • Apps you don't remember installing.
  • Apps installed around the time the trouble started.
  • "Cleaner", "booster", "battery saver", flashlight, wallpaper or VPN apps from developers you don't know.
  • Apps with a blank or generic icon, or a name like "System Service" or "Settings" that isn't the real one.

Tap the app, then Uninstall. If you aren't sure whether something belongs to the system, search the exact name online before removing it.

A useful trick for pop-up ads: when an ad or notification appears, touch and hold the notification, or open Recents right after a full-screen ad. Android usually shows which app it came from.

5. Remove device admin access if an app won't uninstall

If the Uninstall button is grayed out, the app has probably given itself device admin rights.

  • Samsung: Settings > Security and privacy > More security settings > Device admin apps.
  • Pixel: search Settings for device admin apps.

Turn off any app you don't recognize, then go back to step 4 and uninstall it. Find Hub (Find My Device) and work profile apps from your employer are normal entries here.

If the app keeps turning its access back on, do this from Safe Mode.

6. Stop pop-up ads that appear outside any app

Full-screen ads on the home screen or over other apps come from an app with permission to draw over the screen.

  • Samsung: Settings > Apps, tap the three-dot menu > Special access > Appear on top.
  • Pixel: Settings > Apps > Special app access > Display over other apps.

Turn it off for anything that doesn't need it. Chat bubbles, screen recorders and some navigation apps use it legitimately; a calculator or wallpaper app doesn't. If ads still appear, the app that has permission is a good candidate to uninstall.

7. Check accessibility and other powerful permissions

Accessibility access lets an app read the screen and tap for you. Banking malware and stalkerware rely on it.

  • Settings > Accessibility, then Installed apps (Samsung) or Downloaded apps (Pixel). Only apps you recognize and need, such as a password manager or screen reader, should be on.
  • Search Settings for notification access to see which apps can read your notifications, including texts with sign-in codes.
  • Check Install unknown apps is set to Not allowed for everything: Settings > Apps > Special app access on Pixel, or turn on Auto Blocker under Settings > Security and privacy on Samsung.

Our antivirus guide walks through these settings in more detail.

8. Secure your accounts

Removing the app stops it running, but anything it captured before that may already be gone. From a different device if you can:

  1. Change your Google account password, then your email, banking and any account you signed in to recently on the phone.
  2. Turn on 2-Step Verification for your Google account and anything that offers it.
  3. Run Google's Security Checkup at myaccount.google.com/security-checkup and remove devices and third-party access you don't recognize.

If you think someone has been inside your accounts, or the phone is being watched, read how to tell if your Android phone is hacked for the full checklist.

9. Factory reset as a last resort

If the problem survives everything above, or you found something serious like stalkerware or a remote-access app you didn't install, a factory reset erases every app and setting.

  1. Back up photos, contacts and files.
  2. Make sure you know your Google account password. After a reset, the phone may ask for the Google account that was on it before it can be set up again (Google calls this Factory Reset Protection).
  3. Samsung: Settings > General management > Reset > Factory data reset. Pixel: Settings > System > Reset options > Erase all data (factory reset).
  4. When setting the phone up again, reinstall apps from the Play Store one by one rather than restoring every app from a backup, so the bad one doesn't come back with them.

If you suspect someone you know installed monitoring software, read the stalkerware section of our hacked phone guide before resetting. Wiping the phone also wipes evidence, and the person may notice.

Keep it from coming back

  • Install apps only from the Play Store or Galaxy Store, and leave Install unknown apps off.
  • Keep Play Protect on and install system updates when they arrive.
  • Don't install apps because a pop-up, text or caller tells you to.
  • Before installing, check the developer name, the number of downloads and recent reviews.

Whether you also need a security app depends on how you use the phone. Our guide to whether you need antivirus on Android covers what's already built in and when an extra app is worth it.

Quick reference

Symptom Most likely cause Start with
"Virus found" warning in the browser Scam web page Step 1
Ads over the home screen or other apps Adware app Steps 3, 4 and 6
App won't uninstall Device admin rights Step 5
Strange texts or charges Malicious app or account access Steps 4, 7 and 8
Problem survives Safe Mode and removal Deeper infection Step 9

If you lost money or personal details, report it at reportfraud.ftc.gov. For identity theft, IdentityTheft.gov gives you a recovery plan.

Sources

Related guides