mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-11-12 15:33:45 +08:00
11 lines
483 B
Python
11 lines
483 B
Python
"""Driving health requirements for manager-owned services."""
|
|
|
|
# Projection and local phone access are optional even when requested.
|
|
# Their lifecycles remain visible in managerState and their own status.
|
|
ANCILLARY_PROCESSES = frozenset({'android_autod', 'galaxy_hotspot'})
|
|
|
|
|
|
def driving_process_failures(processes) -> set[str]:
|
|
return {process.name for process in processes
|
|
if process.shouldBeRunning and not process.running and process.name not in ANCILLARY_PROCESSES}
|