launch_app reports success when adb launch fails

Author: XalzerophCreated Sep 22, 2026Updated Sep 22, 2026

phone_agent.adb.device.launch_app() returns True for every app name present in APP_PACKAGES, regardless of whether the underlying adb shell monkey command succeeds.

That means a disconnected device or other ADB launch failure is reported to ActionHandler as a successful Launch action, so the agent continues from a state that never happened.

The launch result should reflect the ADB command outcome instead of treating a known package mapping as proof that the app opened.