Owners of modern smartphones are often faced with a situation where the deviceโ€™s memory is filled with unnecessary software that cannot be removed using standard means. Manufacturers and telecom operators pre-install many utilities that are difficult to get rid of without special knowledge. This leads to the fact that available memory is reduced, and processor resources are spent on background processes.

You can solve this problem using a computer and special debugging tools. The process does not require superuser rights if you use a certain method of interacting with the system. However, interfering with the work system partition always involves risks, so before starting the procedure you need to carefully study the theoretical part of the

In this guide we will look at a safe way to deactivate and remove firmware using the ADB protocol. You will learn how to identify unnecessary packets, what commands to enter into the console, and how to restore the device to functionality in case of an error. The main rule is do not delete something whose purpose you do not know.

Preparing the working environment and drivers

The first step is to install the correct software on your personal computer. You will need Android Debug Bridge (ADB), which is a general purpose command line tool. It allows you to communicate with the device and perform various actions, such as installing applications or debugging code.

You can download platform-tools from the official Google developers website. Unpack the archive into a convenient directory, for example, the root of the disk C:\platform-tools. After this, it is necessary to ensure communication between the PC and the smartphone. To do this, install universal USB driversif your operating system did not automatically detect the gadget.

โš ๏ธ Attention: Using drivers from third-party builders may lead to unstable operation of the port or the inability to recognize the device in debugging mode.

On the smartphone itself, you need to activate developer mode. Go to Settings โ†’ About phone and quickly click 7 times on the item Build number. After a message appears stating that you have become a developer, go to the new menu and turn on the slider USB debugging.

โ˜‘๏ธ Ready to connect

Done: 0 / 4

Establishing a connection and checking access

Connect your mobile device to your computer using a cable. When you connect for the first time, the phone screen will ask you to allow debugging from this computer. Be sure to check the box Always allow from this computer and confirm the action. This will create a unique RSA key that will be remembered by the system.

Open Command Prompt or PowerShell in the folder with the ADB utility. Enter the command adb devices. If everything is configured correctly, you will see a list of connected devices with their serial numbers and status device. Status unauthorized means that you have not confirmed the resolution on the smartphone screen.

Sometimes the connection may be unstable due to a bad cable or USB 3.0 port. Try switching the cord to a different connector or using a different wire. Make sure that the device screen does not go dark during operations, as some firmware breaks the connection when blocked.

๐Ÿ’ก

If the adb devices command does not show the device, try restarting the server with the adb kill-server command, and then adb start-server.

After a successful connection, you can begin to analyze the installed software. Before deleting, it is critical to create a backup copy of important data, since an error in choosing a package can lead to software failure or an endless reboot (bootloop).

Analysis of installed packages and search for name

Each application in the Android system has a unique identifier, called the package name. It usually looks like a domain name in reverse order, for example com.android.chrome. To remove a app, you need to know exactly this identifier, and not its display name.

To get a complete list of all installed apps, use the command:

adb shell pm list packages

This output will be huge and difficult to read. To find a specific app, use a keyword filter. For example, to search for all packages associated with YouTube, enter:

adb shell pm list packages | findstr youtube

On Linux or macOS operating systems, the command findstr . You can also download the entire list to a text file on your computer for easy study. The command grepis used instead of adb shell pm list packages > packages.txt will create such a file in the current directory.

Application type Example package Recommendation
System launcher com.google.android.apps.nexuslauncher Do not delete without replacements
Google Services com.google.android.gms Critical
Preinstalled store com.samsung.android.app.store Can be deleted
System phone com.android.dialer Leave
๐Ÿ“Š What is the brand of your smartphone?
Samsung
Xiaomi
Huawei
Google Pixel
Other

Removal methods: hiding versus complete uninstallation

There are two main approaches to getting rid of system software via ADB. The first is a complete deletion for the current user. The second is a softer method of shutdown or โ€œfreezingโ€. The choice of method depends on how confident you are that the application is unnecessary.

The command for complete uninstallation is as follows:

adb shell pm uninstall -k --user 0

