A Galaxy phone acting strangely can feel like it has caught something. Pop-ups appear out of nowhere, the battery drains in hours, and apps you never installed show up on the home screen. When a factory reset does not seem to help, flashing fresh firmware starts to look like the ultimate clean-up: wipe everything and start over with a clean copy of Samsung's software. It can work, but only for certain kinds of malware, and the difference matters.
What flashing actually wipes
A clean flash replaces the system partition and wipes the data partition, which means it removes the operating system and every app, setting, and file you added. The phone ends up in the same state it left the factory in, running a fresh copy of Samsung's software with nothing extra installed.
That is a much deeper clean than a factory reset from the Settings menu. A factory reset wipes your data but leaves the system partition untouched, so anything hiding in the system itself survives it. A flash replaces the system too, which is why people turn to it when a reset has not fixed the problem.
The key point is that flashing only cleans what it overwrites. The system and data partitions are replaced. Other parts of the phone, like the bootloader and the recovery partition, are only touched if the firmware package includes them. Most stock firmware packages do include them, but it is worth knowing that a flash is not a magic eraser for the whole device.
The malware a flash can remove
Most phone malware lives in the data partition. It arrives as a bad app, often sideloaded from outside the Play Store, and it runs with the permissions you gave it when you installed it. It can show ads, steal data, or drain the battery, but it lives in the same space as your other apps.
A clean flash removes all of that. The bad app is gone along with every other app, the settings it changed are reset, and the accounts it added are wiped. If the infection was an app, the phone comes back clean.
Malware that modified system files is also removed, because the system partition is replaced with a fresh copy. Some aggressive infections change system settings or install themselves as a system app so a factory reset cannot remove them. A flash replaces the system they were hiding in, so they go with it.
The malware a flash cannot remove
The problem cases are infections that live outside the partitions a normal flash touches. The rarest and most stubborn kind is malware in the bootloader or in the recovery partition, which loads before Android itself starts. A standard firmware package usually rewrites these, but a specially crafted infection could survive if the flash does not touch the exact area it lives in.
There is also malware that lives on the SD card or in files stored on the phone. A flash wipes the internal storage, but if you have an SD card with infected files on it and you put the same card back in after the flash, the malware can come straight back. The same applies to backups: if you restore a backup that contains the infected app or its data, you have just reinstalled the problem.
The most common way a flash fails to help has nothing to do with where the malware hides. People flash the phone, then sign in and reinstall the same apps from the same sources, including the bad one. The phone was clean for about ten minutes, and then it was infected again.
Why a factory reset is the safer first step
Flashing is a heavy tool, and for most infections it is more than you need. A factory reset from the Settings menu removes all apps and data, which handles the vast majority of phone malware, and it carries almost no risk of bricking the phone.
Before you reset, remove any apps you do not recognise and check which apps have device admin permission, because malware often protects itself that way. An app with device admin rights cannot be uninstalled normally, and revoking that permission first is the step people miss.
If the phone is still misbehaving after a factory reset, and you have ruled out a bad app being reinstalled from a backup, then the infection is probably in the system partition. That is the point where flashing starts to make sense, because a reset cannot reach it.
How to flash safely if you go ahead
If you decide to flash, start by backing up only what you need: photos, contacts, and messages. Do not back up apps, and do not restore a full backup afterwards. Reinstall your apps fresh from the Play Store, one at a time, and skip anything you do not recognise.
Use the firmware that matches your exact model number and region. A wrong file can cause more problems than the malware did, and a phone with the wrong firmware may not boot at all. Download it from a trusted source and check the file before you flash.
Flash with a charged battery and a reliable cable, and do not interrupt the process. When the phone boots, set it up as a new device instead of restoring from a backup. If the strange behaviour is gone and stays gone, the flash did its job. If it comes back, the source is probably an app you reinstalled or a file on an SD card, and that is where to look next.
For official firmware downloads and step-by-step flashing guides, visit SamFware, where SamFware keeps the latest stock ROMs for every Galaxy model.
Top comments (0)