{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-@l10n/pt/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Guia de conexão ADB","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"guia-de-conexão-adb","__idx":0},"children":["Guia de conexão ADB"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Este guia fornece instruções detalhadas para conectar-se a dispositivos de telefone na nuvem via ADB, compatíveis com as versões ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Android 12/15"]}," e ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Android 13/14"]},"."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"1-conexão-adb-para-telefones-em-nuvem-android-12android-15","__idx":1},"children":["1. Conexão ADB para telefones em nuvem Android 12/Android 15"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"etapa-1-conecte-se-ao-ip-e-à-porta-do-cloud-phone","__idx":2},"children":["Etapa 1: Conecte-se ao IP e à porta do Cloud Phone"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Use o comando ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["adb connect"]}," para conectar-se diretamente ao endereço IP e à porta do telefone na nuvem."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"adb connect 172.168.10.1:123456\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Substitua ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["172.168.10.1:123456"]}," pelo IP e porta reais do seu telefone na nuvem."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"etapa-2-autenticar-com-código-de-conexão","__idx":3},"children":["Etapa 2: autenticar com código de conexão"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Após a conexão bem-sucedida, autentique usando o código de conexão."]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"adb shell 123456\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Após a autenticação bem-sucedida, você será padronizado para entrar no telefone na nuvem e poderá usar \"exit\" para sair"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"exit\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Ou especifique o endereço do dispositivo:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"adb -s 172.168.10.1:123456 shell 123456\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Nota: O código de conexão geralmente é fornecido pela plataforma de telefonia em nuvem. Certifique-se de que foi digitado corretamente."]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"2-conexão-adb-para-telefones-em-nuvem-android-13--android-14--android-15a--android-16","__idx":4},"children":["2. Conexão ADB para telefones em nuvem Android 13 / Android 14 / Android 15A / Android 16"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Para estas versões, um túnel SSH deve ser estabelecido para encaminhar a porta ADB. Isso requer duas etapas."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"etapa-1-estabelecer-o-túnel-ssh-abrir-a-primeira-janela-cmd","__idx":5},"children":["Etapa 1: estabelecer o túnel SSH (abrir a primeira janela CMD)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Execute o seguinte comando SSH para mapear a porta ADB remota para sua máquina local:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"ssh -oHostKeyAlgorithms=+ssh-rsa 10.2.179.250_1763627294587@107.151.131.2 -p 1824 -L 9897:adb-proxy:14566 -Nf\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"blockquote","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Notas:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Substitua o nome de usuário, IP e porta no comando pela sua configuração real."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Quando for solicitada uma senha, cole a senha SSH e pressione Enter."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["O comando não produzirá nenhuma saída se for bem-sucedido, indicando que o túnel está sendo executado em segundo plano."]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"etapa-2-conecte-se-à-porta-adb-local-abra-a-segunda-janela-cmd","__idx":6},"children":["Etapa 2: Conecte-se à porta ADB local (abra a segunda janela CMD)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Em uma nova janela, execute o comando de conexão ADB:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"adb connect localhost:9897\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Exemplo de saída bem-sucedida:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"connected to localhost:9897\n"},"children":[]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"exemplo-completo-de-fluxo-de-trabalho","__idx":7},"children":["Exemplo completo de fluxo de trabalho"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"1-primeira-janela-cmd-túnel-ssh","__idx":8},"children":["1. Primeira janela CMD (túnel SSH):"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"ssh -oHostKeyAlgorithms=+ssh-rsa 10.2.179.250_1763627294587@107.151.131.2 -p 1824 -L 9897:adb-proxy:14566 -Nf\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Em seguida, insira a senha da conexão SSH"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"2-segunda-janela-cmd-conexão-adb","__idx":9},"children":["2. Segunda janela CMD (conexão ADB):"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"adb connect localhost:9897\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"verifique-o-status-da-conexão","__idx":10},"children":["Verifique o status da conexão"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Execute o seguinte comando para verificar se o dispositivo está conectado:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"adb devices\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Resultado esperado:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"List of devices attached\nlocalhost:9897     Device\n"},"children":[]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"referência-de-comandos-adb-comuns","__idx":11},"children":["Referência de comandos ADB comuns"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Comando"},"children":["Comando"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Descrição"},"children":["Descrição"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["adb devices"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Listar dispositivos conectados"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["adb shell"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Entre no terminal shell do dispositivo"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["adb shell pm list packages"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Listar aplicativos instalados"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["adb install app.apk"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Instale o arquivo APK"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["adb uninstall package.name"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Desinstalar aplicativo"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["adb reboot"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Reinicializar dispositivo"]}]}]}]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"notas-importantes","__idx":12},"children":["Notas importantes"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Certifique-se de ter instalado ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://developer.android.com/studio/releases/platform-tools"},"children":["ferramentas da plataforma Android SDK"]}," e configurado variáveis de ambiente."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["O método de túnel SSH para Android 13/14/15A é criptografado e seguro – recomendado para uso."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Se a conexão expirar, verifique as configurações de rede, regras de firewall e configurações de porta."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Sempre confirme se o telefone na nuvem está ligado e o acesso ADB está habilitado antes de conectar."]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Siga estas etapas para conectar com êxito seu telefone na nuvem para tarefas de depuração e automação do ADB."]}]},"headings":[{"value":"Guia de conexão ADB","id":"guia-de-conexão-adb","depth":1},{"value":"1. Conexão ADB para telefones em nuvem Android 12/Android 15","id":"1-conexão-adb-para-telefones-em-nuvem-android-12android-15","depth":2},{"value":"Etapa 1: Conecte-se ao IP e à porta do Cloud Phone","id":"etapa-1-conecte-se-ao-ip-e-à-porta-do-cloud-phone","depth":3},{"value":"Etapa 2: autenticar com código de conexão","id":"etapa-2-autenticar-com-código-de-conexão","depth":3},{"value":"2. Conexão ADB para telefones em nuvem Android 13 / Android 14 / Android 15A / Android 16","id":"2-conexão-adb-para-telefones-em-nuvem-android-13--android-14--android-15a--android-16","depth":2},{"value":"Etapa 1: estabelecer o túnel SSH (abrir a primeira janela CMD)","id":"etapa-1-estabelecer-o-túnel-ssh-abrir-a-primeira-janela-cmd","depth":3},{"value":"Etapa 2: Conecte-se à porta ADB local (abra a segunda janela CMD)","id":"etapa-2-conecte-se-à-porta-adb-local-abra-a-segunda-janela-cmd","depth":3},{"value":"Exemplo completo de fluxo de trabalho","id":"exemplo-completo-de-fluxo-de-trabalho","depth":2},{"value":"1. Primeira janela CMD (túnel SSH):","id":"1-primeira-janela-cmd-túnel-ssh","depth":3},{"value":"2. Segunda janela CMD (conexão ADB):","id":"2-segunda-janela-cmd-conexão-adb","depth":3},{"value":"Verifique o status da conexão","id":"verifique-o-status-da-conexão","depth":2},{"value":"Referência de comandos ADB comuns","id":"referência-de-comandos-adb-comuns","depth":2},{"value":"Notas importantes","id":"notas-importantes","depth":2}],"frontmatter":{"seo":{"title":"Guia de conexão ADB"}},"lastModified":"2026-06-10T11:47:34.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/pt/api-reference/cloud-phone/adb","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}