From 7ef45ceb9134d1e0e2994240b14a3b979ea8a3cb Mon Sep 17 00:00:00 2001 From: Adriano Inghingolo <68734231+SpikeTheDragon40k@users.noreply.github.com> Date: Mon, 8 Jun 2026 10:07:37 +0200 Subject: [PATCH] adb-shell: updated page (#22719) Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> --- pages/common/adb-shell.md | 28 ++++++++++------------------ 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/pages/common/adb-shell.md b/pages/common/adb-shell.md index 905b677471..376640d47e 100644 --- a/pages/common/adb-shell.md +++ b/pages/common/adb-shell.md @@ -7,30 +7,22 @@ `adb shell` -- Get all the properties from emulator or device: +- View documentation for showing Android system properties: -`adb shell getprop` +`tldr {{[-p|--platform]}} android getprop` -- Revert all runtime permissions to their default: +- View documentation for the Android package manager: -`adb shell pm reset-permissions` +`tldr {{[-p|--platform]}} android pm` -- Revoke a dangerous permission for an application: +- View documentations for sending event codes and touchscreen events: -`adb shell pm revoke {{package}} {{permission}}` +`tldr {{[-p|--platform]}} android input` -- Trigger a key event: +- View documentation for the Android activity manager: -`adb shell input keyevent {{keycode}}` +`tldr {{[-p|--platform]}} android am` -- Clear the data of an application on an emulator or device: +- List documented Android shell commands: -`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` +`tldr {{[-p|--platform]}} android {{[-l|--list]}}`