Documentation Index
Fetch the complete documentation index at: https://mintlify.com/KilzaNiko/apk-extractor-adb/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Saved devices allow you to store wireless device configurations for quick reconnection. When you successfully connect to a wireless device, it’s automatically saved with its IP, port, label, and last connection timestamp.GET /api/saved-devices
Get the list of all saved wireless devices.Response
Array of saved device objects
Example Request
Example Response
POST /api/saved-devices
Manually add or update a saved wireless device.Request Body
Device IP address
Connection port
Custom device label. If omitted, defaults to
"ip:port"Response
Always returns
trueBehavior
- If a device with the same IP and port already exists, it’s updated with the new label and timestamp
- If it doesn’t exist, a new device is added
- The
lastConnectedtimestamp is always set to the current time
Example Request
Example Response
Error Response
Returns400 if required fields are missing:
DELETE /api/saved-devices/:id
Remove a saved device by its ID.Path Parameters
Device ID (from the
id field in saved devices)Response
Always returns
true (even if the ID doesn’t exist)Example Request
Example Response
Auto-Save Behavior
Devices are automatically saved or updated in these scenarios:1. Successful Wireless Connection
When/api/adb/connect succeeds, the device is automatically saved with:
- Auto-detected brand and model (if no custom label provided)
- Current timestamp in
lastConnected - Generated unique ID (if new)
2. Device Detection
When/api/devices detects a wireless device, if its IP matches a saved device:
- The saved device’s
lastConnectedis updated - The saved device’s
labelis updated with the detected brand/model (if different)
Use Cases
Quick Reconnect UI
Build a “Recent Devices” list for one-tap reconnection:Device Management
Allow users to edit labels or remove old devices:Storage
Saved devices are stored in:- File:
devices.jsonin the server directory - Format: JSON array of device objects
- Persistence: Survives server restarts
- Cache: Loaded into memory on first access
devices.json:
