Modern smartphones often come with an impressive list of pre-installed apps that cannot be removed in the usual way through the device settings. This "junk", known as bloatwarenot only takes up precious space in the internal memory, but also consumes RAM and battery power in the background. For advanced users, the presence of unnecessary software becomes a serious problem that limits the performance of the gadget.
Fortunately, there is an effective method of cleaning the system using a personal computer and utility ADB (Android Debug Bridge)that does not require obtaining superuser rights (Root). This approach allows you to deactivate or completely remove system packages, making the interface cleaner and the device faster. However, the procedure requires care, since removing critical components can lead to the smartphone not working.
In this article we will analyze in detail the process of preparing the computer, setting up the smartphone and executing commands to safely clean the system. You'll learn how to distinguish important system services from ordinary garbage, what commands to enter into the terminal, and how to deal with unexpected errors. Understanding Android architecture will help you take full control of your device.
Preparing the working environment and drivers
The first step towards cleaning the system is to install the necessary software on your computer. You will need a package Platform Toolsthat contains the ADB and Fastboot utilities. The official distribution is available on the Android developers website, but you can also use third-party builds if you trust the source. After downloading the archive, you need to unpack it into a convenient directory, for example, the root of drive C or the desktop, so that the path to the files does not contain Cyrillic characters.
A critically important step is installing drivers for your specific device. Without the correct drivers, the computer will not be able to recognize the smartphone in debug mode. For devices from popular brands, such as Samsung, Xiaomi or Google Pixel, drivers are often installed automatically through Windows Device Manager or through proprietary utilities like Samsung Smart Switch. Otherwise, you may need to manually search and install universal Google USB Drivers.
⚠️ Attention: Using unofficial driver assemblies or utilities to unlock the bootloader may lead to the installation of malware. Download tools only from trusted resources or official websites of manufacturers.
After installing the drivers, check their operation by connecting the smartphone to the PC with a cable. Open Device Manager and make sure there are no unknown devices with exclamation marks in the list. If the device is displayed correctly, you can proceed to setting up the smartphone itself. Do not forget that the quality of the USB cable plays an important role: use the original cable or a certified analogue for a stable connection.
Activating developer mode and USB debugging
To gain access to system commands, you must activate the hidden menu on your device. Go to your smartphone settings and find the “About phone” or “About device” section. In this section, locate the “Build Number” item. You will need to click on this item seven times in a row quickly. The system will notify you that you have become a developer, and a new section will appear in the main settings menu - “For Developers.”
In the menu that opens, find the “USB Debugging” switch and activate it. When you connect your smartphone to your computer for the first time, a request will appear on the device screen to allow debugging from this computer. Be sure to check the “Always allow from this computer” checkbox and click “OK.” Without confirming this action, the terminal on the PC will not be able to send commands to the device.
☑️ The smartphone is ready to connect
Some manufacturers, such as Xiaomi or Huawei, may require additional actions, for example, enabling permission to install via USB or linking a developer account. In such cases, follow the on-screen prompts on your specific device. If the “USB Debugging” item is inactive or turns off immediately, check whether the “Charge Only” mode is enabled in the USB connection settings.
Diagnostics of connection and working with the terminal
After all the preparatory steps, you need to make sure that the computer sees the smartphone. Open Command Prompt (CMD) or PowerShell in the ADB Utilities folder. Enter the command adb devices and press Enter. If everything is configured correctly, the list will display the serial number of your device with status device. Status unauthorized means that you have not confirmed access on the phone screen, and the absence of a device in the list indicates problems with drivers or cables.
For convenient work with the command line, it is recommended to use PowerShell, as it supports more flexible syntax and autocompletion. Navigate to your tools directory by holding down the Shift key and right-clicking, then select "Open PowerShell window here." This will save you from having to manually write long paths to executable files.
If the adb devices command does not see the device, try changing the USB port on the motherboard (use the ports on the back of the system unit) or update the driver through the device manager by selecting "Universal ADB Driver".
After making sure the connection, you can get a list of all installed packages. Enter the command adb shell pm list packages. The output will be huge, so use a filter to find a specific app. For example, the command adb shell pm list packages | findstr google will only show packages containing the word "google". This greatly simplifies navigation through system components before deleting them.
Identification of packages and analysis of system garbage
The most difficult step is to determine which package corresponds to an unnecessary application. The names on the system are often different from the names you see on your desktop. For example, the Weather application may have an internal name com.miui.weather2 or com.google.android.apps.weather. For accurate identification, you can use third-party applications on the smartphone itself, such as App Inspector or Package Name Viewerthat show the real name of the package when you click on the icon.
There are several categories of packages that need to be handled with care. System services responsible for telephone communications, Bluetooth, Wi-Fi and sensor operation should absolutely not be touched. Removing components such as com.android.phone or com.android.systemuiwill lead to a bricked device or an endless reboot. Delete only what you are completely sure of its purpose.
| Application type | Example package name | Deletion security | Consequences |
|---|---|---|---|
| Third-party store | com.miui.mis |
High | It is impossible to update applications through this store |
| Default browser | com.android.chrome |
Medium | You need to install an alternative browser |
| System launcher | com.google.android.apps.nexuslauncher |
Low | The system may freeze on a black screen |
| Google Play Services | com.google.android.gms |
Critical | Almost all applications will stop working |
⚠️ Attention: Shell interfaces MIUI, OneUI, ColorOS is constantly changing. The names of the packages may differ even within the same smartphone model after a firmware update. Always check the package name before deleting.
The process of deleting and deactivating applications
When the list of unnecessary applications has been generated, you can begin deleting them. There are two main approaches: complete uninstall cleanup and user-directed deactivation. It is recommended to start with deactivation, as this is a reversible process. The deactivation command is as follows: adb shell pm disable-user --user 0 . After its execution, the application will disappear from the menu and stop consuming resources, but will remain in memory.
If you are sure that the application will never be needed, you can use the complete removal command: adb shell pm uninstall -k --user 0 . The flag -k preserves the application's data and cache in case you want to restore it later, although without reinstall it may not work for system components. For different versions of Android, the syntax may differ slightly, so carefully monitor the terminal response.
Run commands one at a time, checking the result after each. If the terminal displays the message Success, the operation was successful. If you see an error Failure [DELETE_FAILED_INTERNAL_ERROR], you may be trying to remove a critical component that the system protects from being removed even with ADB rights. In this case, it is better to leave the package alone.
Restoring deleted components and solving problems
Even experienced users make mistakes. If, after removing a package, your smartphone starts to become unstable, do not panic. Most system changes made through ADB without root access can be rolled back. To restore a deactivated application, use the command: adb shell cmd package install-existing . This instruction forces the system to register the package as installed again.
In case of complete uninstall, recovery is only possible if you have the installation APK file of this application. You can download it from a reliable source, put it in the folder with ADB utilities and install it with the command adb install . However, if a critical system component was deleted, recovery via ADB may not work, and the only solution will be a full reset to factory settings (Hard Reset).
What to do if the phone goes into bootloop?
If the device reboots endlessly, try entering Recovery mode (usually the power button + volume up). Execute wipe cache partition. If that doesn't help, just do a full data reset (Factory Reset), which will delete all user data, but return the system to working condition.
⚠️ Attention: Resetting to factory settings will delete all your photos, contacts and messages. Regularly back up important data before experimenting with system files.
Alternative tools and automation
Manually entering commands can seem cumbersome, especially if you need to uninstall dozens of applications. To simplify the process, there are graphical shells over ADB, such as Universal Android Debloater or Xiaomi ADB/Fastboot Tools. These apps automatically scan your device, determine the model, and offer a list of packages with recommendations: “Safe,” “Not Recommended,” or “Dangerous.” Using such utilities reduces the risk of accidentally deleting vital services.
However, automatic tools are not a panacea. The databases of such apps may become outdated, and what was safe for one firmware version may become critical for another. Always double-check your app selection before clicking the Uninstall button. The manual method through the console gives complete control and understanding of what exactly is happening with your system.
Graphical shell utilities significantly speed up the process, but blindly trusting their recommendations without checking the package name can lead to system failure. Use them as an assistant, not as the only solution.
Remember that system optimization is a balance between cleanliness and functionality. By removing unnecessary things, you free up resources, but you lose the ability to quickly return to the standard state. A balanced approach and preliminary study of the documentation for your device is the key to successful modification.
Frequently asked questions (FAQ)
Are root access needed to remove system applications via a PC?
No, to remove or deactivate applications via ADB, root access is not required. Commands are executed as the current user (user 0), which is sufficient to manage most pre-installed packages. Root is only necessary to remove deeply integrated system components that are protected at the kernel level.
Is it possible to remove Google Play Services through this method?
Technically, this is possible using the uninstall command, but this is highly not recommended. Removing Google Play Services will break Gmail, YouTube, Maps, and most third-party apps that depend on these libraries. The device may become practically unusable without flashing it.
What to do if the computer does not see the phone in debugging mode?
Check the USB cable (try a different one), install the latest drivers for your smartphone model and make sure that you have confirmed permission for debugging on the phone screen. Also try disabling your antivirus or firewall while connecting, as they may block the ADB connection.
Will deleted applications return after a system update?
Yes, when updating the firmware over the air (OTA), the system often restores its original state, including all deleted system applications. You will have to repeat the cleaning procedure after each major Android update.
Is it safe to use Universal Android Debloater?
The app is considered safe and open, but there is always a risk. It uses the same ADB commands as the manual method. Errors may occur due to incompatibility of the app's database with your specific firmware version. Always make a backup copy before use.