Smartphone owners are often faced with a situation where the internal memory of the device is filled not with personal files, but with pre-installed software. Manufacturers and telecom operators often install many utilities that the user will never use, but which continue to run in the background. The standard Android settings menu usually does not allow you to uninstall such apps, offering only a disable option, which does not free up space on the system partition.
Fortunately, there is an effective method to free up space and improve performance without having to obtain root accessthat preserves the device warranty. Using a computer and the official debugging tool Android Debug Bridge (ADB), you can forcefully remove system packages. This process requires care, since removing critical components can lead to system inoperability, but with the right approach the risk is minimal.
This technique works on the vast majority of devices running Android, from older versions to the latest releases. You don't need to unlock the bootloader or install a custom recovery. Just enable USB debugging mode and run a few commands in the terminal. Let's look at this process in detail, starting with preparing the equipment.
Preparing the working environment and drivers
The first step is to install the necessary drivers for your smartphone on your personal computer. Without correctly installed drivers, the system will not be able to recognize the connected device in debug mode. For owners Samsung it is recommended to install the official utility Smart Switch or separate USB drivers from the manufacturer's website. Users of Xiaomi, OnePlus and other brands often have enough universal Google drivers, which can be installed automatically upon connection.
The next stage is loading the platform Platform-Tools. This is an official set of tools from Google containing executable files adb and fastboot. They should be downloaded exclusively from the official Android developer website to avoid malware. The archive must be unpacked into a convenient directory, for example, the root of the disk C:\platform-toolsso that the path to the files does not contain Cyrillic characters, which can cause errors in the command line.
โ ๏ธ Attention: Using third-party ADB assemblies from unknown forums may lead to data leakage or the installation of hidden miners. Always check the digital signature of executable files.
After unpacking the folder, you need to activate developer mode on the smartphone itself. To do this, go to Settings โ About phone and find the item Build number. Click on it seven times in a row until a notification appears that you have become a developer. Then in the menu that appears For developers activate the switch USB debugging.
โ๏ธ Ready to work
Establishing a connection and authorizing the device
Connect your smartphone to the computer using an original or high-quality cable. Using cheap cables that only support charging is a common cause of connection failures. Open a command prompt (Windows) or terminal (macOS/Linux) in the ADB tools folder. Enter the connection test command:
adb devices
If you see a list of connected devices with serial number and status device, then the connection has been established successfully. Status unauthorized means that a window asking for debugging permission has appeared on the phone screen. Unlock your smartphone screen and press Always allow from this computer, then confirm the action. Repeat the command adb devices to check.
Sometimes the system may not see the device due to a driver conflict or USB mode settings. Make sure that the file transfer mode (MTP) is selected in the phone's notification shade, although charging mode is often suitable for ADB. If the list of devices is empty, try changing the USB port on the motherboard, preferably using USB 2.0 ports, which are often more stable for debugging than modern USB 3.0/3.1.
โ ๏ธ Warning: Never connect your smartphone to other people's or public computers with USB debugging enabled. This could give attackers full access to your data.
Successful authorization is a critical point in the process. Without it, any subsequent commands will return a missing device error. If the phone keeps reconnecting or the status changes to offline, the problem may be with the cable or power supply causing interference.
If the authorization window does not appear, try disabling and re-enabling the "USB Debugging" option in the developer settings without unplugging the cable.
Searching for package names for deleting
Before deleting anything, you need to find out the exact package name of the system application. In Android, each application is identified by a unique string code, for example com.android.chrome or com.samsung.android.bixby.agent. The command to list all installed packages is as follows:
adb shell pm list packages
The output can contain thousands of lines, so it can be difficult to navigate. It is recommended to use keyword filtering. For example, to find all applications related to Facebook, enter:
adb shell pm list packages | findstr facebook
For macOS and Linux users, the search syntax will be different: grep instead of findstr. The resulting list should be analyzed. Do not remove packages whose purpose you do not know. There are specialized online databases and helper applications that describe the functions of system packages for various models Samsung, Xiaomi and Pixel.
| Application type | Example package name | Recommendation |
|---|---|---|
| Browsers | com.android.chrome | Safe if there is an alternative |
| Cards | com.google.android.apps.maps | Safe |
| System UI | com.android.systemui | Critical (do not delete) |
| Phone | com.android.dialer | Critical (do not delete) |
| Google Services | com.google.android.gms | Danger (will disrupt operation) |
Particular caution should be exercised with packages containing the words system, framework, provider or servicein the name. Removing such components often leads to bootloop (cyclical reboot) or loss of connection.
The process of uninstalling system components
When the package name is determined, you can proceed with the uninstallation. The command to uninstall an application for the current user (without completely erasing it from the system partition) looks like this:
adb shell pm uninstall -k --user 0 package_name
Flag --user 0 indicates the main user of the device. The option -k saves the application data and cache in case you want to restore it later, although this does not always work for system applications. After entering the command, you should see a message Success. This means that the application has been removed from your profile and is no longer visible in the menu, running in the background, or consuming resources.
It is important to understand the difference between a complete removal and a user removal. This command does not erase the APK file from the system partition /system, it only hides it for your account. This makes the method reversible and safe. If, after deleting, you decide to return the application, it can be restored through a factory reset or a special ADB command.
You can automate the process by creating a text file with a list of commands for mass deletion. This is especially convenient when setting up a new device, when you need to remove a dozen unnecessary apps. Just write the commands in notepad and copy them line by line into the terminal.
โ ๏ธ Attention: Interfaces and package names may differ depending on the firmware version and smartphone model. What is safe for OnePlus 9may be critical for Redmi Note 10. Always check the specific package name.
What is the com.google.android.packageinstaller package?
This is a system component responsible for installing new applications. Removing it will make it impossible to install apps from APK files or stores, except through ADB. Restoration will require a factory reset.
Restoring deleted applications
Since we did not physically erase the files from the partition /system, restoring deleted applications is possible without flashing the phone. To do this, use the command cmd package install-existing. The syntax is as follows:
adb shell cmd package install-existing package_name
This command returns the application to the list of installed apps for the current user. It will appear in the application menu and all related services will resume working. This is the main advantage of the method over using root access and completely deleting files, which often requires re-flashing the device in case of an error.
If you deleted a critical component and the phone went into reboot, but cannot boot to the desktop, you may need to enter Recovery mode. However, since the user data was not erased by the uninstall command, in most cases the system will still boot, just without the component removed. If the framework is removed, the situation is more complicated.
Always keep a list of removed packages. A simple text file on your computer with the names of deleted applications will save you in a situation where you need to quickly return the functionality of the device. Chaotic deletion without recording leads to the user forgetting what exactly was deleted and cannot understand the cause of the errors that occurred.
The ADB deletion method for user 0 is reversible. You can always restore the application with the install-existing command if deletion caused problems.
Alternative tools and automation
Manually entering commands may seem difficult for an untrained user. There is a graphical shell called Universal Android Debloater. It is an open source project that provides a user-friendly interface for managing packages. The app automatically detects the connected device, shows a list of installed applications and allows you to remove them with a mouse click.
Using such utilities reduces the risk of typos when entering package names. In addition, they often contain built-in safe lists, which indicate which packages can be safely removed and which ones should not be touched. However, even when using GUI tools, the responsibility for the functionality of the system lies with the user.
Some manufacturers, such as Xiaomi, have additional restrictions. To remove certain system applications, you may need not only USB debugging, but also an unlocked bootloader, although a basic set of bloatware is usually available for removal using the standard ADB method. Owners Samsung should be careful with Knox services, deleting which may permanently block the use of the protected folder.
Frequently asked questions
Is it safe to delete Google Play Services?
No, this is extremely dangerous. Google Play Services (com.google.android.gms) ensures push notifications, account synchronization, geolocation and operation of most third-party applications. Removing it will result in the phone not working as a smart device.
Do I need to obtain root access for this method?
Absolutely not. The command pm uninstall --user 0 works with standard user rights. Obtaining root access is not required and is not even recommended if your goal is simply to clean the system of junk, as this makes using banking applications more difficult.
Will this increase battery life?
Yes, removing background processes that you do not use (for example, news aggregator services or manufacturer analytics) will reduce the load on the processor and reduce battery drain in standby mode.
What to do if after deletion the phone does not turn on?
Try to boot into safe mode (usually by holding the volume down button when turning it on). If this does not help, you will need to reset to factory settings via the Recovery menu. All your personal data will be deleted, so make backup copies before experimenting.
Is it possible to delete Android system updates?
It is not recommended to delete update packages (ota). The system may start cyclically trying to download the update again, wasting bandwidth, or stop receiving important security patches. It is better to simply disable auto-update in the settings.