Many owners of modern smartphones are faced with a situation where the device comes pre-installed with many built-in appsthat they never use. These apps, often called bloatware, take up valuable internal memory space and can slow down your system. Unfortunately, the standard Android interface often does not allow you to remove them in the usual way through the settings.

However, obtaining root access is a risky step that can lead to loss of warranty or disruption of banking applications. Luckily, there is a safe method to clean up your system using the ADB (Android Debug Bridge) toolkit. This approach allows you to deactivate or completely remove system packages without interfering with the system kernel.

In this article we will analyze in detail the process of connecting the device to the computer, setting up debugging and executing commands to clean the smartphone of unnecessary software. You will learn which applications can be deleted without risk to the system, and which ones should absolutely not be touched.

Preparing your smartphone and computer for work

The first step before starting any manipulations with system files is to enable a special mode in the settings of your device. You need to activate developer mode, which is hidden by default. To do this, go to the section Settings โ†’ About phone and find the item Build number.

Click on this item seven times in a row. After several clicks, the system will ask for your PIN code or pattern. Once you enter it correctly, a notification will appear indicating that you have become a developer. This action opens access to hidden device management functions.

Next, return to the main settings menu. A new item will appear at the very bottom of the list or in the System section. Go into it and find the switch For developers. Go into it and find the switch USB debugging. Activate it by confirming the system warning about possible risks.

โš ๏ธ Attention: Do not leave USB debugging enabled all the time when you are not using the phone. This may create a vulnerability for unauthorized data access when connecting to other people's charging stations in public places.

Now prepare your computer. You will need to download the official platform Platform Tools from the Android developers website. Unpack the archive into a convenient folder, for example, the root of drive C, so that the path to the files does not contain Cyrillic characters that can cause errors when entering commands.

Installing drivers and connecting the device

In order for the computer to correctly recognize your smartphone in debug mode, you need appropriate drivers. In most cases, the operating system Windows 10 or Windows 11 automatically finds and installs them when you first connect the cable. However, some brands such as Xiaomi or Huaweimay require manual installation.

Connect your smartphone to your PC using a quality USB cable. It is advisable to use the original cable, since cheap analogues often only support charging, but not data transfer. The phone screen will ask you to allow debugging from this computer.

  • ๐Ÿ“ฑ Be sure to click Allow and check the box "Always allow from this computer."
  • ๐Ÿ”Œ Make sure the cable is firmly inserted into the USB 3.0 or higher connector for stable transfer speed.
  • ๐Ÿ”‹ Make sure your phone's battery charge is at least 30% to avoid disconnecting in the process.

Open Command Prompt or PowerShell in the folder where you extracted ADB tools. 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 the resolution on the smartphone screen.

โ˜‘๏ธ Ready to remove applications

Done: 0 / 5

Search for system application identifiers

Before To remove something, you need to find out the exact Package Name of the unnecessary app. System applications often have complex names like com.android.vending, which are not obvious to the average user. You cannot guess them, since an error can lead to system inoperability.

The most reliable way to get a list of all installed packages is to enter the command into the ADB console:

adb shell pm list packages

This command will display a huge list of all apps. To find a specific application, use the filter. For example, if you want to remove Google services, enter: adb shell pm list packages | findstr google (for Windows) or adb shell pm list packages | grep google (for macOS/Linux).

For clarity, you can use third-party utilities on the phone itself, such as App Inspector or Package Name Viewer. They display the package name next to the application icon in the familiar interface. This greatly simplifies the identification task before entering uninstall commands.

Application type Example package name Uninstall security Impact on the system
Browser com.android.chrome High Absent (if there is an alternative)
Maps com.google.android.apps.maps High Absent
Google Services com.google.android.gms Critical Crash of most applications
Phone com.android.dialer Critical Inability to make calls
How to distinguish a system application from custom?

System packages are usually located in the /system/app or /system/priv-app section. Custom applications that you downloaded yourself are located in /data/app. Removing files from the system partition requires superuser rights, but the uninstall command via ADB works differently - it simply hides the application for the current user.

The uninstall process via the ADB command line

Once you have decided on the list of unnecessary apps and found out their exact package names, you can begin uninstalling. The command to uninstall an application for the current user is as follows:

adb shell pm uninstall -k --user 0

