adb list all activities

ADB List All Activities: Complete Command Guide

By Andrew Jones
AD

Mastering the Android debug bridge opens powerful ways to inspect and control apps on devices, and the command to adb list all activities reveals the entry points developers and power users rely on. Understanding how this query works helps you verify launcher behavior, debug intent filters, and see exactly which screens an app can expose to the system.

When you run the appropriate adb shell command, the tool communicates with the package manager service to enumerate registered activity components, translating complex manifest declarations into a readable list. This approach is invaluable for reverse engineers, QA engineers, and anyone who needs to confirm that exported activities are correctly configured and not accidentally exposed.

How the Command Works Under the Hood

The core mechanism relies on querying the package manager with an intent that matches all possible activities, which requires combining standard shell invocation with the right intent flags. You are essentially asking the system to resolve every activity that can respond to a broad category, and the framework returns the full set of registered components.

AD
ADHD Homeschool Challenges | 50 ADHD-Friendly Summer Activities for Boys ☀️
ADHD Homeschool Challenges | 50 ADHD-Friendly Summer Activities for Boys ☀️
the worksheet for an activity to help students learn how to read
the worksheet for an activity to help students learn how to read
180 Common Adverbs List and PDF Worksheet For Students and Kids - WorksheetsHere.com
180 Common Adverbs List and PDF Worksheet For Students and Kids - WorksheetsHere.com

Behind the scenes, the Android framework filters results based on export attributes, permissions, and task affinities, so the output you see represents the effective set of activities available to external callers. This makes the method both a documentation tool and a security check, because you can immediately spot overly permissive configurations.

Using the Standard ADB Shell Command

The most direct way to adb list all activities is to run an adb shell command that pipes the package manager output through a filtering tool like grep, yielding a clean line-by-line display of component names. This technique works across most Android versions, though exact package names may differ between devices and builds.

5 Fun Activities for Teaching Adverbs in the Primary Grades
5 Fun Activities for Teaching Adverbs in the Primary Grades
August Bucket List: End of Summer Fun Activities
August Bucket List: End of Summer Fun Activities
Activity List
Activity List

By combining dumpsys with targeted text processing, you can extract only the activities belonging to a specific package, reducing noise and focusing on the app you are investigating. The result is a precise inventory that includes both fully qualified class names and any custom labels defined in the manifest.

Interpreting Component Names and Intent Filters

Each line you see in the output represents an activity component, structured as a package name followed by a slash and the activity class, which directly maps to a class defined in the app source code. This explicit naming makes it straightforward to correlate activities with their corresponding Java or Kotlin files during analysis.

AD

Pay attention to the intent filters associated with each activity, because those filters determine whether an activity is reachable from outside the app through implicit intents. The ability to adb list all activities and examine these filters helps you assess potential exposure and unintended entry points into the app.

the activity page for kids and adults'favorite list
the activity page for kids and adults'favorite list
Outdoor Activities Bucket List Challenge
Outdoor Activities Bucket List Challenge
an activity list with words and pictures to help kids learn how to use the game
an activity list with words and pictures to help kids learn how to use the game
▬▭
▬▭
the aba art activities master list is shown in two separate sections, one with an image of
the aba art activities master list is shown in two separate sections, one with an image of
the screen free activities list for kids to learn how to play with their hands and feet
the screen free activities list for kids to learn how to play with their hands and feet

Practical Use Cases and Workflow Examples

Security researchers often start with this command when evaluating third-party applications, looking for exported activities that could be abused for privilege escalation or data leakage. The simplicity of the command belies its effectiveness in surfacing configuration issues early in the review process.

Developers also rely on the same technique to verify their own builds, ensuring that only intended screens are discoverable and that deep linking configurations resolve to the correct activity. Seeing the complete list in the terminal provides immediate feedback during testing and reduces guesswork when debugging navigation problems.

AD

Automating Checks in CI Pipelines

You can integrate the logic behind adb list all activities into automated validation scripts, where each build is scanned for risky activity exports without manual intervention. By defining a baseline of expected components, any deviation can trigger alerts, helping teams maintain a consistent security posture across multiple applications.

