Android Shell Commands

From MK Wiki EN
Revision as of 18:28, 1 February 2026 by MkWikiEnSysOp (talk | contribs) (Added "Backup Data From Phone")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 .