Detecting malicious software on a mobile device always causes panic, but removing a Trojan yourself is quite possible without contacting a service center. Modern viruses are often disguised as system processes or legitimate applications, which makes them difficult to detect using standard methods. In this article, we will analyze a step-by-step algorithm of actions that will allow you neutralize the threat and regain control of your gadget.

The manual cleaning method requires care and understanding of the structure of the operating system Android. You'll have to dig into hidden settings, check permissions, and possibly delete files that the system protects by default. The main thing is to act consistently so as not to damage the functionality of the device in an attempt to get rid of the malware.

Initial diagnostics and entering safe mode

Before taking active steps, it is necessary to isolate the malicious code. Most Trojans launch automatically when you turn on your device, blocking access to settings or continuously showing advertisements. For safe operation, you need to boot your smartphone into Safe Mode, in which only system applications are launched.

The login process may differ depending on the model of your device. On most modern smartphones, it is enough to hold down the power button on the screen, and then (hold) the “Shut down” or “Reboot” icon that appears until you are asked to enter safe mode. On older models, you may need to hold down the physical volume down button while turning on the device.

If you have successfully entered this mode, a corresponding message should appear in the corner of the screen. This means that third-party applications, including the virus, are currently inactive. It is in this state that we will carry out the main cleaning, since the malware will not be able to resist removal.

📊 How did the virus appear on your device?
Constant advertising
Screen lock
Money write-off
Spontaneous installation of applications

Searching for and removing suspicious applications

Now that the system is in a safe state, you need to find the source of the problem. Trojans are often hidden under the names of system utilities, such as “System Update”, “Flash Player”, or simply have an empty name and a transparent icon. Go to the menu Settings → Applications and carefully view the full list.

Pay attention to applications without icons or with non-standard names. If you see a app that you did not install, or a system process with a suspicious name, click on it. In the menu that opens, find the button Delete. If the button is active, simply confirm the action.

However, viruses often protect themselves from removal by gaining elevated privileges. If the delete button is inactive or gray, it means that the application has received rights device administrator. In this case, you cannot simply erase the file - you must first revoke these rights.

💡

Before deleting, write down the name of the suspicious application. This will help you find additional traces of the virus in the system or check its signature on the Internet.

Disable device administrator rights

Administrator rights allow an application to perform critical actions on the system, including blocking the deletion of itself. To remove a Trojan, you need to deprive it of this status. Go to the section Settings → Security → Device Administrators (the path may differ slightly on different firmware).

In the list that opens you will see all applications that have advanced permissions. Typically, only Google's Find My Device and pre-installed manufacturer services are found here. If you see an unfamiliar application or app with a suspicious name, uncheck the box next to it.

The system will ask you to confirm that rights have been disabled. Agree with the action. Now go back to the application management menu. The Delete button for the malicious app should become active. Click it and confirm erasing the data.

⚠️ Attention: If, after disabling administrator rights, the application automatically asks for them again or does not allow you to enter the settings menu, then the virus uses more complex protection mechanisms. In this case, you may need to connect to a PC.

Clearing the browser cache and temporary files

Often the source of infection is not installed applications, but scripts that have become embedded in the web browser cache. Even if you deleted the APK file, redirects and pop-ups may continue due to stored data in Chrome or another browser.

You need to completely clear your browser data. Go to Settings → Applications, find your main browser and select Storage. Click the Clear Cache button and then Clear Data (or Reset). This will delete history, logins and saved sessions, but is guaranteed to remove malicious scripts.

Also check the list of downloaded files in the file manager. Go to the folder Download and delete all APK files that you downloaded recently, especially if they have names like update.apk or player.apk from unverified sources.

After cleaning, reboot the device into normal mode. If the problem disappears, then the source has been found. If the advertisement returns, the Trojan may have installed itself on the system partition, which requires deeper intervention.

☑️ Cleanup checklist

Done: 0 / 5

Using ADB to remove system viruses

If a malicious application is built into the system and is not removed through the interface, you will need to use a computer and utilities ADB (Android Debug Bridge). This method allows you to control the device at a deep level by sending commands directly to the Android shell.

