Как удалить приложение через adb
Перейти к содержимому

Как удалить приложение через adb

  • автор:

# Installing apps with ADB

Write the following command in your terminal to uninstall an app with a provided package name:

# Install all apk file in directory

# Install an app

Write the following command in your terminal:

Note that you have to pass a file that is on your computer and not on your device.

If you append -r at the end, then any existing conflicting apks will be overwritten. Otherwise, the command will quit with an error.

-g will immediately grant all runtime permissions.

-d allows version code downgrade (only appliable on debuggable packages).

How To Use Adb Uninstall App

Android Debug Bridge, also known as ADB, is a command-line tool that helps in communication with the device. ADB feature allows a user to install, uninstall, and debug apps on a device. ADB allows you to connect your smartphone to your PC or laptop over a USB or Bluetooth to transfer data or perform other functions. It also allows the user to perform commands on a mobile phone through a system. Being a part of the Android Software Development Kit, ADB comes with a set of codes that can be used to perform certain commands. One such command is ADB uninstall which allows users to remove system apps that are not needed.

How to Use ADB Uninstall App Step 1: Enable Developer Options on Android Device Step 2: Enable USB Debugging Step 3: Download Platform Tools Step 4: Find Package Name of App to Uninstall Step 5: Uninstall App

Before using ADB to remove apps on your device, you would first need to install it on your system. You can check our guide on How to Install ADB (Android Debug Bridge) on Windows 10 to do so. Once you have installed the tool, move forward with the steps given below that will help you uninstall a system or an app from your phone.

The following methods work for all Android phones including Samsung, Nokia, LG, Oppo, OnePlus, Vivo, Huawei, Realme, and others. Note: Before performing the methods, ensure that you do not use ADB uninstall command on system apps unknowingly. Some system apps are essential for the working of a device. Therefore, know the purpose of an app before uninstalling it.

Step 1: Enable Developer Options on Android Device#

ADB uninstall app feature can be used on your smartphone to remove pre-installed apps or system apps but before that, you would need to enable developer options on your Android device. The following steps will help you with turning on the option: Note: Smartphones don’t have the same Settings options. They vary from manufacturer to manufacturer so check the correct settings before changing any. The steps below were performed on Vivo 1920.

Tap on the Settings icon on your smartphone to open it.

Select System management in Settings.

Now, tap on About phone in it.

Next, tap about 7 times on the Software version option on your device.

Performing these steps will enable the developer options on your device which will further help you with uninstalling system apps.

Step 2: Enable USB Debugging#

Once the developer option is enabled for your phone, you can now proceed with enabling USB debugging to initiate ADB remove app action as it helps in allowing you to use Android Debug Bridge commands.

On your Android phone, open the Settings app.

Locate System management and tap on it to open.

Scroll down and tap on Developer options in it.

Toggle on USB debugging.

Also Read: How to Install ADB (Android Debug Bridge) on Windows 10

Step 3: Download Platform Tools#

The next method in the row for Windows users is to download platform tools on a PC. These platform tools like ADB and Fastboot perform functions like debugging Android Application Package files, developing, analyzing, and more. Visit Android Studio download page, then scroll down to Command line tools only section and download the tool for Windows. Note: This method is for Windows users only.

Step 4: Find Package Name of App to Uninstall#

Now that ADB platform tools are downloaded to your system, it is time to find the package name of the app for ADB uninstall app action. To do so, locate the ADB directory and follow the steps given below:

In the platform-tools location, hold the Shift key and right-click to open the Command window.

Now, in the Command prompt window, type adb shell command and press Enter key.

Next, execute pm list packages command and copy the package name of the app that you want to uninstall.

Use Package Name Viewer 2.0 to find the name of the app to be uninstalled.

Select the app in the Package Name Viewer 2.0 application to view the package name. Also Read: How to Change USB Settings on Android 6.0

Step 5: Uninstall App#

After performing all the methods given above, it is time to process ADB uninstall command in the Command prompt window. Note: Replace the package name in the command with the package name of the app found in Method 4.

  1. In the Command prompt window of adb shell, enter pm uninstall –k –user 0 package name.
  2. After the command is processed, a Success message can be seen at the end of the screen. As mentioned above, you can uninstall the app using the ADB platform tool but it is important to reconsider your actions because pre-installed apps can be of great importance to your device, and removing them can cause issues in the smartphone. You can reinstall the app with the help of the package name. To know more about APK files and download them from our guide How to Install APK Using ADB Commands.

