# Objection

## Instalación y actualización

Instalación de Objection.

```shell
# Instalación de Objection sin entorno virtual de Python
pip3 install objection

# Instalación de Objection en entorno virtual de Python
mkdir objection && cd objection
python -m venv venv-objection
source venv-objection/bin/activate
pip3 install objection
```

Obtener versión de Objection instalado.

```shell
objection version
```

Realizar actualización de Objection.

```shell
pip3 install --upgrade objection
```

## Comandos generales

Iniciar un nuevo proceso / aplicación (spawning).

```shell
# Versión antigua (2021)
objection --gadget <app-package-name> explore
objection -N -h <device-IP-address> --gadget <app-package-name> explore

# Versión actual
objection -N -h <device-IP-address> --spawn --name <app-package-name> --no-pause start
```

Atachar a un proceso / aplicación (attaching).

```shell
# Versión antigua (2021)
objection --gadget <process-ID> explore
objection --gadget $(frida-ps -U -a | grep <app-package-name> | awk '{print $1}') explore

objection -N -h <device-IP-address> --gadget <process-ID> explore
objection -N -h <device-IP-address> --gadget $(frida-ps -H <device-IP-address> -a | grep <app-package-name> | awk '{print $1}') explore

# Versión actual
objection -N -h <device-IP-address> --name <app-package-name> start
```

Obtener información de environment.

```shell
env
```


---

# 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://mobile.mrw0l05zyn.cl/herramientas-transversales/objection.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.