First, enable USB debugging on your phone. Go to Settings → About phone and click on the “Build number” item 7 times to unlock the developer menu. Then in the section that appears For developers activate the item USB debugging.

Connect the phone to the computer with a cable. The platform must be installed on the PC Android SDK Platform-Tools. Open the command line in the tools folder and enter the command to test the connection:

adb devices

A request will appear on the phone screen to allow debugging from this computer - confirm it. If the console displays the device serial number, the connection is established. Now you need to find out the exact name of the virus package. Enter the command:

adb shell pm list packages

Find the suspicious package name in the list (often it is different from the application's display name). To uninstall, use the command uninstall with a flag for the user:

adb shell pm uninstall -k --user 0 package.virus.name

This command will remove the application for the current user, effectively deactivating it, even if it is a system one. After completing the command, reboot your smartphone.

⚠️ Attention: Be extremely careful when entering ADB commands. Removing critical system packages (for example com.android.systemui) may cause the phone to become unbootable. Check the names of the packages with official lists.

Behavior analysis and table of signs of infection

Understanding exactly how the Trojan behaves helps to determine the type of threat and choose the right fight strategy. Below is a table comparing symptoms with probable types of malware.

Symptom Probable type of threat Combat method
Pop-up advertising on the desktop Adware (Advertising virus) Search for an application with overlay rights on top of other windows
Lock screen with ransom demand Ransomware (Encryptor/Blocker) Safe mode + reset administrator rights
Withdrawal of money from the account without notification SMS-Trojan (SMS Trojan) Checking rights to send SMS and removing malware
Quick discharge batteries and heating Cryptominer (Miner) Search for processes with high CPU load in the settings

Pay attention to the permissions that installed applications request. If a simple flashlight or calculator requires access to contacts, SMS or phone, this is a sure sign of a hidden threat. Uninstall such an application immediately.

What to do if the virus returns after removal?

If the application is restored by itself, it means that it has a “parent” process or is downloaded by a script from the browser. Try resetting your browser to factory settings and check autoloading via ADB.

Prevention and protection from future threats

After successful cleaning, it is important to consolidate the result and prevent re-infection. The main vector of attacks on Android is the installation of applications from third-party sources. Always disable the ability to install APK files from unknown sources in your security settings.

Regularly update your operating system and installed applications. Developers Google and device manufacturers are constantly closing vulnerabilities that hackers exploit. An outdated version of Android is an open door for Trojans.

Use reliable antivirus solutions from well-known vendors such as Kaspersky, Dr.Web or ESET. They are able to intercept the threat even at the download or installation stage, preventing the virus from gaining a foothold in the system.

⚠️ Attention: Android settings interfaces may differ depending on the shell version (MIUI, One UI, ColorOS). If you cannot find a specific item, use a search inside the settings menu using keywords.
💡

The main protection against Trojans is to install applications only from the official Google Play store and carefully read the requested permissions before installation.

Frequently asked questions (FAQ)

Is it possible to remove a Trojan without data loss?

Yes, in most cases, manual deletion through settings or ADB does not affect your personal files, photos and contacts. A reset to factory settings is required only in the most extreme cases, when a virus has built into the system partition and blocks the operation of the device.

Why is the application uninstall button inactive?

This means that the application has received device administrator rights. You need to go to the security section, find the “Device Administrators” item and uncheck the box next to the suspicious app before attempting to uninstall.

Is it safe to use ADB for a regular user?

Using ADB is safe if you know exactly the name of the package you are uninstalling. Erroneous removal of system components can lead to unstable operation of the phone. Always check the name of the package on the Internet before entering the command.

Do you need to format the SD card after removing the virus?

It is advisable. Trojans often save their installation files on an external drive. If you do not format the card, the virus may automatically install again the next time you connect. Make a backup copy of only photos and documents, format the card in the phone settings.

What to do if the phone is locked and does not enter safe mode?

If entering safe mode is blocked, try removing the malicious application through the computer using ADB without logging into the phone. If this does not help, the only option left is a full reset (Hard Reset) via the Recovery menu, which will delete all data.