GET /api/status
Check if ADB is configured and get the current ADB executable path.Response
Whether ADB is configured and ready to use
Full path to the ADB executable, or
null if not configuredExample Request
Example Response
DELETE /api/config
Clear the saved ADB configuration. This removes the stored path and resets the cache.Response
Always returns
trueExample Request
Example Response
POST /api/config/path
Set the path to the ADB executable. The path will be validated to ensure the file exists.Request Body
Full path to the ADB executable (e.g.,
C:\platform-tools\adb.exe)Response
Whether the path was saved successfully
The saved ADB executable path
Error Response
Returns400 Bad Request if the path is invalid or the file doesn’t exist:
Example Request
Example Response
GET /api/config/download
Download and install Android Platform Tools automatically. This endpoint uses Server-Sent Events (SSE) to stream progress updates.This endpoint is Windows-only and downloads ADB to
C:\platform-tools\.Response Format
This endpoint returns a Server-Sent Events stream withContent-Type: text/event-stream.
Each event contains:
Progress message describing the current step
Whether the installation is complete
Progress Messages
Descargando Android Platform Tools...Descarga completa. Extrayendo...✅ ADB instalado en C:\platform-tools(success)❌ Error al descargar: [error](failure)❌ Error al extraer. Intenta manualmente.(failure)
Example Request
Example Response Stream
Implementation Details
- Downloads from:
https://dl.google.com/android/repository/platform-tools-latest-windows.zip - Downloads to:
%TEMP%\platform-tools.zip - Extracts to:
C:\platform-tools\ - Automatically configures ADB path on success
- Cleans up temporary files after installation
