# Broadcast receivers

## Búsqueda de broadcast receivers con exportación habilitada

```sh
# AndroidManifest.xml
## explícitamente
grep "<receiver" app-decompiled/AndroidManifest.xml | grep "android:exported=\"true\""
## implícitamente
grep "<intent-filter" -B 1 app-decompiled/AndroidManifest.xml | grep "<receiver" | grep --invert-match "android:exported=\"true\""
```

## Interacción general con broadcast receivers

```sh
# Android Debug Bridge (adb)
adb shell am broadcast -a <action> --es <parameter> "<string-value>" --ei <parameter> <numerical-value>
adb shell am broadcast -a <action> -n <app-package-name>/.<broadcast-receiver> --es <parameter> "<string-value>" --ei <parameter> <numerical-value>

# Drozer
run app.broadcast.send --action <action> --component <app-package-name> <broadcast-receiver> --extra string <parameter> <numerical-value> --extra string <parameter> "<string-value>"
```


---

# 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/android/analisis-dinamico/broadcast-receivers.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.