Outdoor activities, bucket list
Outdoor activities, bucket list
Summer Bingo Bucket List for Kids & Families - Fun Printable Activity Game | Instant Download PDF
Summer Bingo Bucket List for Kids & Families - Fun Printable Activity Game | Instant Download PDF
the ultimate summer bucket list for kids
the ultimate summer bucket list for kids
the summer bucket list is displayed on a table
the summer bucket list is displayed on a table
I'm Bored Activity List for Kids | Printable Boredom Buster Chart | Screen-Free Activities for Kids | Independent Play Ideas PDF
I'm Bored Activity List for Kids | Printable Boredom Buster Chart | Screen-Free Activities for Kids | Independent Play Ideas PDF
Book Rest, Productive Things To Do, Personal Development Plan, Old Makeup, Creating A Vision Board, Bullet Journal Design Ideas, Me Time, Going To The Gym, How To Start A Blog
Book Rest, Productive Things To Do, Personal Development Plan, Old Makeup, Creating A Vision Board, Bullet Journal Design Ideas, Me Time, Going To The Gym, How To Start A Blog
a poster with the words 100 things to do on it and pictures of beach items
a poster with the words 100 things to do on it and pictures of beach items
How To Make A Laurel Wreath Fast - For Stay At Home Moms -
How To Make A Laurel Wreath Fast - For Stay At Home Moms -
a piece of paper with writing on it that says things to do in the summer
a piece of paper with writing on it that says things to do in the summer
a table with the words and numbers for different things to do in front of it
a table with the words and numbers for different things to do in front of it
Adventure Bucket List | Summer Bucket List | Homeschool Adventure List | Summer School Adventures
Adventure Bucket List | Summer Bucket List | Homeschool Adventure List | Summer School Adventures
the bucket list for students to use in their writing and reading skills, with an image of
the bucket list for students to use in their writing and reading skills, with an image of
Printable Analog Activities Checklist | Offline, No Phone To-do List
Printable Analog Activities Checklist | Offline, No Phone To-do List
a poster with the words 100 things to do in 2 days, and an image of a
a poster with the words 100 things to do in 2 days, and an image of a

Such automation works well when combined with other diagnostic commands, allowing you to capture a full snapshot of the app structure and compare it against previous versions. This approach turns a simple exploratory command into a repeatable quality gate that scales across teams and projects.

Troubleshooting Common Output Issues

Occasionally, you might see truncated output or empty results, which usually points to filtering by the shell user or missing permissions required to query certain system packages. Adjusting the adb invocation context, for example by using an elevated shell when available, can reveal the full picture.

AD

In other cases, dense formatting or unconventional manifest setups may make the raw text harder to parse, but piping the result through formatting utilities or simple Python scripts can normalize the layout. These small tweaks ensure that the activity list remains readable and actionable even on complex devices.

Limitations and Complementary Techniques

While adb list all activities is excellent for static analysis, it does not show dynamically registered receivers or services that appear only after certain runtime conditions are met. You should complement this method with runtime inspection tools to understand the full behavior of the app in a live environment.

Tools that monitor intents in real time, along with logging mechanisms, can reveal how activities are launched after the initial query, providing context that a static dump cannot. Combining static and dynamic information gives you a more complete picture of the app's navigation and interaction model.

Cross-Version Compatibility Considerations

Android versions influence the exact output format and the availability of certain components, especially when scoped storage or privacy restrictions change the visibility of app internals. Being aware of these differences helps you interpret results consistently across the wide range of devices in the ecosystem.

Testing your commands on multiple API levels during development ensures that scripts remain robust and that any version-specific quirks are handled gracefully. This attention to compatibility reduces surprises when the same command is executed on older or newer devices in the field.

Extending the Approach to Other Components

The same principles can be applied to list services, receivers, and providers, giving you a comprehensive view of the app's component landscape from a single workstation. By treating the AndroidManifest as a source of truth, you can systematically verify each category and confirm that nothing is unintentionally exposed.

Building reusable templates for these investigations saves time and encourages collaboration, because team members can share exact commands and expected patterns. Over time, this practice strengthens the overall security and reliability of the apps you work with.

Exploring these commands with curiosity and attention to detail turns routine diagnostics into a structured investigation, where every line of output informs better design and more resilient security decisions.

AD