mirror of
https://github.com/tldr-pages/tldr.git
synced 2026-08-28 11:25:16 +08:00
adb-shell: updated page (#22719)
Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
4e10e450e1
commit
7ef45ceb91
+10
-18
@@ -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]}}`
|
||||
|
||||
Reference in New Issue
Block a user