The key here -k means saving the data and cache of the application in case you want to restore it in the future. The flag --user 0 indicates that the deletion is performed for the main user of the device. This is the key point: the application physically remains on the system partition, but becomes invisible and inactive to you.

Run the command for each application in your list. If the operation was successful, the console will return a message Success. If you see an error Failure [DELETE_FAILED_INTERNAL_ERROR], this may mean that the application is critical to the operation of the shell or is protected from removal by the manufacturer even in this way.

โš ๏ธ Attention: Never remove packages associated with com.android.providers or com.google.android.gsfunless you are 100% sure of their purpose. This can lead to an endless reboot of the phone (bootloop).

For bulk removal, you can create a text file with a list of packages and write a simple script, but for one-time cleaning, manually entering commands is much safer. You control every step and can stop at the first sign of system instability.

๐Ÿ’ก

If you accidentally deleted an important application, don't panic. Since the data is not completely erased, you can return the app with the command: adb shell cmd package install-existing . This will restore the visibility of the application for user 0.

Restoring deleted applications and resetting settings

The main advantage of the ADB method over completely flashing the device is the reversibility of the changes. Since we did not erase the files from the system partition, but only disabled them for the current profile, it was quite easy to return everything as it was. This is especially true if, after cleaning, you notice strange behavior of the smartphone.

To restore a deleted package, use the command:

adb shell cmd package install-existing

Enter the name of the package that you previously deleted, and the system will instantly return the application icon to the desktop. All settings and data that were stored in the cache (thanks to the key -k) will also be restored.

As a last resort, if the phone starts to work incorrectly, perform a factory reset via the Recovery menu or standard Android settings. This action will return visibility to all system applications, since user 0's profile will be re-created.

๐Ÿ’ก

Removing via ADB does not free up space in the system ROM partition, but it clears user space and frees up RAM, since the processes of deleted applications are no longer launched.

Alternative methods and graphical utilities

Working with the command line may seem difficult for untrained users. Fortunately, enthusiasts have created graphical shells that automate the process of entering commands. One of the most popular is the app Universal Android Debloater.

This utility has a convenient interface, where all packages are divided into categories: safe for removal, controversial and critical. It automatically substitutes the necessary commands in the background when you click the โ€œUninstallโ€ button. This reduces the risk of typos in the package name to zero.

  • ๐Ÿ›ก๏ธ The app automatically creates a backup of the list of deleted applications.
  • ๐Ÿ“‹ It has a built-in search in the database of packages with a description of their functions.
  • ๐Ÿ”„ Allows you to restore all changes made through one button interface.

Despite the convenience of graphical interfaces, knowledge of manual commands remains an important skill. Utilities may not support new phone models or manufacturer-specific shells, while the basic ADB protocol is universal for any device based on Android version 5.0 and higher.

๐Ÿ“Š Which method of uninstalling applications do you prefer?
ADB Command Line
Graphical utilities (UAD)
Obtaining root access
I do not remove system software

app interfaces and menu item names may differ depending on the Android version and smartphone model. If you cannot find the function, check the official documentation of your device manufacturer.

Frequently asked questions (FAQ)

Is it safe to remove Google Play services?

No, it is highly not recommended. Without Google Play Services (GMS), the application store, maps, contact synchronization, and most banking applications and games that require a license will not work. Removing GMS will turn the smartphone into a brick for the average user.

Will space be freed up in the internal memory after removal?

The space in the user partition will be freed up insignificantly, since the application body itself remains in the system partition. The main advantage is the release of RAM (RAM) and a reduction in the load on the processor, since background services of remote apps stop running.

Is it possible to remove the standard browser and install another?

Yes, you can safely remove the standard browser (for example, Samsung Internet or MIUI Browser) if you already have an alternative installed, such as Chrome or Firefox. The system will automatically prompt you to select a new default browser when opening links.

What to do if the phone reboots after deletion?

If the device goes into a cyclic reboot, try booting into safe mode (usually holding down the power button) and restoring deleted packages via ADB. If this is not possible, you will need a complete data reset (Wipe Data) through the Recovery menu.

Do you need superuser rights to operate ADB?

No, to execute commands pm uninstall --user 0 root access is not required. This method works on any device unlocked by the bootloader with USB debugging enabled, which makes it the safest way of customization.