adb shell list apps

Android ADB Shell List Apps Command

By Rachel Davis
AD

Managing your Android device programmatically becomes significantly easier when you understand how to query and manage installed software through command line interfaces.

The adb shell list apps functionality is a fundamental technique that allows developers and power users to see every application installed on a connected device directly from a computer.

Understanding ADB and Its Capabilities

ADB, or Android Debug Bridge, serves as a versatile command line tool that facilitates communication with an Android device.

AD
ADB Shell Commands List - The Ultimate Collection (PDF)
ADB Shell Commands List - The Ultimate Collection (PDF)
read description
read description
ADB Tips for Appium: How to Locate Android Package and Activity Names Easily
ADB Tips for Appium: How to Locate Android Package and Activity Names Easily

It acts as a bridge between your development machine and the Android operating system, providing access to a wide range of internal functions.

Accessing the Android Shell

The shell is the command line interface on the Android device itself, where Linux commands are executed.

an image of the web page for all sites on iphone or ipad, with text added
an image of the web page for all sites on iphone or ipad, with text added
Android customization - improve battery life, use ADB logcat to find battery hogs
Android customization - improve battery life, use ADB logcat to find battery hogs
Privacy-related data such as 'applications installed on smartphones' is not protected at all
Privacy-related data such as 'applications installed on smartphones' is not protected at all

By using `adb shell`, you open a secure terminal session on the device, allowing you to interact with the system files and settings directly.

Querying the Package Manager

The package manager is an Android system component that keeps track of all applications installed on the device.

AD

When you run commands to query this manager, you are asking the system to report back detailed information about every package it records.

an image of a cell phone screen with many different apps on the screen and in the bottom right corner
an image of a cell phone screen with many different apps on the screen and in the bottom right corner
[List] Best Modded Apk Sites In 2020!
[List] Best Modded Apk Sites In 2020!
When I share files, I skip right past Quick Share and use this app instead
When I share files, I skip right past Quick Share and use this app instead
a list of words that are in different languages
a list of words that are in different languages
📌 Essential Medical Apps & Aspirin Guide – Must-Have for Health & Care
📌 Essential Medical Apps & Aspirin Guide – Must-Have for Health & Care
Fastboot Commands: All Hidden Commands List - GetWox
Fastboot Commands: All Hidden Commands List - GetWox

Executing the Command to List Packages

The most common way to initiate this process is by using the `pm list packages` command through the adb interface.

This command triggers the package manager to output a simple list of all package names currently recognized on the device.

AD

Filtering the Installed Applications

You can narrow down the results by filtering for user-installed apps or system applications specifically.

24 Free Al Mobile Apps to Transform Your Daily Life
24 Free Al Mobile Apps to Transform Your Daily Life
an iphone screen with the text essentials and icons on it, as well as several different
an iphone screen with the text essentials and icons on it, as well as several different
the iphone's icons are all different colors and sizes
the iphone's icons are all different colors and sizes
Apps to add to your phone
Apps to add to your phone
Aesthetic Pastel Version (50 Must-Have Apps for College Girls)
Aesthetic Pastel Version (50 Must-Have Apps for College Girls)
an iphone screen showing the settings and options for different devices, including texting on their screens
an iphone screen showing the settings and options for different devices, including texting on their screens
an adb and fastboot tool is plugged in to a laptop with the text,
an adb and fastboot tool is plugged in to a laptop with the text,
a white triangle on a blue background with the letter a in it's center
a white triangle on a blue background with the letter a in it's center
The 5 Best Organising Apps
The 5 Best Organising Apps
an iphone screen with various icons on it and the words creativity displayed in different languages
an iphone screen with various icons on it and the words creativity displayed in different languages
Google Play Store My Apps Section Is Now A Bit More Usable - SlashGear
Google Play Store My Apps Section Is Now A Bit More Usable - SlashGear
Best FREE Apps 2026 🔥 | Top Mobile Apps You Must Use
Best FREE Apps 2026 🔥 | Top Mobile Apps You Must Use

Adding flags like `-3` isolates third-party software, while `-s` focuses solely on system-level packages, providing a cleaner view.

Working with Disabled Applications

Standard lists often exclude applications that have been manually disabled by the user or the system.

AD

Including the `-d` flag ensures that these dormant packages appear in the output, giving you a complete inventory of every app slot.

Advanced Usage and Output Formats

While the basic list provides names, you might need more detailed information for complex scripting or analysis tasks.

Using the `dumpsys` command in conjunction with package data allows for a deeper inspection of permissions and configurations.

Extracting Detailed Package Information

For a specific app, you can retrieve details such as version code, data directory, and requested permissions.

Commands targeting a specific package name provide a snapshot of that application's current state and configuration details.

Parsing Output for Automation

Scripting languages like Python or Bash can parse the raw text output to build custom reports or monitoring tools.

Removing the `package:` prefix cleanly extracts just the names for use in other scripts or spreadsheet generation tasks.

Mastering these techniques transforms how you interact with the Android filesystem, making bulk operations and remote diagnostics significantly more efficient.

Exploring the full potential of your device through these command line methods opens the door to advanced automation and control workflows.

AD