core/process_utils library

Functions

cleanupTempFiles() → void
extractDevicesJson(String output) String?
Extracts the JSON array from flutter devices --machine output.
isProcessAlive(int pid) bool
isVmServiceReachable(String uri) Future<bool>
Returns true if the VM service at uri is reachable by opening a WebSocket and waiting for the first byte (or a clean open). Times out quickly so fdb status does not block for long when the app is truly dead.
readAppId() String?
Reads the persisted app bundle id / package name from .fdb/app_id.txt.
readAppPid() int?
Reads the app VM PID from appPidFile written by fdb launch after the VM service is confirmed reachable.
readDevice() String?
readLogCollectorPid() int?
Read the log collector PID from its PID file.
readPid() int?
readPlatformInfo() → ({bool emulator, String platform})?
Returns (platform, emulator) from the platform file, or null if absent.
readVmUri() String?
writeAppId(String appId) → void
Persists appId to .fdb/app_id.txt so later commands (e.g. crash-report) can use it without requiring --app-id.
writePlatformInfo(String targetPlatform, bool emulator) → void
Stores the Flutter target platform string and emulator flag for the active session. Written by fdb launch, read by fdb screenshot.