Skip to content

Command Examples Guide

DP-Hridayan edited this page Nov 17, 2026 · 1 revision

Command Examples Catalog Guide

The Command Examples catalog in aShell You provides a curated, categorized library of essential ADB commands alongside custom user-defined scripts. Users can browse system management operations, search and filter by function or category, bookmark frequently executed commands, and launch or copy them directly into the shell console.


Interface Overview

Command Examples Catalog
Command Catalog
Add Custom Command
Add Custom Command

Core Capabilities

  • Curated Command Library: Built-in commands spanning battery management, display density adjustments, package management, system status inspection, and permission toggling.
  • Category Filter Chips: Instant filtering across functional tags including Battery, Packages, Display, System, Network, and Audio.
  • Search and Keyword Matching: Real-time filtering across command text and descriptive explanations.
  • Bookmarks and Pinning: Single-tap bookmarking to prioritize essential commands at the top of the catalog.
  • Direct Execution: One-click execution that delivers the command string directly into the active shell session without manual clipboard operations.
  • Custom Command Creation: Full support for adding personalized commands with custom labels, descriptions, and syntax parameters.

Predefined Command Categories


1. Battery Management

Commands designed to inspect battery health, query charging states, and simulate battery capacity or discharge events during diagnostic testing.

Command Description
dumpsys battery Dumps current battery status including charge level, temperature, and health.
dumpsys battery set level <0-100> Simulates a specific battery percentage level for UI testing.
dumpsys battery unplug Forces the target device to simulate AC/USB disconnection.
dumpsys battery reset Restores real battery hardware readings.

2. Package Management

Comprehensive package operations for inspecting third-party apps, disabling system bloatware, and managing installations.

Command Description
pm list packages -3 Lists all third-party (user-installed) package identifiers.
pm list packages -d Lists all disabled package identifiers.
pm disable-user --user 0 <pkg> Disables a system or third-party package for the primary user.
pm enable <pkg> Re-enables a previously disabled package.
pm clear <pkg> Clears app data and cache for the specified package.

3. Display and UI Tweaks

Display geometry, density scaling, and visual tweaks executed on the fly.

Command Description
wm density <dpi> Adjusts display density (DPI) override.
wm density reset Restores default display density.
wm size <width>x<height> Overrides physical screen resolution.
wm size reset Restores default screen resolution.

4. System and UI Controls

Direct system-level triggers for quick diagnostic automation.

Command Description
cmd statusbar expand-notifications Expands the notification shade remotely.
cmd statusbar collapse Collapses any expanded notification shade or quick settings panel.
settings put global window_animation_scale <val> Sets window animation speed multiplier (e.g. 0.5 or 0.0).
reboot Requests an immediate system reboot.

Managing Custom Commands


Adding a Command

  1. Open the Commands section from the bottom navigation or main menu.
  2. Tap the floating + button in the lower right corner.
  3. In the bottom sheet:
    • Command: Enter the exact shell command string (e.g., cmd statusbar expand-notifications).
    • Description: Add a clear explanation of what the command achieves.
    • Label: Assign category labels separated by commas (e.g., System, Notifications).
  4. Tap Add to persist the entry.

Editing and Bookmarking

  • Bookmark: Tap the bookmark icon on any command card to pin it. Bookmarked commands are easily surfaced using the filter chips.
  • Copy: Tap the Copy button on any card to place the command string onto the system clipboard.
  • Run: Tap the Run button to immediately switch to the active shell tab and trigger execution.

Troubleshooting

Symptom Probable Cause Recommended Resolution
Command execution fails with Permission denied Command requires elevated or root privileges Ensure the shell connection is running in root mode, or use appropriate user-scoped commands (e.g. pm disable-user --user 0).
Custom command disappears after app restart Database cache issue Verify storage permissions and ensure backup settings are properly synchronized.
Cannot load predefined commands Repository catalog not initialized Tap the top menu and select Load Predefined Commands to refresh the built-in catalog.

Clone this wiki locally