Android Commands

Essential shell and system commands for Android

Common Android Shell Commands

These commands provide powerful control over Android devices and are essential for development, debugging, and system administration.

pm list packagesList all installed packages on the device
am start -n <package/activity>Start a specific activity or application
settings get <namespace> <key>Get system setting values
logcatView system logs and debugging information
topShow running processes and resource usage
dfDisplay disk usage and storage information
getpropGet system properties and configuration
svc wifi enable/disableControl Wi-Fi connectivity

Package Management Commands

Package Installation

pm install <apk-path>

Install APK file

Package Removal

pm uninstall <package-name>

Remove app

Package Information

pm list packages -f

List with file paths

Package Permissions

pm list permissions

Show all permissions

Activity Management Commands

Start Activity

am start -a <action>

Start by intent action

Force Stop

am force-stop <package>

Force stop app

Broadcast Intent

am broadcast -a <action>

Send broadcast

Clear App Data

pm clear <package>

Clear app data

Usage Examples

List Google packages:

adb shell pm list packages | grep google

Open URL in browser:

adb shell am start -a android.intent.action.VIEW -d https://www.android.com

Check Wi-Fi status:

adb shell settings get global wifi_on

Get device model:

adb shell getprop ro.product.model

Learn More

Explore the official Android command-line tools documentation for advanced usage.

Android Command-Line Tools