Android Shell Commands
Jump to navigation
Jump to search
The shell can be started by adb shell. Each command can be sent for direct execution if appended, for example: adb shell svc wifi enable.
Key Presses And Texts
input keyevent Code
input text "Text"
For available codes, see KeyEvent in Android Developer Documentation.
The important
Start/Stop Services
svc service [enable|disable]
An example for service is wifi.
Backup Data From Phone
Hint: on a shell, execute df -h
Internal storage:
adb pull /storage/emulated/0 .
SD card:
adb pull /storage/Name of Card .