# android-devices — API 1.21 example A device provider (`[[contributes.devices]]`): the title bar shows a device chooser next to Gradle run configurations that install the app or run connected tests (`./gradlew :app:installDebug`), and the chosen device reaches the run as `ANDROID_SERIAL`, which adb and the Android Gradle plugin's install tasks honour. ``` android-devices/ ├─ plugin.toml # manifest: the provider and the process:sh capability └─ devices/ └─ list.sh # prints `adb devices -l` as the JSON array the IDE reads ``` It is data only: no code, no WebAssembly, no build step. `adb` must be on PATH (Android SDK platform tools). Connected emulators and phones are listed; offline and unauthorized ones are not. Install the folder through Settings › Plugins › Install from Disk and allow `process:sh`. Check it from the repository root: ```sh cargo run -p ide-host --bin openidea-plugin -- check plugins/official/android-devices ``` To boot an emulator before the run, add a `prepare` command that starts it and prints the serial to use. The fields are described in the [plugin guide](../../README.md#run-devices-api-121).