start
ARMS the debug server: freezes the tab registry and registers the process-lifecycle observer that binds the socket on foreground and drains it on background. Returns LustroStatus.ENABLED once armed, or LustroStatus.DISABLED if arming fails. When the process is already at least Lifecycle.State.STARTED, the socket binds immediately. Idempotent.
Call it on the main thread, for example in Application.onCreate(). The process lifecycle accepts observers only on the main thread, so from any other thread arming fails and this returns LustroStatus.DISABLED.
Returns LustroStatus.DISABLED without arming — and logs a WARN — when the host app is not marked debuggable and DebugConfig.allowNonDebuggableBuilds is false (the default).
Logs a WARN, and still returns LustroStatus.ENABLED, when the process lifecycle is not initialized yet. androidx.startup's InitializationProvider initializes it with ProcessLifecycleInitializer before Application.onCreate(). In an app whose manifest removes either one, the lifecycle never reports the foreground, so the socket never binds.