Common Android Shell Commands
These commands provide powerful control over Android devices and are essential for development, debugging, and system administration.
pm list packages
List 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
logcat
View system logs and debugging information
top
Show running processes and resource usage
df
Display disk usage and storage information
getprop
Get system properties and configuration
svc wifi enable/disable
Control 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