# ADB

## ADB

[ADB](https://mobile-security.gitbook.io/mobile-security-testing-guide/appendix/0x08-testing-tools#adb) (Android Debug Bridge) es una herramienta que permite acceder a dispositivos Android.

Listar los dispositivos conectados al pc:

```
adb devices
```

Conectarse al dispositivo Android vía USB:

```
adb -s device-name shell
```

Conectarse al dispositivo Android vía wifi:

```
adb connect <device_IP>
adb tcpip <device_port>
```

Abrir una shell con el dispositivo:

```
adb shell
```

Copiar el fichero file.txt del pc al dispositivo Android:

```
adb push file.txt /sdcard/file.txt
```

Copiar el fichero file.txt del dispositivo Android al pc:

```
adb pull /sdcard/file.txt
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.securiters.com/securiters-wiki/_tools/apps-moviles/adb.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
