1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 19:26:01 +02:00
tldr/pages/common/adb-shell.md
Vitor Henrique c8f956319f
pages*: simplify page description (#12149)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-02-14 21:25:13 +01:00

36 lines
939 B
Markdown

# adb shell
> Android Debug Bridge Shell: run remote shell commands on an Android emulator instance or connected Android devices.
> More information: <https://developer.android.com/studio/command-line/adb>.
- Start a remote interactive shell on the emulator or device:
`adb shell`
- Get all the properties from emulator or device:
`adb shell getprop`
- Revert all runtime permissions to their default:
`adb shell pm reset-permissions`
- Revoke a dangerous permission for an application:
`adb shell pm revoke {{package}} {{permission}}`
- Trigger a key event:
`adb shell input keyevent {{keycode}}`
- Clear the data of an application on an emulator or device:
`adb shell pm clear {{package}}`
- Start an activity on emulator or device:
`adb shell am start -n {{package}}/{{activity}}`
- Start the home activity on an emulator or device:
`adb shell am start -W -c android.intent.category.HOME -a android.intent.action.MAIN`