Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

38
adb Normal file
View File

@@ -0,0 +1,38 @@
---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# adb
> Android Debug Bridge: communicate with an Android emulator instance or connected Android devices.
> Some subcommands such as `adb shell` have their own usage documentation.
> More information: <https://developer.android.com/tools/adb>.
- Check whether the adb server process is running and start it:
`adb start-server`
- Terminate the adb server process:
`adb kill-server`
- Start a remote shell in the target emulator/device instance:
`adb shell`
- Push an Android application to an emulator/device:
`adb install -r {{path/to/file.apk}}`
- Copy a file/directory from the target device:
`adb pull {{path/to/device_file_or_directory}} {{path/to/local_destination_directory}}`
- Copy a file/directory to the target device:
`adb push {{path/to/local_file_or_directory}} {{path/to/device_destination_directory}}`
- List all connected devices:
`adb devices`