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

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

30 November 2024 Stephan Petzl Leave a comment Tech-Help

Uninstalling an application from your Android device via ADB (Android Debug Bridge) can be straightforward if you know the package name. However, what if you’re unsure of the package name? This guide will walk you through the process of identifying and uninstalling an app using ADB without knowing its package name initially.

Step-by-Step Guide

1. Access Your Device via ADB Shell

First, ensure that your device is connected and recognized by your computer. Open your terminal or command prompt and enter the following command to access the ADB shell:

adb shell

2. Identify the Package Name

Once inside the ADB shell, you can list all installed packages on your device. Use the following command to filter for the application name you’re looking for:

pm list packages | grep "your app name/something related to your app name"

This command will return the package name associated with the app name you provided.

3. Uninstall the Application

After identifying the package name, you can proceed to uninstall the application. Use the following command to remove the app from your device:

adb uninstall com.example.yourapp

Alternatively, you can use:

pm uninstall com.example.yourapp

Additional Resources

If you’re interested in more advanced techniques and configurations, consider exploring our documentation on Advanced Testing Techniques and Advanced Configuration.

Enhancing Your Testing Workflow with Repeato

For those involved in app testing, our product Repeato can significantly streamline your process. As a no-code test automation tool for iOS and Android, Repeato allows you to create, run, and maintain automated tests efficiently. By leveraging computer vision and AI, it facilitates the execution of ADB commands, ensuring your testing is both comprehensive and efficient. This makes it an excellent companion for managing tasks such as app uninstallation and other ADB-related operations.

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