core/process_utils library
Functions
-
cleanupTempFiles(
) → void -
extractDevicesJson(
String output) → String? -
Extracts the JSON array from
flutter devices --machineoutput. -
isProcessAlive(
int pid) → bool -
isVmServiceReachable(
String uri) → Future< bool> -
Returns true if the VM service at
uriis reachable by opening a WebSocket and waiting for the first byte (or a clean open). Times out quickly sofdb statusdoes 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 launchafter 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
appIdto.fdb/app_id.txtso 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 byfdb screenshot.