mirror of
https://github.com/topjohnwu/Magisk.git
synced 2026-09-18 02:57:53 -04:00
Update wait_for_boot to monitor the background emulator process and fail immediately if it crashes, avoiding indefinite blocking on adb wait-for-device. Implement timeout handling directly in the polling loop without relying on subshell timeout wrappers. In run_main, capture emulator stdout/stderr to a temporary log and dump its contents on failure for easier debugging. Temporarily disable tracing within wait_for_boot during polling to keep test logs clean while preserving the caller's shell tracing state. Assisted-by: Gemini 3.7 Flash