Android Shell Commands: Difference between revisions
Jump to navigation
Jump to search
(Created page with "The shell can be started by <code>adb shell</code>. Each command can be sent for direct execution if appended, for example: <code>adb shell svc wifi enable</code>. == Key Pre...") |
(Added "Backup Data From Phone") |
||
| Line 16: | Line 16: | ||
An example for ''service'' is '''wifi'''. | An example for ''service'' is '''wifi'''. | ||
== Backup Data From Phone == | |||
Hint: on a shell, execute <code>df -h</code> | |||
Internal storage: | |||
adb pull /storage/emulated/0 . | |||
SD card: | |||
adb pull /storage/''Name of Card'' . | |||
[[Category:Android]] | [[Category:Android]] | ||
Latest revision as of 18:28, 1 February 2026
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 .