1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 19:02:09 +02:00
tldr/pages/common/adb-shell.md
Managor 167f3fa072
adb-{install, reverse, shell}: simplify descriptions (#14011)
* Update adb-shell.md

* Update adb-install.md

* Update adb-reverse.md
2024-10-08 18:18:11 +02:00

871 B

adb shell

Run shell commands on a connected Android device or emulator. More information: https://developer.android.com/tools/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