ADB SHELL COMMANDS LIST
adb sideload- adb shell dumpsys iphonesubinfo
- adb shell settings
- adb shell wm
- adb shell dumpsys battery
- adb shell pm
- adb shell input keyevent
- adb shell input text
- adb shell input tap
- adb shell cat
- adb shell top
- adb shell ifconfig
- adb shell screenrecord
- adb shell screencap
- adb shell mount
- adb shell date
- adb shell netstat
- adb shell ps
- adb install
- adb uninstall
- adb root
- adb pull
- adb push
- adb shell am
- adb shell ping
adb sideload
adb sideload ota_file.zip
Updating Phones OTA Images manually via command.
Prior to this need to take phone to recovery mode (adb reboot recovery)
adb shell dumpsys iphonesubinfo
adb shell dumpsys iphonesubinfo
Get Android device IMEI (Only for Android 4.4 or lower, otherwise needs ROOT permission)
adb shell getprop
adb shell getprop
Get Android system properties info.
adb shell getprop ro.build.version.sdk
Get SDK API level.
adb shell getprop ro.build.version.security_patch
Get Android security patch version.
adb shell getprop ro.board.platform
Get Soc info.
adb shell getprop ro.build.version.release
Get Android version info.
adb shell getprop ro.vendor.product.model
Get Android device model.
adb shell getprop ro.product.manufacturer
Get Android device manufacturer.
adb shell getprop ro.serialno
Get ADB serial number.
adb shell getprop ro.oem_unlock_supported
Get OEM unlock status.
adb shell getprop ro.bootimage.build.fingerprint
Get Android device build fingerprint.
adb shell getprop ro.boot.wifimacaddr
Get WiFi MAC Address
adb shell settings
adb shell getprop
Get Android system properties info.
adb shell getprop ro.build.version.sdk
Get SDK API level.
adb shell getprop ro.build.version.security_patch
Get Android security patch version.
adb shell getprop ro.board.platform
Get Soc info.
adb shell getprop ro.build.version.release
Get Android version info.
adb shell getprop ro.vendor.product.model
Get Android device model.
adb shell getprop ro.product.manufacturer
Get Android device manufacturer.
adb shell getprop ro.serialno
Get ADB serial number.
adb shell getprop ro.oem_unlock_supported
Get OEM unlock status.
adb shell getprop ro.bootimage.build.fingerprint
Get Android device build fingerprint.
adb shell getprop ro.boot.wifimacaddr
Get WiFi MAC Address
adb shell settings list system
Android Settings provider (system namespace)
adb shell settings get system volume_system
Get current system volume level in Android.
adb shell settings get system notification_sound
Get current system notification sound in Android.
adb shell settings list secure
Android Settings provider (secure namespace)
adb shell settings get secure android_id
Find Android Device Identifier(Device Id)
adb shell settings get secure bluetooth_address
Find Bluetooth MAC address in android.
adb shell settings list global
Android Settings provider (global namespace)
adb shell settings get global mobile_data
Get current mobile data status in Android.
adb shell settings get global wifi_on
Get current WiFi status in Android.
adb shell pm
adb shell pm list packages
Get List of Installed Apps in Android.
adb shell pm list packages -s
System apps
adb shell pm list packages -3
3rd-Party apps
adb shell pm list packages
Keyword filtering
adb shell pm path
Get the APK path on the device's filesystem.
adb shell wm density
Get screen physical density in Android
adb shell wm size
Get screen physical size in Android
adb shell wm density
Get screen physical density in Android
adb shell wm size
Get screen physical size in Android
adb shell dumpsys battery
adb shell dumpsys battery
Get battery info in Android.
Current Battery Service state:
AC powered: false
USB powered: true
Wireless powered: false
Max charging current: 500000
Max charging voltage: 5000000
Charge counter: 3367082
status: 2
health: 2
present: true
level: 98
scale: 100
voltage: 4393
temperature: 325
technology: Li-ion
adb shell dumpsys battery
Get battery info in Android.
Current Battery Service state:
AC powered: false
USB powered: true
Wireless powered: false
Max charging current: 500000
Max charging voltage: 5000000
Charge counter: 3367082
status: 2
health: 2
present: true
level: 98
scale: 100
voltage: 4393
temperature: 325
technology: Li-ion
adb shell pm
adb shell pm list packages
Get List of Installed Apps in Android.
adb shell pm list packages -s
System apps
adb shell pm list packages -3
3rd-Party apps
adb shell pm list packages
Keyword filtering
adb shell pm path
Get the APK path on the device's filesystem.
adb shell pm list packages
Get List of Installed Apps in Android.
adb shell pm list packages -s
System apps
adb shell pm list packages -3
3rd-Party apps
adb shell pm list packages
Keyword filtering
adb shell pm path
Get the APK path on the device's filesystem.
adb shell input keyevent
adb shell input keyevent [--longpress]
Control Keypress events on Android
Android KeyEvent Constants
adb shell input keyevent 187
KEYCODE_APP_SWITCH
adb shell input keyevent 3
KEYCODE_HOME
adb shell input keyevent 84
KEYCODE_SEARCH
adb shell input keyevent 219
KEYCODE_ASSIST
adb shell input keyevent 231
Voice Assist key
adb shell input keyevent 5
KEYCODE_CALL
adb shell input keyevent 6
KEYCODE_ENDCALL
adb shell input keyevent 7
KEYCODE_0
adb shell input keyevent 16
KEYCODE_9
adb shell input keyevent 29
KEYCODE_A
adb shell input keyevent 54
KEYCODE_Z
adb shell input keyevent 66
KEYCODE_ENTER
adb shell input keyevent 67
KEYCODE_DEL
adb shell input keyevent 24
KEYCODE_VOLUME_UP
adb shell input keyevent 25
KEYCODE_VOLUME_DOWN
adb shell input keyevent 164
toggle MUTE the speaker
adb shell input keyevent 91
toggle MUTE the microphone
adb shell input keyevent --longpress 26
Long PRESS power key
adb shell input keyevent 26
KEYCODE_POWER
adb shell input keyevent 27
KEYCODE_CAMERA
adb shell input keyevent 223
Lock screen.
adb shell input keyevent 224
Wakes up the device.
adb shell input keyevent [--longpress]
Control Keypress events on Android
Android KeyEvent Constants
adb shell input keyevent 187
KEYCODE_APP_SWITCH
adb shell input keyevent 3
KEYCODE_HOME
adb shell input keyevent 84
KEYCODE_SEARCH
adb shell input keyevent 219
KEYCODE_ASSIST
adb shell input keyevent 231
Voice Assist key
adb shell input keyevent 5
KEYCODE_CALL
adb shell input keyevent 6
KEYCODE_ENDCALL
adb shell input keyevent 7
KEYCODE_0
adb shell input keyevent 16
KEYCODE_9
adb shell input keyevent 29
KEYCODE_A
adb shell input keyevent 54
KEYCODE_Z
adb shell input keyevent 66
KEYCODE_ENTER
adb shell input keyevent 67
KEYCODE_DEL
adb shell input keyevent 24
KEYCODE_VOLUME_UP
adb shell input keyevent 25
KEYCODE_VOLUME_DOWN
adb shell input keyevent 164
toggle MUTE the speaker
adb shell input keyevent 91
toggle MUTE the microphone
adb shell input keyevent --longpress 26
Long PRESS power key
adb shell input keyevent 26
KEYCODE_POWER
adb shell input keyevent 27
KEYCODE_CAMERA
adb shell input keyevent 223
Lock screen.
adb shell input keyevent 224
Wakes up the device.
adb shell input text
adb shell input text
Sending Keyboard input to your Android device.
adb shell input text Nexus
adb shell input text ADB%sInstaller
Tips: %s means SPACE, replace spaces with %s
adb shell input text
Sending Keyboard input to your Android device.
adb shell input text Nexus
adb shell input text ADB%sInstaller
Tips: %s means SPACE, replace spaces with %s
adb shell input tap
adb shell input tap
Simulate a touchscreen tap X,Y position.
adb shell input tap 620 1300
To find the exact X,Y position go to "Settings" > "Developer Options" > Check the option "Pointer location"
adb shell input tap
Simulate a touchscreen tap X,Y position.
adb shell input tap 620 1300
To find the exact X,Y position go to "Settings" > "Developer Options" > Check the option "Pointer location"
adb shell cat
adb shell cat /proc/cpuinfo
CPU Info
adb shell cat /proc/meminfo
RAM Info
adb shell cat /proc/cpuinfo
CPU Info
adb shell cat /proc/meminfo
RAM Info
adb shell top
adb shell top
The top command allows users to monitor processes and system resource usage on Linux.
adb shell top
The top command allows users to monitor processes and system resource usage on Linux.
adb shell ifconfig
This post first appeared on G33K-TRICKS - Your Source To Tips And Tricks, please read the originial post: here