Skip to content

docs: document Android phantom process killer fix for Termux nodes#4

Open
bgorzelic wants to merge 1 commit into
mainfrom
docs/phantom-process-killer-fix
Open

docs: document Android phantom process killer fix for Termux nodes#4
bgorzelic wants to merge 1 commit into
mainfrom
docs/phantom-process-killer-fix

Conversation

@bgorzelic

Copy link
Copy Markdown
Owner

What

Adds section 8 ("Disable the Android Phantom Process Killer") to OPTIMIZATION-GUIDE.md under Performance Optimizations Applied, plus a matching Troubleshooting table row.

Why

Android 12+ limits apps to 32 phantom (forked child) processes and kills the excess. Termux running openclaw-gateway, sshd, crond, and watchdog scripts can trip this cap, causing silent gateway deaths even with a wake lock held and battery optimization disabled. The guide previously had no mention of this failure mode.

The fix documented

adb shell settings put global settings_enable_monitor_phantom_procs false
adb shell device_config set_sync_disabled_for_tests persistent
adb shell device_config put activity_manager max_phantom_processes 2147483647

Verify with adb shell dumpsys activity settings | grep phantom.

Applied and verified on the Pixel 10a (Android 16) on 2026-07-15.

Android 12+ caps apps at 32 phantom (forked child) processes and kills
the excess, causing silent gateway/sshd deaths on Termux even with a
wake lock. Add a Performance Optimizations section with the adb fix
(disable settings_enable_monitor_phantom_procs, pin device_config so
Play Services can't reset it) plus a Troubleshooting table row.

Applied and verified on the Pixel 10a (Android 16) on 2026-07-15.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant