forked from tldr-pages/tldr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
android/*: add pt_PT translations (tldr-pages#8935)
- Loading branch information
João Dias Conde Azevedo
authored
Oct 11, 2022
1 parent
892e710
commit 8d6710a
Showing
13 changed files
with
257 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# am | ||
|
||
> Gestor de atividades do Android (Activity Manager). | ||
> Mais informações: <https://developer.android.com/studio/command-line/adb#am>. | ||
- Iniciar uma atividade específica: | ||
|
||
`am start -n {{com.android.settings/.Settings}}` | ||
|
||
- Iniciar uma atividade e passar-lhe dados: | ||
|
||
`am start -a {{android.intent.action.VIEW}} -d {{tel:123}}` | ||
|
||
- Iniciar uma atividade com uma ação e categoria específicas: | ||
|
||
`am start -a {{android.intent.action.MAIN}} -c {{android.intent.category.HOME}}` | ||
|
||
- Converter um `intent` num URI: | ||
|
||
`am to-uri -a {{android.intent.action.VIEW}} -d {{tel:123}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# bugreport | ||
|
||
> Mostra um relatório de bugs do Android. | ||
> Este comando só pode ser utilizado com a `adb shell`. | ||
> Mais informações: <https://cs.android.com/android/platform/superproject/+/master:frameworks/native/cmds/bugreport>. | ||
- Mostrar um relatório completo de bugs de um dispositivo Android: | ||
|
||
`bugreport` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# bugreportz | ||
|
||
> Gera um relatório de bugs do Android em formato .zip. | ||
> Este comando só pode ser utilizado com a `adb shell`. | ||
> Mais informações: <https://cs.android.com/android/platform/superproject/+/master:frameworks/native/cmds/bugreportz>. | ||
- Mostrar um relatório completo de bugs de um dispositivo Android em formato .zip: | ||
|
||
`bugreportz` | ||
|
||
- Mostrar o progresso de `bugreportz` em execução: | ||
|
||
`bugreportz -p` | ||
|
||
- Mostrar a versão de `bugreportz`: | ||
|
||
`bugreportz -v` | ||
|
||
- Mostrar a ajuda: | ||
|
||
`bugreportz -h` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# cmd | ||
|
||
> Gestor de serviços (service manager) do Android. | ||
> Mais informações: <https://cs.android.com/android/platform/superproject/+/master:frameworks/native/cmds/cmd/>. | ||
- Listar todos os serviços em execução: | ||
|
||
`cmd -l` | ||
|
||
- Executar um serviço específico: | ||
|
||
`cmd {{alarm}}` | ||
|
||
- Executar um serviço com parâmetros: | ||
|
||
`cmd {{vibrator}} {{vibrate 300}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# dalvikvm | ||
|
||
> A máquina virtual Java do Android. | ||
> Mais informações: <https://source.android.com/devices/tech/dalvik>. | ||
- Iniciar um programa Java: | ||
|
||
`dalvikvm -classpath {{caminho/para/arquivo.jar}} {{nome_da_classe}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# dumpsys | ||
|
||
> Fornece informações sobre os serviços do sistema Android. | ||
> Este comando só pode ser usado com a `adb shell`. | ||
> Mais informações: <https://developer.android.com/studio/command-line/dumpsys>. | ||
- Gerar um diagnóstico de todos os serviços do sistema: | ||
|
||
`dumpsys` | ||
|
||
- Gerar um diagnóstico de um serviço do sistema específico: | ||
|
||
`dumpsys {{servico}}` | ||
|
||
- Listar todos os serviços dos quais o `dumpsys` pode obter informações: | ||
|
||
`dumpsys -l` | ||
|
||
- Listar argumentos específicos de um serviço para um serviço: | ||
|
||
`dumpsys {{servico}} -h` | ||
|
||
- Omitir um serviço em específico do diagnóstico: | ||
|
||
`dumpsys --skip {{servico}}` | ||
|
||
- Especificar um periodo de _timeout_ (por padrão é 10s): | ||
|
||
`dumpsys -t {{segundos}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# getprop | ||
|
||
> Obtém informações sobre propriedades do sistema (system props) Android. | ||
> Mais informações: <https://manned.org/getprop>. | ||
- Mostrar todas as propriedades do sistema: | ||
|
||
`getprop` | ||
|
||
- Mostrar o valor de uma propriedade específica: | ||
|
||
`getprop {{prop}}` | ||
|
||
- Mostrar o nível de API: | ||
|
||
`getprop {{ro.build.version.sdk}}` | ||
|
||
- Mostrar a versão do Android: | ||
|
||
`getprop {{ro.build.version.release}}` | ||
|
||
- Mostrar o modelo do dispositivo: | ||
|
||
`getprop {{ro.vendor.product.model}}` | ||
|
||
- Mostrar o status de desbloqueio OEM: | ||
|
||
`getprop {{ro.oem_unlock_supported}}` | ||
|
||
- Mostrar o endereço MAC da placa de Wi-Fi do dispositivo: | ||
|
||
`getprop {{ro.boot.wifimacaddr}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# input | ||
|
||
> Envia códigos de eventos ou toques no ecrã para um dispositivo Android. | ||
> Este comando só pode ser usado com a `adb shell`. | ||
> Mais informações: <https://developer.android.com/reference/android/view/KeyEvent.html#constants_1>. | ||
- Enviar um código de evento de um caractere para um dispositivo Android: | ||
|
||
`input keyevent {{codigo_de_evento}}` | ||
|
||
- Enviar texto para um dispositivo Android (`%s` representa espaços): | ||
|
||
`input text "{{texto}}"` | ||
|
||
- Enviar um único toque para um dispositivo Android: | ||
|
||
`input tap {{x_pos}} {{y_pos}}` | ||
|
||
- Enviar um gesto de deslizar para um dispositivo Android: | ||
|
||
`input swipe {{x_inicio}} {{y_inicio}} {{x_fim}} {{y_fim}} {{duração_em_ms}}` | ||
|
||
- Enviar um toque prolongado usando um gesto de deslize para um dispositivo Android: | ||
|
||
`input swipe {{x_pos}} {{y_pos}} {{x_pos}} {{y_pos}} {{duração_em_ms}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# logcat | ||
|
||
> Exibe um conjunto de mensagens de sistema, incluindo a stack de execução do programa em caso de erro, e mensagens de informação criadas por aplicações. | ||
> Mais informações: <https://developer.android.com/studio/command-line/logcat>. | ||
- Mostrar mensagens de sistema: | ||
|
||
`logcat` | ||
|
||
- Escrever as mensagens de sistema num ficheiro: | ||
|
||
`logcat -f {{caminho/para/arquivo}}` | ||
|
||
- Mostrar mensagens que correspondem a uma expressão regular: | ||
|
||
`logcat --regex {{expressao_regular}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# pkg | ||
|
||
> Gestor de pacotes para o Termux. | ||
> Mais informações: <https://wiki.termux.com/wiki/Package_Management>. | ||
- Atualizar todos os pacotes instalados: | ||
|
||
`pkg upgrade` | ||
|
||
- Instalar um pacote: | ||
|
||
`pkg install {{pacote}}` | ||
|
||
- Desinstalar um pacote: | ||
|
||
`pkg uninstall {{pacote}}` | ||
|
||
- Reinstalar um pacote: | ||
|
||
`pkg reinstall {{pacote}}` | ||
|
||
- Procurar um pacote: | ||
|
||
`pkg search {{pacote}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# pm | ||
|
||
> Mostra informações sobre aplicações num dispositivo Android. | ||
> Mais informações: <https://developer.android.com/studio/command-line/adb#pm>. | ||
- Exibir uma lista com todas as aplicações instaladas: | ||
|
||
`pm list packages` | ||
|
||
- Exibir uma lista com todas as aplicações do sistema instaladas: | ||
|
||
`pm list packages -s` | ||
|
||
- Exibir uma lista todas as aplicações de terceiros instaladas: | ||
|
||
`pm list packages -3` | ||
|
||
- Exibir uma lista com todas as aplicações cujos nomes estejam incluídos em palavras-chave: | ||
|
||
`pm list packages {{palavras_chave}}` | ||
|
||
- Exibir o caminho para o APK de um app: | ||
|
||
`pm path {{app}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# settings | ||
|
||
> Exibe, edita e apaga configurações do sistema Android. | ||
> Mais informações: <https://adbinstaller.com/commands/adb-shell-settings-5b670d5ee7958178a2955536>. | ||
- Exibir a lista de configurações no namespace `global`: | ||
|
||
`settings list {{global}}` | ||
|
||
- Obter o valor de uma configuração específica: | ||
|
||
`settings get {{global}} {{airplane_mode_on}}` | ||
|
||
- Editar o valor de uma configuração: | ||
|
||
`settings put {{system}} {{screen_brightness}} {{42}}` | ||
|
||
- Apagar uma configuração: | ||
|
||
`settings delete {{secure}} {{screensaver_enabled}}` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# wm | ||
|
||
> Exibe informações da tela de um dispositivo Android | ||
> Este comando só pode ser usado através da `adb shell`. | ||
> Mais informações: <https://adbinstaller.com/commands/adb-shell-wm-5b672b17e7958178a2955538>. | ||
- Mostrar o tamanho da tela de um dispositivo Android: | ||
|
||
`wm {{size}}` | ||
|
||
- Mostrar a densidade de píxeis da tela de um dispositivo Android: | ||
|
||
`wm {{density}}` |