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 deviceam start -n <package/activity>Start a specific activity or applicationsettings get <namespace> <key>Get system setting valueslogcatView system logs and debugging informationtopShow running processes and resource usagedfDisplay disk usage and storage informationgetpropGet system properties and configurationsvc wifi enable/disableControl Wi-Fi connectivityPackage Management Commands
Package Installation
pm install <apk-path>Install APK file
Package Removal
pm uninstall <package-name>Remove app
Package Information
pm list packages -fList with file paths
Package Permissions
pm list permissionsShow 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 googleOpen URL in browser:
adb shell am start -a android.intent.action.VIEW -d https://www.android.comCheck Wi-Fi status:
adb shell settings get global wifi_onGet device model:
adb shell getprop ro.product.modelLearn More
Explore the official Android command-line tools documentation for advanced usage.
Android Command-Line Tools