How to Delete an App Using ADB Without Knowing Its Package Name

How to Delete an App Using ADB Without Knowing Its Package Name

21 May 2024 Stephan Petzl Leave a comment Tech-Help

Uninstalling an application via ADB (Android Debug Bridge) can be straightforward if you know the package name. However, what if you don’t have this information? This guide will walk you through the steps to identify and uninstall an application using ADB without knowing its package name.

Step-by-Step Guide

1. Accessing the ADB Shell

First, you need to access the ADB shell. Connect your Android device to your computer and open a terminal or command prompt. Enter the following commands:

adb root

Then, enter the ADB shell:

adb shell

2. Finding the Package Name

To find the package name of the application you want to uninstall, use the following command within the ADB shell:

pm list packages | grep "your app name or a related keyword"

This command will list all packages that match the keyword you provided. Identify the correct package name from the list.

3. Uninstalling the Application

Once you have identified the package name, you can proceed to uninstall the application using one of the following commands:

adb uninstall package.name.of.the.app

Or:

pm uninstall package.name.of.the.app

Additional Resources

For a more detailed guide on managing ADB commands and troubleshooting, you might find these articles helpful:

Streamlining Your Testing Workflow

While ADB is a powerful tool for managing and debugging Android applications, it can sometimes be cumbersome and time-consuming. This is where Repeato can significantly enhance your workflow. Repeato is a no-code test automation tool for iOS and Android that allows you to create, run, and maintain automated tests efficiently.

Repeato leverages computer vision and AI to provide a seamless testing experience. It comes with ADB on board and allows you to execute ADB commands via script steps, ensuring that you can properly time and send ADB commands in sequence. This makes it particularly fast to edit and run tests, saving you valuable time and effort.

For more information on how Repeato can help streamline your testing process, visit our blog or check out our documentation.

Like this article? there’s more where that came from!