Q1. Is using ADB safe? Ans. Yes, ADB is a very safe tool to use on an Android device. However, one must use ADB for making changes they are aware of or in case of uninstalling apps that are not required and are unimportant for the device. Q2. How can I check if ADB is working? Ans. You can check the working of ADB by connecting your mobile phone to the computer using a USB cable. Once the ADB devices command is run you can get the list of connected devices with the serial number, confirming that ADB is working. Q3. What functions can be operated using ADB? Ans. With the help of ADB, you can perform various functions like controlling your device remotely, file transfers, screen mirroring, etc. Q4. Can I reinstall apps using ADB? Ans. Yes, you can reinstall apps that were once deleted using ADB with the help of command, adb shellpm install –existing name of package in the Command prompt window of adb shell. Q5. Can I use apps other than ADB to uninstall applications? Ans. Yes, third-party apps like ADB AppControl and Fastboot Tools can be used to uninstall applications if you are having trouble doing the same with the ADB command shell window. Recommended:

How to Delete Indeed Account Permanently Fix Google Play Store Error Checking for Updates How to Bypass ADB Device Unauthorized Message Fix Unable to Mount Storage TWRP on Android

All in all, it is safe to say that ADB indeed is a life savior when it comes to uninstalling unwanted apps from an Android device. We hope that our guide helped you in doing so with ease with the support of five methods that collectively assist you in performing ADB uninstall app action on your smartphone. Let us know about your experience and share it in the comments section below. You can also leave your queries or valuable suggestions for us to read below.

Как удалить приложение на Android, если оно не удаляется

Все мы с вами любим операционную систему Android за ее открытость. Она позволяет нам устанавливать приложения из разных источников, к которым относятся далеко не только официальные магазины наподобие Google Play. Также в любой момент мы можем избавиться от любой программы для освобождения пространства во внутренней памяти. Вместе с тем существуют неудаляемые приложения. Но таковыми они кажутся только на первый взгляд, поскольку в действительности на Android можно избавиться буквально от всего. В рамках этого материала мы разберемся, как удалить неудаляемое приложение, но сначала определим, откуда вообще берутся такие программы.

Как удалить приложение на Android, если оно не удаляется. Некоторые приложения на смартфоне нельзя так просто взять и удалить. Фото.

Некоторые приложения на смартфоне нельзя так просто взять и удалить

Как удалить приложение с телефона

Вы наверняка и без меня прекрасно знаете, как удалить приложение с Андроида. Но некоторым все-таки напомню, что сделать это можно одним из трех способов:

  • задержать палец на иконке программы и нажать «Удалить»;
  • найти игру или прогу в разделе настроек «Приложения» и нажать соответствующую кнопку;
  • посетить страницу приложения в Google Play или в другом магазине, где доступна опция «Удалить».

Как удалить приложение с телефона. Все 3 способа помогают полностью удалять приложения, но не все. Фото.

Все 3 способа помогают полностью удалять приложения, но не все

Как правило, выполнение одного из указанных действий приводит к моментальному исчезновению приложения с телефона. Да, программа может оставить после себя папку или некоторые файлы, от которых удается избавиться при помощи специальных очистителей. Но это явно не та проблема, когда не удаляется приложение. Так в чем же тогда заключается подвох?

⚡ Подпишись на Androidinsider в Дзене, где мы публикуем эксклюзивные материалы

Почему не удаляются приложения

Порой, когда вы хотите избавиться от программы, при нажатии на ее иконку не появляется пункт «Удалить». Также его нет и в настройках, а при попытке удалить приложение через Google Play магазин предлагает лишь очистить обновления.

Почему не удаляются приложения. У некоторых программ по умолчанию можно только очистить данные или удалить обновления. Фото.

У некоторых программ по умолчанию можно только очистить данные или удалить обновления

Возможно, вам будет достаточно и этого, если хочется просто освободить немного места на внутреннем накопителе. Но почему же все-таки нет кнопки «Удалить», позволяющей раз и навсегда убрать программу с телефона?

�� Загляни в телеграм-канал Сундук Али-Бабы, где мы собрали лучшие товары с АлиЭкспресс

Дело в том, что на каждом мобильном устройстве есть системные приложения Андроид. К ним относится не только софт, без которого смартфон не может нормально функционировать, но и программы сервисов Google вроде того же браузера Chrome. Его удаление не приведет ни к каким последствиям, но операционная система запрещает от него избавляться только из-за того, что Android — это проект Google. Просто бизнес.

Как удалить системное приложение на Андроиде

