docs: document Android phantom process killer fix for Termux nodes#4
Open
bgorzelic wants to merge 1 commit into
Open
docs: document Android phantom process killer fix for Termux nodes#4bgorzelic wants to merge 1 commit into
bgorzelic wants to merge 1 commit into
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 2147483647Verify with
adb shell dumpsys activity settings | grep phantom.Applied and verified on the Pixel 10a (Android 16) on 2026-07-15.