Flag --user 0 indicates that the application is uninstalled only for the main user, but remains in the system partition. This means that when you reset the settings to factory settings (Factory Reset), the application will return to its place. This is the safest method, since it does not damage the integrity of the system image.

An alternative method is to use the command disable. It does not delete the APK file, but simply prevents the application from launching and appearing in the menu. This saves less space, but completely frees RAM from the process.

โš ๏ธ Attention: The flag -k in the delete command preserves the cache and app data. If you want to clean everything completely, remove this option, but be careful.

If you accidentally deleted an important system application, don't panic. Since the file physically remains on the partition /system, it can be restored with the command:

adb shell cmd package install-existing
What happens when you delete a system application?

When uninstalled via ADB with the user 0 flag, the application disappears from the interface and stops consuming resources. However, space on the /system partition is not freed up because the file remains there for recovery. Real freeing of space occurs only in the /data partition, where updates and application data were stored.

List of applications that are safe to remove

Not all pre-installed apps are equally useful or harmful. Some of them are part of the ecosystem and provide basic functions. Others are just marketing ballast. Below is a list of categories that can usually be deleted without fatal consequences.

  • ๐Ÿ—‘๏ธ Applications from a telecom operator: various service menus, games and ringtones from your cellular operator.
  • ๐Ÿ—‘๏ธ Duplicate browsers: if you use Chrome or Firefox, the stock browser can often be removed.
  • ๐Ÿ—‘๏ธ Social networks and Google services: YouTube, Google Play Movies, Google Music (if you donโ€™t use them).
  • ๐Ÿ—‘๏ธ Pre-installed antiviruses and cleaners: often they only slow down the system and show ads.

Particular care should be taken with components Google Play Services i System UI. Removing these packages will cause most third-party applications to not work and possibly cause the interface to crash. Also, do not touch the task manager and access services.

๐Ÿ’ก

It is safest to delete applications that have full-fledged analogues that you have already installed from the store.

Smartphone owners Xiaomi i Samsung can safely delete branded application stores if they plan use only Google Play. However, removing the system launcher requires first installing an alternative desktop, otherwise you will be left with a black screen after rebooting.

System recovery and problem solving

If after cleaning the smartphone begins to behave strangely, freezes or does not boot, you need to return the removed components. As mentioned earlier, the command install-existing allows you to restore packages deleted via ADB for user 0.

If the device goes into an endless reboot (bootloop), you will need to enter Recovery mode. There you need to reset the data (Wipe Data/Factory Reset). This will return the phone to its factory state, and all system applications will be restored automatically.

Sometimes the problem lies not in uninstallation, but in a version conflict. If you updated a system app and then tried to uninstall it, you may experience dependency errors. In such a situation, a complete flashing of the device through official utilities like Odin or Mi Flash.

โš ๏ธ helps. Attention: Resetting to factory settings will delete all your personal data, photos and contacts. Always have an up-to-date backup before taking drastic action.

To prevent future problems, keep a text file with a list of removed packages. This will allow you to quickly restore system functionality if some deleted application is suddenly needed for the operation of another service.

Frequently asked questions (FAQ)

Do you need root access to remove system applications via a PC?

No, to remove applications for the current user (user 0) superuser rights not required. Enabled USB debugging and installed ADB are enough. Root is only needed if you want to physically erase a file from the /system partition, which is not recommended for ordinary users.

Will space be freed up in the phone's memory after deleting?

Yes, space will be freed up in the user memory section where data and application updates were stored. However, the installation file itself (APK) remains in the hidden system partition, so you should not expect a significant increase in free memory (gigabytes), rather it is cleaning up garbage and background processes.

Is it possible to remove Google Play Services?

Technically this is possible, but it is categorically not recommended. This service is responsible for notifications, account synchronization, geolocation, and the operation of most third-party applications. Removing it will turn the smartphone into a โ€œbrickโ€ in terms of functionality.

What to do if the computer does not see the phone in debugging mode?

Check the cable (it should transfer data, not just charge), try a different USB port. Make sure Debugging permission is confirmed on your phone screen. You may also need to manually install drivers for your device model through the Windows Device Manager.