Можно ли удалить системные приложения на Андроид? Да, но только в том случае, если есть уверенность, что программа не является ключевым компонентом ОС. При желании вы можете удалить приложение через ADB. Android Debug Bridge — официальный инструмент управления смартфоном через компьютер, более подробную информацию о котором вы получите, прочитав наш специальный материал.

Как только вы это сделаете, установите на смартфон приложение App Inspector. Оно поможет узнать, в какой папке хранится неудаляемая программа. Запустите App Inspector, по названию найдите интересующий софт и обратите внимание на пункт «Package Name».

Как удалить системное приложение на Андроиде. Запомните это значение или не закрывайте App Inspector, пока не удалите нужное приложение. Фото.

Запомните это значение или не закрывайте App Inspector, пока не удалите нужное приложение

❗ Поделись своим мнением или задай вопрос в нашем телеграм-чате

Далее, чтобы удалить встроенное приложение, действуйте по инструкции:

  1. Подключите смартфон к компьютеру через USB-кабель, предварительно активировав отладку по USB и скачав на ПК Android Debug Bridge.
  2. Запустите на компьютере командную строку (ее можно найти через поиск).
  3. Введите команду «adb shell» и нажмите клавишу «Enter».
  4. Если ADB распакован корректно, а на телефоне активированы все необходимые настройки, вы увидите сообщение «daemon started successfully».

Как удалить системное приложение на Андроиде. Видите то же самое? Значит, пока что вы делаете все правильно. Фото.

Видите то же самое? Значит, пока что вы делаете все правильно

Как удалить системное приложение на Андроиде. Аналогичным образом вы можете поступить со всеми приложениями, если уверены, что их удаление не нанесет ущерб смартфону. Фото.

Аналогичным образом вы можете поступить со всеми приложениями, если уверены, что их удаление не нанесет ущерб смартфону

Вот так без каких-либо последствий для смартфона вы удалите встроенное приложение. Чтобы убедиться в удачном выполнении операции, просто взгляните на главный экран, проверьте настройки устройства или посетите страницу программы в Google Play, где вместо кнопки «Удалить» появится опция «Установить», а это свидетельствует о полном удалении софта.

Как удалить системное приложение на Андроиде. Был Google Chrome, а теперь его нет. Фото.

Был Google Chrome, а теперь его нет

Какое приложение удаляет системные приложения

Удаление приложений через ADB — самый безопасный вариант, но далеко не самый простой. Если вы никогда не имели дело с Android Debug Bridge, то придется потратить 15-20 минут на знакомство с ним и еще некоторое время на подготовку смартфона. Хотите сделать все быстрее? Тогда установите на смартфон приложение Titanium Backup и выполните несколько шагов:

    на своем телефоне (например, через SuperSU).
  1. Запустите Titanium Backup.
  2. Тапните по нужной программе.
  3. Нажмите кнопку «Удалить».

Какое приложение удаляет системные приложения. Удаляйте приложение через Titanium Backup только в том случае, если знаете, как потом отозвать root-права. Фото.

Удаляйте приложение через Titanium Backup только в том случае, если знаете, как потом отозвать root-права

⚡ Подпишись на Androidinsider в Пульс Mail.ru, чтобы получать новости из мира Андроид первым

Несмотря на всю простоту этого метода, я не рекомендую к нему обращаться пользователям, которые не знакомы с root. Открытие рут-доступа может заблокировать для вас некоторые функции смартфона, будь то совершение банковских переводов или блокировка бесконтактной оплаты покупок. Поэтому лучше удалять системные приложения через ADB, что намного безопаснее.

How to uninstall an android app from command line on the device

I can uninstall an app on the device from my computer using adb uninstall <package_name> , but I’d like to do the same with a script on the actual device.

I’ve also tried running an android.intent.action.DELETE intent using am but it prompts the user for confirmation.

Given that the device is rooted, is it possible to run a command on the device to uninstall an app without requiring user action/confirmation ?

George Profenza's user avatar

9 Answers 9

Trying using the pm command:

The -k flag keeps the data and cache directories after the package is removed.

I haven’t tested this myself, but I don’t think this should show a warning message.

Frxstrem's user avatar

To forcefully uninstall the system user apps:

Raj Yadav's user avatar

adb shell pm uninstall *your.package.name*

Did the trick for me.

And if you want to re-install back package removed for a user (i.e. pm uninstall —user 0 ), without root:

This will locate .apk of the uninstalled package: pm dump <package name> and search for a line starting with path: to obtain path to the .apk (note that pm path <package> won’t work for an uninstalled app) and install it using pm install —user 0 (note that pm install without —user argument wont’ work).

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *